/* ===== css/style.css ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0b0f17;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Parallax Background ===== */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}
.layer-1 {
    background: radial-gradient(circle at 20% 30%, rgba(45, 85, 255, 0.15) 0%, transparent 50%);
}
.layer-2 {
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    z-index: -1;
    will-change: transform;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease;
}
.navbar-hidden {
    transform: translateY(-100%);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-wrapper img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
}
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(120deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo-badge {
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    color: #a5b4fc;
    margin-left: 8px;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a, .nav-item > a {
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-item > a:hover {
    color: white;
}
.nav-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 101;
}
.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: 0.25s ease-in-out;
}
.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Dropdown */
.nav-item {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 28, 45, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: block;
    padding: 12px 24px;
    color: #e0e7ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: white;
    padding-left: 32px;
}

/* ===== Hero Swiper - 横版图片在竖屏完整显示 ===== */
.hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* 不设固定高度，由内容撑开，以宽度为准 */
}
.hero-swiper {
    width: 100%;
    height: auto;
}
.hero-swiper .swiper-slide {
    /* 图片以宽度为准，高度自适应，完整显示不裁剪 */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0b0f17; /* 背景色填充留白区域 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* 使用padding-bottom根据图片比例撑开高度，默认16:9比例 */
    padding-bottom: 56.25%; /* 默认16:9比例，实际会被JS动态覆盖 */
}
.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}
.slide-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}
.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.slide-desc {
    font-size: 1.1rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.swiper-button-prev, .swiper-button-next {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 18px;
}
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #3b82f6;
}
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    padding: 6px 18px;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    cursor: pointer;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== Common Sections ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}
.section-subtitle {
    color: #9aa4bf;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}
.advantages-section, .stats-section, .products-section, .news-section, .about-section, .career-section {
    padding: 60px 0;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.advantage-card {
    background: rgba(20, 28, 45, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 28px;
    padding: 32px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.advantage-card:hover {
    transform: translateY(-6px);
    border-color: #3b82f6;
}
.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.advantage-card p {
    color: #a5b4cb;
    font-size: 0.9rem;
}

/* Stats */
.stats-section {
    background: rgba(0,0,0,0.2);
    border-radius: 48px;
    margin: 20px 0;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
}
.stat-label {
    color: #9ca3af;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: #151e2f;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #2d3748;
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
}
.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.product-info {
    padding: 16px;
}
.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}
.product-desc {
    color: #94a3b8;
    font-size: 0.8rem;
}
.more-products-container {
    text-align: center;
    margin-top: 40px;
}
.more-products-btn {
    display: inline-flex;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 60px;
    color: #e0e7ff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.more-products-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    border-color: #3b82f6;
}
.more-products-btn.hidden {
    display: none;
}

/* News Carousel */
.news-carousel-wrapper {
    position: relative;
}
.news-swiper {
    padding: 8px 0 50px;
    overflow: hidden;
}
.news-card {
    background: rgba(20, 28, 45, 0.6);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #2d3748;
    cursor: pointer;
    transition: 0.3s;
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: #3b82f6;
}
/* 修改这里：让图片完整显示，不被裁剪 */
.news-img {
    width: 100%;
    height: auto; /* 改为 auto，让高度自适应 */
    max-height: 220px; /* 可选：设置最大高度，防止图片过高 */
    object-fit: contain; /* 改为 contain，完整显示图片不裁剪 */
    object-position: center;
    background-color: #0f172a; /* 图片背景色，填充空白区域 */
    display: block;
}
.news-content {
    padding: 16px;
}
.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.news-excerpt {
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* About & Career */
.about-wrapper, .career-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.glass-panel {
    background: rgba(20, 28, 45, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}
.tagline {
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: inline-block;
}
.value-item {
    margin: 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px dashed #2d3748;
}
.about-carousel {
    border-radius: 40px;
    overflow: hidden;
    min-height: 320px;
}
.about-swiper {
    width: 100%;
    height: 100%;
    min-height: 320px;
}
.about-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    min-height: 320px;
}
.career-image {
    border-radius: 40px;
    height: 450px;
    background-size: cover;
    background-position: center;
}
.job-category {
    color: #3b82f6;
    font-weight: 600;
    margin: 28px 0 12px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding-bottom: 6px;
}
.job-item {
    margin-bottom: 8px;
    border-radius: 14px;
}
.job-title {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    border-radius: 14px;
    transition: background 0.2s;
}
.job-title:hover {
    background: rgba(59, 130, 246, 0.1);
}
.job-arrow {
    transition: transform 0.3s;
    color: #3b82f6;
    font-size: 0.8rem;
}
.job-title.active .job-arrow {
    transform: rotate(90deg);
}
.job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.job-details.show {
    max-height: 400px;
}
.details-content {
    padding: 16px 20px;
    color: #a5b4cb;
    font-size: 0.85rem;
    line-height: 1.6;
    border-left: 2px solid #3b82f6;
    margin-left: 16px;
    background: rgba(0,0,0,0.1);
    border-radius: 0 12px 12px 0;
}
.details-content p {
    margin-bottom: 8px;
}
.contact-email {
    margin-top: 28px;
    padding: 14px 20px;
    background: rgba(59,130,246,0.1);
    border-radius: 40px;
    text-align: center;
    font-size: 0.9rem;
}
.notice-bar {
    background: #0f172a;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    border-radius: 40px;
    margin: 40px 20px;
    line-height: 1.5;
}
.footer {
    background: #030712;
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.footer a:hover {
    color: white;
}
.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1f2937;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
}
.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 28px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-container {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
    color: #cbd5e1;
    line-height: 1.6;
}

/* ===== 移动端适配 - 横版图片完整显示 ===== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }
    .logo-text {
        font-size: 0.9rem;
    }
    .logo-badge {
        display: none;
    }
    .logo-wrapper img {
        width: 40px;
        height: 40px;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 25, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        z-index: 999;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    
    /* 轮播图移动端：横版图片完整显示，以宽度为准 */
    .hero-section {
        width: 100%;
    }
    .hero-swiper .swiper-slide {
        padding-bottom: 56.25%; /* 16:9 默认比例，会被JS动态计算覆盖 */
        background-size: contain;
    }
    .slide-content {
        bottom: 10%;
        padding: 0 16px;
    }
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .slide-desc {
        font-size: 0.85rem;
    }
    .swiper-button-prev,
    .swiper-button-next {
        width: 32px;
        height: 32px;
        display: flex;
    }
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 14px;
    }
    .scroll-down {
        bottom: 12px;
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    /* 内容上移 - 减少顶部间距 */
    .advantages-section {
        padding: 40px 0 30px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stats-grid {
        flex-direction: column;
        gap: 24px;
    }
    .about-wrapper, 
    .career-wrapper {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .glass-panel {
        padding: 28px 20px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 12px;
    }
    .about-carousel, 
    .about-swiper {
        min-height: 220px;
    }
    .career-image {
        height: 220px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding-left: 20px;
        box-shadow: none;
        margin-top: 8px;
    }
    .nav-item:hover .dropdown-menu {
        transform: none;
    }
    .dropdown-menu::before {
        display: none;
    }
    .dropdown-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* 通知栏优化 */
    .notice-bar {
        margin: 30px 16px;
        padding: 12px;
        font-size: 0.7rem;
    }
    
    /* 优势卡片优化 */
    .advantage-card {
        padding: 24px 16px;
    }
    .advantage-card h3 {
        font-size: 1.2rem;
    }
    .advantage-icon {
        font-size: 2rem;
    }
    
    /* 统计数字优化 */
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* 产品卡片优化 */
    .product-info {
        padding: 12px;
    }
    .product-name {
        font-size: 0.9rem;
    }
    
    /* 新闻卡片优化 */
    .news-content {
        padding: 12px;
    }
    .news-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .slide-title {
        font-size: 1.2rem;
    }
    .slide-desc {
        font-size: 0.75rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .advantage-card {
        padding: 20px 14px;
    }
    .advantage-card h3 {
        font-size: 1.1rem;
    }
    .glass-panel {
        padding: 20px 16px;
    }
    .job-title {
        padding: 12px;
        font-size: 0.85rem;
    }
    .details-content {
        padding: 12px 16px;
        font-size: 0.75rem;
    }
    .contact-email {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}

/* 修复 iPhone 刘海屏安全区域 */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(48px, env(safe-area-inset-left));
        padding-right: max(48px, env(safe-area-inset-right));
        padding-top: max(16px, env(safe-area-inset-top));
    }
    .scroll-down {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 768px) {
    @supports (padding: max(0px)) {
        .navbar {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }
        .scroll-down {
            bottom: max(12px, env(safe-area-inset-bottom));
        }
    }
}

/* 确保产品图片样式正确 */
.product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block; /* 确保图片正常显示 */
}

.product-card {
    background: #151e2f;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #2d3748;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.product-info {
    padding: 16px;
    flex: 1;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: white;
}

.product-desc {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 让文字强制单行显示，加长宽度 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 28, 45, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 0;
    min-width: 260px;  /* 增加宽度到260px，确保一行显示 */
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    display: block;
    padding: 12px 28px;  /* 增加左右内边距 */
    color: #e0e7ff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;  /* 强制不换行 */
}

/* 如果文字还是太长，可以稍微缩小字体 */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 220px;
        left: auto;
        right: 0;
        transform: translateX(0) translateY(10px);
    }
    
    .dropdown-item {
        white-space: normal;  /* 移动端允许换行 */
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .nav-item:hover .dropdown-menu {
        transform: translateX(0) translateY(0);
    }
}

/* ===== 移动端下拉菜单点击支持 ===== */
@media (max-width: 768px) {
    /* 移除hover效果，改用active类控制 */
    .nav-item .dropdown-menu {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        background: rgba(20, 28, 45, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 8px 0;
        margin-top: 8px;
        min-width: 200px;
        width: 100%;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    /* 当父元素有 active 类时显示下拉菜单 */
    .nav-item.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        margin-top: 8px;
    }
    
    /* 移动端下拉菜单项样式 */
    .dropdown-item {
        white-space: normal;
        font-size: 0.9rem;
        padding: 10px 20px;
        text-align: left;
    }
    
    /* 添加点击指示器 */
    .nav-item > a {
        position: relative;
        padding-right: 20px;
    }
    
    .nav-item > a::after {
        content: '▼';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        color: #a5b4fc;
        transition: transform 0.3s;
    }
    
    .nav-item.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* ===== 移动端下拉菜单点击支持 ===== */
@media (max-width: 768px) {
    /* 移动端导航项样式 */
    .nav-item {
        position: relative;
        width: 100%;
    }
    
    /* 下拉菜单默认隐藏 */
    .nav-item .dropdown-menu {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        background: rgba(20, 28, 45, 0.98);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 0;
        margin-top: 0;
        width: 100%;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    /* 点击展开时显示 */
    .nav-item.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        margin-top: 12px;
        padding: 8px 0;
    }
    
    /* 下拉菜单项 */
    .dropdown-item {
        white-space: normal;
        font-size: 0.9rem;
        padding: 12px 20px;
        text-align: left;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* 添加下拉箭头指示器 */
    .nav-item > a {
        position: relative;
        display: inline-block;
        cursor: pointer;
    }
    
    .nav-item > a::after {
        content: '▼';
        position: relative;
        display: inline-block;
        margin-left: 8px;
        font-size: 0.7rem;
        color: #a5b4fc;
        transition: transform 0.3s;
    }
    
    .nav-item.active > a::after {
        transform: rotate(180deg);
    }
}

/* ===== 移动端适配 - 修复菜单对齐 ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo-badge {
        display: none;
    }
    
    .logo-wrapper img {
        width: 40px;
        height: 40px;
    }
    
    /* 移动端导航链接容器 - 保持右对齐 */
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(10, 15, 25, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        z-index: 999;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left; /* 左对齐文字 */
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* 导航项 - 左对齐 */
    .nav-item {
        width: 100%;
        margin: 0;
        text-align: left;
    }
    
    .nav-item > a {
        display: block;
        padding: 8px 0;
        font-size: 1rem;
        position: relative;
        text-align: left;
        color: #e0e7ff;
    }
    
    /* 添加下拉箭头 - 放在右边 */
    .nav-item > a::after {
        content: '▼';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        color: #a5b4fc;
        transition: transform 0.3s;
    }
    
    /* 展开时箭头旋转 */
    .nav-item.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* 下拉菜单 - 左对齐 */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        background: rgba(30, 41, 59, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 0 !important;
        margin-top: 8px !important;
        width: 100% !important;
        min-width: auto !important;
        left: auto !important;
        right: auto !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
        transition: all 0.3s ease !important;
        max-height: 0 !important;
        overflow: hidden !important;
        text-align: left;
    }
    
    /* 展开时显示 */
    .nav-item.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 300px !important;
        padding: 8px 0 !important;
    }
    
    /* 下拉菜单项 - 左对齐 */
    .dropdown-item {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        white-space: normal !important;
        color: #e0e7ff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        text-align: left !important;
        display: block !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    .dropdown-item:hover {
        background: rgba(59, 130, 246, 0.2) !important;
        padding-left: 20px !important;
    }
    
    /* 其他移动端样式保持不变 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    
    /* ... 其他样式保持不变 ... */
}

/* ===== 轮播图按钮 - 简洁小箭头 ===== */
.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.2);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover:after,
.swiper-button-next:hover:after {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 28px;
        height: 28px;
    }
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 18px;
    }
}