/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: background 0.5s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 - 毛玻璃效果 */
.navbar {
    background: rgba(26, 58, 92, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

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

.logo-text {
    margin-left: 12px;
    font-size: 1.6em;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 5px 15px;
    backdrop-filter: blur(5px);
}

.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    outline: none;
    width: 180px;
    font-size: 0.9em;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px;
    transition: transform 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.1);
}

/* Hero Banner - 渐变+毛玻璃 */
.hero {
    position: relative;
    overflow: hidden;
    height: 600px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 70px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    animation: slideUp 0.8s ease;
}

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

.slide-content h1,
.slide-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.6);
    background: linear-gradient(135deg, #e55a00, #ff6600);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 30px;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5em;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
}

.slider-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slider-dots span.active {
    background: #ffd700;
    transform: scale(1.3);
    border-color: #ffd700;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 10px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff6600;
}

/* 通用section - 圆角卡片+毛玻璃 */
.section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.section:nth-child(even) {
    background: rgba(240, 244, 248, 0.9);
}

.section:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

h2 {
    font-size: 2.4em;
    color: #1a3a5c;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ff6600, #ffd700);
    border-radius: 3px;
}

h3 {
    font-size: 1.6em;
    color: #2d6a9f;
    margin-bottom: 15px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* 网格布局 - 圆角卡片+毛玻璃效果 */
.culture-grid,
.stats-grid,
.product-grid,
.service-grid,
.testimonial-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.culture-item,
.stat-item,
.product-card,
.service-item,
.testimonial-item,
.news-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.culture-item::before,
.product-card::before,
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #1a3a5c, #4a90d9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.culture-item:hover::before,
.product-card:hover::before,
.service-item:hover::before {
    transform: scaleX(1);
}

.culture-item:hover,
.product-card:hover,
.service-item:hover,
.testimonial-item:hover,
.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #ff6600;
    display: block;
    line-height: 1.2;
    background: linear-gradient(135deg, #ff6600, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1em;
    color: #666;
    margin-top: 10px;
    display: block;
}

.product-card svg {
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.product-card:hover svg {
    transform: scale(1.05) rotate(2deg);
}

/* FAQ 折叠 */
.faq-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background: linear-gradient(135deg, #e8f0fe, #d0e0f0);
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #1a3a5c;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: linear-gradient(135deg, #d0e0f0, #b8d0e8);
}

.faq-answer {
    display: none;
    padding: 20px 25px;
    background: rgba(249, 249, 249, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.3s ease;
}

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

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: #2d6a9f;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* 返回顶部按钮 - 毛玻璃 */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(26, 58, 92, 0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 1.3em;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
    transform: translateY(-5px);
    background: rgba(26, 58, 92, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a3a5c, #0d1b2a);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 30px 30px 0 0;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 列表样式 */
ul,
ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    line-height: 1.8;
}

a {
    color: #2d6a9f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6600;
}

/* 响应式布局 - 手机自适应 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(26, 58, 92, 0.95);
        backdrop-filter: blur(20px);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 10px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: block;
    }

    .search-box {
        display: none;
    }

    .hero {
        height: 400px;
    }

    .slide-content {
        padding: 30px 40px;
        margin: 0 20px;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: 2em;
    }

    .section {
        margin: 20px 15px;
        padding: 40px 20px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.8em;
    }

    .culture-grid,
    .stats-grid,
    .product-grid,
    .service-grid,
    .testimonial-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .slider-controls {
        padding: 0 15px;
    }

    .slider-prev,
    .slider-next {
        padding: 10px 15px;
        font-size: 1.2em;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 1.1em;
    }

    footer {
        border-radius: 20px 20px 0 0;
        padding: 20px 15px;
    }

    .breadcrumb {
        margin: 15px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }

    .slide-content {
        padding: 20px 25px;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: 1.5em;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    .logo-text {
        font-size: 1.2em;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
        color: #e0e0e0;
    }

    .navbar {
        background: rgba(10, 15, 30, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .section {
        background: rgba(22, 33, 62, 0.9);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .section:nth-child(even) {
        background: rgba(15, 52, 96, 0.9);
    }

    .culture-item,
    .stat-item,
    .product-card,
    .service-item,
    .testimonial-item,
    .news-item {
        background: rgba(26, 26, 46, 0.85);
        border-color: rgba(255, 255, 255, 0.05);
        color: #e0e0e0;
    }

    .culture-item:hover,
    .product-card:hover,
    .service-item:hover {
        background: rgba(26, 26, 46, 0.95);
    }

    .faq-question {
        background: linear-gradient(135deg, #0f3460, #1a3a5c);
        color: #e0e0e0;
    }

    .faq-question:hover {
        background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
    }

    .faq-answer {
        background: rgba(26, 26, 46, 0.9);
        color: #c0c0c0;
    }

    .faq-item {
        background: rgba(26, 26, 46, 0.5);
    }

    footer {
        background: linear-gradient(135deg, #0a0a1a, #0d1b2a);
    }

    h2 {
        color: #7ab8f5;
    }

    h3 {
        color: #4a90d9;
    }

    p {
        color: #b0b0b0;
    }

    .breadcrumb {
        background: rgba(26, 26, 46, 0.8);
    }

    .breadcrumb a {
        color: #7ab8f5;
    }

    .stat-label {
        color: #aaa;
    }

    .search-box input {
        color: #fff;
    }

    .search-box input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    a {
        color: #4a90d9;
    }

    a:hover {
        color: #ffd700;
    }

    .product-card svg rect {
        fill: #1a1a2e;
    }
}

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

    .hero {
        height: 700px;
    }

    .section {
        padding: 80px 60px;
    }

    .culture-grid,
    .stats-grid,
    .product-grid,
    .service-grid,
    .testimonial-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }
}