/* 全局重置与基础 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f5; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #e94560; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #d63850; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background: #f8fafc;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.dark-mode {
    background: #0f0f1a;
    color: #e2e8f0;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 渐变Banner背景（通用） */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 头部导航 ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(233, 69, 96, 0.15);
    transition: background 0.3s;
}

body.dark-mode header {
    background: rgba(15, 15, 26, 0.95);
    border-bottom-color: rgba(233, 69, 96, 0.1);
}

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

.nav-logo a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}
.nav-logo a:hover { opacity: 0.85; }

.nav-logo svg {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #e94560;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before { width: 60%; }

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #ffffff;
    background: rgba(233, 69, 96, 0.2);
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-actions button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-actions button:hover {
    background: rgba(233, 69, 96, 0.3);
    transform: scale(1.05);
}

.nav-actions button svg {
    width: 20px;
    height: 20px;
}

.menu-toggle { display: none; }

/* 搜索栏 */
.search-bar {
    display: none;
    padding: 12px 24px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(233, 69, 96, 0.1);
}

.search-bar.active {
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.search-bar input:focus {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.1);
}

.search-bar input::placeholder { color: rgba(255, 255, 255, 0.4); }

.search-bar button {
    padding: 10px 28px;
    background: linear-gradient(135deg, #e94560, #d63850);
    border: none;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

/* 面包屑 */
.breadcrumb {
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb ol li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.breadcrumb ol li a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb ol li a:hover { color: #ff7b8a; }

.breadcrumb ol li+li::before {
    content: '›';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Hero 轮播 ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #1a1a2e;
}

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

.slide {
    display: none;
    position: relative;
    animation: fadeSlide 0.8s ease;
}

.slide.active { display: block; }

@keyframes fadeSlide {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 85%;
    max-width: 780px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    margin-bottom: 28px;
    opacity: 0.92;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e94560, #d63850);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(233, 69, 96, 0.45);
}

.btn-primary:active { transform: translateY(-1px); }

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

.slider-controls button {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.8rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-controls button:hover {
    background: #e94560;
    border-color: #e94560;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dots .dot.active {
    background: #e94560;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.slider-dots .dot:hover { background: rgba(233, 69, 96, 0.7); }

/* ===== 通用 Section ===== */
.section {
    padding: 90px 0;
    position: relative;
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    color: #1a1a2e;
    position: relative;
}

body.dark-mode .section h2 { color: #f1f5f9; }

.section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    margin: 16px auto 0;
    border-radius: 4px;
}

.section p {
    font-size: 1rem;
    margin-bottom: 24px;
    text-align: center;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    color: #475569;
    line-height: 1.8;
}

body.dark-mode .section p { color: #94a3b8; }

/* 毛玻璃卡片 */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(233, 69, 96, 0.2);
}

body.dark-mode .card {
    background: rgba(30, 30, 50, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card:hover {
    border-color: rgba(233, 69, 96, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #e94560;
    font-weight: 700;
}

.card p {
    text-align: left;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
}

body.dark-mode .card p { color: #a0aec0; }

/* 统计数字 */
.brand-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 150px;
}

body.dark-mode .stat {
    background: rgba(30, 30, 50, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat .num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e94560;
    display: block;
    line-height: 1.2;
}

.stat span:last-child {
    font-size: 1rem;
    color: #64748b;
    display: block;
    margin-top: 6px;
    font-weight: 500;
}

body.dark-mode .stat span:last-child { color: #94a3b8; }

/* 网格布局 */
.culture-grid,
.team-grid,
.product-grid,
.service-grid,
.case-grid,
.related-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    padding: 32px 20px;
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 18px;
    object-fit: cover;
    border: 4px solid rgba(233, 69, 96, 0.2);
    transition: border-color 0.3s, transform 0.3s;
}

.team-member:hover img {
    border-color: #e94560;
    transform: scale(1.05);
}

.team-member h3 { margin-bottom: 8px; }

/* 文章卡片 */
.article-grid article {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

body.dark-mode .article-grid article {
    background: rgba(30, 30, 50, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.article-grid article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.article-grid article h3 {
    color: #e94560;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.article-grid article p {
    text-align: left;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: #64748b;
}

body.dark-mode .article-grid article p { color: #94a3b8; }

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s, gap 0.3s;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 4px;
    transition: margin-left 0.3s;
}

.read-more:hover { color: #d63850; }
.read-more:hover::after { margin-left: 8px; }

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 14px;
    padding: 22px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .faq-item {
    background: rgba(30, 30, 50, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    border-color: rgba(233, 69, 96, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-item h3 {
    font-size: 1.05rem;
    color: #e94560;
    margin-bottom: 4px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.4rem;
    color: #e94560;
    transition: transform 0.3s;
}

.faq-item.open h3::after {
    transform: rotate(45deg);
}

.faq-item p {
    text-align: left;
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(233, 69, 96, 0.1);
    color: #475569;
}

body.dark-mode .faq-item p { color: #94a3b8; }

.faq-item.open p { display: block; }

/* HowTo */
.howto ol,
.howto ul {
    max-width: 700px;
    margin: 20px auto;
    padding-left: 32px;
    text-align: left;
}

.howto li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #475569;
}

body.dark-mode .howto li { color: #94a3b8; }

.howto h3 {
    text-align: center;
    color: #e94560;
    margin-top: 30px;
    margin-bottom: 16px;
}

/* 联系信息 */
.contact-info {
    text-align: center;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .contact-info {
    background: rgba(30, 30, 50, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #1f2937;
}

body.dark-mode .contact-info p { color: #e2e8f0; }

.contact-info strong { color: #e94560; }

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #cbd5e1;
    padding: 70px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #e94560;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col p {
    text-align: left;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-col svg {
    display: inline-block;
    margin: 8px 12px 8px 0;
    border-radius: 8px;
    transition: transform 0.3s;
}

.footer-col svg:hover { transform: scale(1.05); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 8px;
    color: #64748b;
    line-height: 1.6;
}

/* 返回顶部 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e94560, #d63850);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.35);
    transition: all 0.3s ease;
    z-index: 999;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(233, 69, 96, 0.5);
}

/* ===== 滚动动画 ===== */
.card,
.team-member,
.faq-item,
.section,
.article-grid article,
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.animate,
.team-member.animate,
.faq-item.animate,
.section.animate,
.article-grid article.animate,
.hero-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }
.card:nth-child(4) { transition-delay: 0.3s; }

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .hero-content { padding: 36px 28px; width: 90%; }
    .brand-stats { gap: 30px; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(16px);
        padding: 20px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(233, 69, 96, 0.1);
    }
    .nav-menu.active { display: flex; }
    .nav-menu li a { padding: 12px 16px; font-size: 1rem; }
    .menu-toggle { display: flex; }

    .hero { min-height: 400px; }
    .hero-content { padding: 28px 20px; width: 92%; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.95rem; }

    .section { padding: 60px 0; }
    .section h2 { font-size: 1.6rem; }

    .brand-stats { gap: 16px; }
    .stat { min-width: 120px; padding: 16px 20px; }
    .stat .num { font-size: 2rem; }

    .culture-grid,
    .team-grid,
    .product-grid,
    .service-grid,
    .case-grid,
    .related-grid,
    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .slider-controls button {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
        padding: 8px;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .nav-container { padding: 10px 16px; }
    .nav-logo svg { height: 32px; }

    .hero { min-height: 320px; }
    .hero-content { padding: 20px 16px; }
    .hero-content h1 { font-size: 1.3rem; }
    .hero-content p { font-size: 0.85rem; margin-bottom: 20px; }
    .btn-primary { padding: 10px 24px; font-size: 0.9rem; }

    .section { padding: 40px 0; }
    .section h2 { font-size: 1.4rem; }

    .card { padding: 24px 18px; }
    .stat { min-width: 100px; padding: 12px 16px; }
    .stat .num { font-size: 1.6rem; }

    .faq-item { padding: 16px 20px; }
    .contact-info { padding: 24px 16px; }

    #back-to-top { width: 44px; height: 44px; font-size: 1.2rem; bottom: 20px; right: 20px; }
}

/* ===== 暗黑模式增强 ===== */
body.dark-mode .hero-content {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .breadcrumb { background: rgba(0, 0, 0, 0.2); }
body.dark-mode .breadcrumb ol li { color: rgba(255, 255, 255, 0.5); }

body.dark-mode .slider-controls button {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .slider-dots .dot {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .stat {
    background: rgba(30, 30, 50, 0.4);
}

/* ===== 辅助类 ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }