/**
 * T1 Template Styles - Yellow Drone Enterprise Template
 * 黄色大气无人机企业模板 - 现代科技感企业官网风格
 */

:root {
    --primary-color: #FFC107;
    --primary-dark: #FFA000;
    --secondary-color: #1a1a1a;
    --accent-color: #FF5722;
    --accent-hover: #FF7043;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --text-light: #888888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 15px 60px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    font-size: 16px;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.25rem; line-height: 1.3; }
h3 { font-size: 1.75rem; line-height: 1.4; }
h4 { font-size: 1.25rem; line-height: 1.5; }
h5 { font-size: 1.1rem; line-height: 1.5; }

p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== Images ==================== */
img {
    max-width: 100%;
    height: auto;
}

/* ==================== Buttons ==================== */
.btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(255, 193, 7, 0.85));
    color: #fff;
    padding-top: 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(255, 193, 7, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn-hero-primary {
    background: var(--accent-color);
    color: #fff;
    padding: 0.875rem 2.25rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
}

.btn-hero-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 0.875rem 2.25rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== Stats Section ==================== */
.stats-section {
    padding: 4rem 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ==================== Section Styles ==================== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background: var(--secondary-color);
    color: #fff;
}

.bg-dark .section-title,
.bg-dark .section-subtitle {
    color: #fff;
}

.bg-dark .section-subtitle {
    opacity: 0.85;
}

/* ==================== Feature Cards ==================== */
.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: #fff;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== Product Cards ==================== */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-image .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.75rem;
}

.product-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ==================== News Cards ==================== */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Modern Filter Bar ==================== */
.modern-filter-bar {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-gray);
    background: var(--bg-light);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.filter-tab:hover {
    color: var(--primary-color);
    background: #e3f2fd;
    transform: translateY(-2px);
}

.filter-tab.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.6) !important;
    transform: translateY(-3px) !important;
    font-weight: 700 !important;
    border: 2px solid var(--primary-dark) !important;
}

/* ==================== Results Info Card ==================== */
.results-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.results-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.results-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.results-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.results-count {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.results-unit {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.empty-state-desc {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== Modern Category Card ==================== */
.modern-category-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.modern-category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.modern-category-header h5 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.modern-category-body {
    padding: 1rem;
}

.modern-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-category-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-category-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.modern-category-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5) !important;
    transform: translateX(8px) !important;
    font-weight: 600 !important;
    border: 2px solid var(--primary-dark);
}

/* ==================== Solution Items ==================== */
.solution-item {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px 16px 0 0;
    transition: height 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.solution-item:hover::before {
    height: 6px;
}

.solution-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(0, 102, 204, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.solution-item:hover .solution-number {
    color: rgba(0, 102, 204, 0.2);
    transform: scale(1.1);
}

.solution-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding-top: 1rem;
}

.solution-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    min-height: 3.4rem;
}

.solution-item .product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.solution-item:hover .product-link {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ==================== Solution Cards ==================== */
.solution-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
    z-index: 1;
    transition: all 0.4s ease;
}

.solution-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.5));
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
}

.solution-card:hover img {
    transform: scale(1.1);
}

.solution-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: #fff;
}

.solution-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.solution-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-link {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Page Header ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg');
    opacity: 0.3;
}

.page-breadcrumb {
    margin-bottom: 1.5rem;
}

.page-breadcrumb .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

.page-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
}

.page-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.page-breadcrumb .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* ==================== Footer ==================== */
.footer {
    background: #0a0a0a;
    color: #fff;
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand img {
    max-height: 50px;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.footer-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-link {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    padding-left: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact-icon {
    width: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom-container {
    margin-top: 3rem;
    padding-top: 2rem;
}

/* Footer Left Section - Product & Solution Columns */
.footer-left-section .footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-menu-column h5 {
    margin-bottom: 1rem;
}

.footer-menu-column a {
    display: block;
    padding: 0.4rem 0;
}

/* Footer Center Section */
.footer-center-section {
    text-align: center;
}

.footer-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-center {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-logo-pc-container {
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-logo-mobile-container {
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-logo-pc-container a,
.footer-logo-mobile-container a {
    justify-content: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-nav-link {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer QR Code Icons */
.footer-qrcode {
    margin-bottom: 2rem;
}

.qrcode-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.qrcode-icon-item {
    position: relative;
    display: inline-block;
}

.qrcode-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.qrcode-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 150px;
    text-align: center;
    pointer-events: none;
}

.qrcode-popup img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin-bottom: 5px;
}

.qrcode-popup-label {
    display: block;
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.qrcode-icon-item:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: auto;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-section {
        padding-top: 80px;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-card,
    .product-card {
        margin-bottom: 1.5rem;
    }
}

/* ==================== Utility Classes ==================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.card-custom {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* ==================== Placeholder Image ==================== */
.placeholder-image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    border: 1px dashed #ccc;
    box-sizing: border-box;
    position: relative;
}

.placeholder-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.02) 10px,
        rgba(0,0,0,0.02) 20px
    );
    pointer-events: none;
}

.placeholder-image::after {
    content: attr(data-text);
    position: relative;
    z-index: 1;
    word-break: break-word;
    line-height: 1.4;
}

.placeholder-image-sm {
    font-size: 12px;
    padding: 10px;
}

.placeholder-image-lg {
    font-size: 18px;
    padding: 20px;
}

/* ==================== Product Detail Image Styles ==================== */
.product-image-container {
    width: 100%;
}

/* 主图容器 */
.main-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.main-image-card {
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    transition: all 0.3s ease;
    position: relative;
}

/* 主图容器中的图片 */
.main-image-card img.product-main-image {
    object-fit: contain;
    transition: opacity 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 占位图在主图容器中的特殊处理 - 默认隐藏 */
.main-image-card .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none !important;
}

/* 只有当占位图需要显示时才移除隐藏 */
.main-image-card .placeholder-image[style*="display: flex"] {
    display: flex !important;
}

/* 缩略图容器 */
.thumbnail-wrapper {
    width: 100%;
    padding: 10px 0;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-behavior: smooth;
}

.thumbnail-list::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* 缩略图项 */
.thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.thumbnail-img {
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .thumbnail-item {
        width: 65px;
        height: 65px;
    }

    .main-image-card {
        min-height: 350px;
    }
}

/* 大屏幕显示更多缩略图 */
@media (min-width: 1200px) {
    .thumbnail-item {
        width: 90px;
        height: 90px;
    }
}

/* ==================== 响应式Logo显示 ==================== */
/* PC端Logo - 默认显示 */
.navbar-brand.logo-pc {
    display: block;
}

.navbar-brand.logo-mobile {
    display: none;
}

/* Mobile端Logo - 在小屏幕显示 */
@media (max-width: 767px) {
    .navbar-brand.logo-pc {
        display: none;
    }

    .navbar-brand.logo-mobile {
        display: block;
    }
}

/* Footer Logo - PC端显示 */
.footer-logo-pc-container {
    display: block;
    height: 50px;
    width: 200px;
    margin-bottom: 1.5rem;
}

.footer-logo-pc-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.footer-logo-pc-container img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-logo-mobile-container {
    display: none;
}

/* Footer Logo - Mobile端显示 */
@media (max-width: 767px) {
    .footer-logo-pc-container {
        display: none;
    }

    .footer-logo-mobile-container {
        display: block;
        height: 40px;
        width: 150px;
        margin-bottom: 1.5rem;
    }

    .footer-logo-mobile-container a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }

    .footer-logo-mobile-container img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

/* Mobile Footer Layout */
    .footer-section-title {
        text-align: center;
    }

    .footer-left-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-left-section .footer-menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-menu-column h5 {
        text-align: center;
    }

    .footer-right-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-right-section h5 {
        text-align: center;
    }

    .footer-contact {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-contact-item {
        text-align: left;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .footer-contact-icon {
        flex-shrink: 0;
        margin-top: 3px;
    }

    .footer-contact-text {
        flex: 1;
        text-align: left;
    }

    .footer-contact-text span {
        display: block;
        text-align: left;
    }

    .footer-contact-text .contact-label {
        color: rgba(255,255,255,0.9);
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .footer-bottom-container {
        margin-top: 2rem;
    }

    .footer-bottom {
        margin-top: 0;
    }
}

/* ==================== 多端兼容性优化 ==================== */

/* 导航栏优化 */
#mainNavbar {
    padding: 0.75rem 0;
    z-index: 1000;
}

.navbar-brand img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* 移动端导航优化 */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: #fff;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* 菜单项优化 */
.nav-link {
    padding: 0.75rem 1.25rem !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 下拉菜单样式 */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0.2rem 0.5rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-item.active {
    background: var(--primary-color);
    color: #fff;
}

/* 排除导航栏的下拉菜单样式 */
#mainNavbar .dropdown-menu .dropdown-item,
nav#mainNavbar .dropdown-menu .dropdown-item {
    padding: 10px 20px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

#mainNavbar .dropdown-menu .dropdown-item:hover,
#mainNavbar .dropdown-menu .dropdown-item.active,
nav#mainNavbar .dropdown-menu .dropdown-item:hover,
nav#mainNavbar .dropdown-menu .dropdown-item.active {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #FFC107 !important;
}

/* 微信端/公众号端优化 */
body.wechat-browser {
    font-size: 15px;
}

body.wechat-browser .navbar-brand img {
    max-width: 150px;
}

body.wechat-browser .hero-title {
    font-size: 2.2rem;
}

body.wechat-browser .section {
    padding: 3.5rem 0;
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar-brand img {
        max-width: 160px;
    }

    .nav-link {
        padding: 0.65rem 1rem !important;
        font-size: 0.95rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Footer优化 */
.footer {
    padding-top: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .has-dropdown {
        /* 移动端需要点击才能显示下拉菜单 */
    }

    .has-dropdown .dropdown-menu {
        display: none;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* 安全区域优化（iPhone刘海屏） */
@supports (padding: env(safe-area-inset-top)) {
    #mainNavbar {
        padding-top: max(0.75rem, env(safe-area-inset-top));
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 暗色模式支持（自动检测） */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加暗色模式特定的样式 */
}

/* 减少动画（用户偏好设置） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 产品详情页优化样式 ==================== */

/* 产品主图 - 限制最大尺寸 */
.main-image-card {
    width: 100%;
    max-height: 500px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-image-card img.product-main-image {
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 产品详情标签页 */
.product-detail-tabs {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.product-detail-tabs .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    padding: 0 15px;
}

.product-detail-tabs .nav-link {
    border: none;
    color: #495057;
    padding: 15px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.product-detail-tabs .nav-link:hover {
    color: #667eea;
    background: transparent;
}

.product-detail-tabs .nav-link.active {
    background: transparent;
    color: #667eea;
    font-weight: 600;
}

.product-detail-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #5568d3);
    border-radius: 3px 3px 0 0;
}

.product-detail-tabs .tab-content {
    padding: 20px;
}

.product-detail-tabs .tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 技术文档列表 */
.documents-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.document-link {
    transition: all 0.3s ease;
    border-color: #e9ecef;
}

.document-link:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: #fff;
}

.document-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffeaea;
    border-radius: 10px;
}

.document-name {
    font-size: 15px;
    transition: color 0.3s ease;
}

.document-link:hover .document-name {
    color: #667eea;
}

.document-description {
    font-size: 13px;
    line-height: 1.5;
}

.document-download {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-link:hover .document-download {
    background: #667eea;
    color: #fff;
}

/* 价格显示 */
.price-display {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ffeaea;
}

.price-value {
    font-size: 32px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
