/* ===== 全局重置 & 基础 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

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

a:hover {
    text-decoration: underline;
    color: #e94560;
}

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

/* ===== 头部导航 ===== */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.4s ease;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #e94560;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.logo span {
    color: #fff;
}

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

.nav li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e94560;
}

.nav li a:hover::after {
    width: 60%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input {
    padding: 8px 16px;
    border: none;
    border-radius: 24px;
    outline: none;
    width: 180px;
    font-size: 14px;
    background: rgba(22, 33, 62, 0.8);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

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

.search-box input:focus {
    width: 220px;
    background: rgba(22, 33, 62, 0.95);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.3);
}

.search-box button {
    background: #e94560;
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

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

/* ===== 面包屑 ===== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 232, 232, 0.5);
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a73e8;
}

.breadcrumb span {
    margin: 0 8px;
    color: #aaa;
}

/* ===== Banner 毛玻璃渐变 ===== */
.banner {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
    color: #fff;
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 460px;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(26, 115, 232, 0.06) 0%, transparent 50%);
    animation: bannerGlow 15s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(3deg); }
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner-slide {
    display: none;
    animation: fadeInUp 0.8s ease forwards;
}

.banner-slide.active {
    display: block;
}

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

.banner h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.banner h1 span {
    color: #e94560;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner p {
    font-size: 18px;
    max-width: 650px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.banner .btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.banner .btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    position: relative;
    overflow: hidden;
}

.banner .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.banner .btn:hover::before {
    left: 100%;
}

.banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

.banner .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: none;
}

.banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e94560;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.2);
}

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

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.banner-dots span.active {
    background: #e94560;
    width: 36px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}

/* ===== 通用标题 ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    transition: color 0.4s ease;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    margin-top: 12px;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 品牌介绍 ===== */
.brand {
    background: #fff;
    padding: 80px 0;
    transition: background 0.4s ease;
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.brand-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.brand-info p {
    margin-bottom: 16px;
    color: #555;
    font-size: 16px;
    text-indent: 2em;
    line-height: 1.9;
}

.brand-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.brand-stats .stat {
    text-align: center;
    background: rgba(233, 69, 96, 0.05);
    padding: 20px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    flex: 1;
}

.brand-stats .stat:hover {
    background: rgba(233, 69, 96, 0.1);
    transform: translateY(-4px);
}

.brand-stats .stat .num {
    font-size: 36px;
    font-weight: 700;
    color: #e94560;
    line-height: 1.2;
}

.brand-stats .stat .label {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

.brand-svg {
    text-align: center;
}

.brand-svg svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(233, 69, 96, 0.1));
}

/* ===== 产品优势 ===== */
.products {
    background: #f5f7fa;
    padding: 80px 0;
    transition: background 0.4s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(238, 238, 238, 0.5);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(233, 69, 96, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

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

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

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.product-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 解决方案 ===== */
.solutions {
    background: #fff;
    padding: 80px 0;
    transition: background 0.4s ease;
}

.solution-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.solution-item {
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 32px;
    border-left: 4px solid #e94560;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.solution-item:hover {
    background: rgba(240, 242, 245, 0.95);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.solution-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.solution-item p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

/* ===== 案例 ===== */
.cases {
    background: #f5f7fa;
    padding: 80px 0;
    transition: background 0.4s ease;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(238, 238, 238, 0.3);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(233, 69, 96, 0.2);
}

.case-card .case-img {
    height: 200px;
    background: linear-gradient(135deg, #e8eef5, #d4dce6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.case-card:hover .case-img {
    transform: scale(1.02);
}

.case-card .case-body {
    padding: 28px;
}

.case-card .case-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.case-card .case-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.case-card .case-body .tag {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== 新闻文章 ===== */
.news {
    background: #fff;
    padding: 80px 0;
    transition: background 0.4s ease;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s ease;
    border: 1px solid rgba(238, 238, 238, 0.4);
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #e94560, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.news-card:hover::after {
    transform: scaleX(1);
}

.news-card:hover {
    background: rgba(240, 242, 245, 0.95);
    border-color: rgba(233, 69, 96, 0.2);
    transform: translateY(-4px);
}

.news-card .date {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a2e;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.news-card .read-more {
    color: #e94560;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card .read-more:hover {
    gap: 8px;
    color: #c23152;
}

/* ===== FAQ ===== */
.faq {
    background: #f5f7fa;
    padding: 80px 0;
    transition: background 0.4s ease;
}

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

.faq-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.faq-item:first-child {
    border-top: 1px solid rgba(224, 224, 224, 0.5);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: #1a1a2e;
    padding: 8px 0;
    transition: color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: #e94560;
}

.faq-question .icon {
    font-size: 24px;
    transition: all 0.4s ease;
    color: #e94560;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(233, 69, 96, 0.08);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.4s ease, opacity 0.3s ease;
    padding: 0 20px 0 0;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding-top: 16px;
    padding-bottom: 12px;
    opacity: 1;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
    background: rgba(233, 69, 96, 0.15);
}

/* ===== HowTo ===== */
.howto {
    background: #fff;
    padding: 80px 0;
    transition: background 0.4s ease;
}

.howto-steps {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    align-items: flex-start;
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 16px;
}

.howto-step:hover {
    background: rgba(233, 69, 96, 0.03);
}

.howto-step .step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    transition: transform 0.3s ease;
}

.howto-step:hover .step-num {
    transform: scale(1.1);
}

.howto-step .step-content h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.howto-step .step-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

/* ===== 联系信息 ===== */
.contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #ff6b81, #e94560);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(233, 69, 96, 0.3);
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #e94560;
    font-weight: 700;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-item p a {
    color: #e94560;
    transition: color 0.3s ease;
}

.contact-item p a:hover {
    color: #ff6b81;
}

/* ===== 底部 ===== */
.footer {
    background: #0a0a15;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer .links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer .links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer .links a:hover {
    color: #e94560;
    background: rgba(233, 69, 96, 0.08);
}

.footer .copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 10px;
}

.footer .copyright p {
    margin-bottom: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 返回顶部 ===== */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-top:hover {
    background: linear-gradient(135deg, #c23152, #a01a3a);
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

/* ===== 暗黑模式 ===== */
.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

.dark-mode .header {
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(12px);
}

.dark-mode .brand,
.dark-mode .solutions,
.dark-mode .news,
.dark-mode .howto {
    background: #1a1a1a;
}

.dark-mode .products,
.dark-mode .cases,
.dark-mode .faq {
    background: #1e1e1e;
}

.dark-mode .product-card,
.dark-mode .case-card,
.dark-mode .news-card,
.dark-mode .solution-item {
    background: rgba(37, 37, 37, 0.9);
    backdrop-filter: blur(10px);
    border-color: rgba(51, 51, 51, 0.5);
}

.dark-mode .product-card:hover {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(233, 69, 96, 0.3);
}

.dark-mode .breadcrumb {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(8px);
    color: #aaa;
    border-color: rgba(51, 51, 51, 0.3);
}

.dark-mode .section-title h2 {
    color: #e0e0e0;
}

.dark-mode .section-title p {
    color: #aaa;
}

.dark-mode .faq-item {
    border-color: rgba(51, 51, 51, 0.5);
}

.dark-mode .faq-question {
    color: #e0e0e0;
}

.dark-mode .faq-answer {
    color: #bbb;
}

.dark-mode .brand-info p {
    color: #bbb;
}

.dark-mode .brand-stats .stat {
    background: rgba(233, 69, 96, 0.08);
}

.dark-mode .brand-stats .stat .label {
    color: #aaa;
}

.dark-mode .brand-stats .stat:hover {
    background: rgba(233, 69, 96, 0.15);
}

.dark-mode .product-card p,
.dark-mode .case-card .case-body p,
.dark-mode .news-card p,
.dark-mode .solution-item p {
    color: #aaa;
}

.dark-mode .product-card h3,
.dark-mode .case-card .case-body h3,
.dark-mode .news-card h3,
.dark-mode .solution-item h3 {
    color: #e0e0e0;
}

.dark-mode .contact {
    background: linear-gradient(135deg, #0d0d1a, #0a0a15);
}

.dark-mode .footer {
    background: #080810;
}

.dark-mode .search-box input {
    background: rgba(30, 30, 46, 0.8);
    color: #fff;
}

.dark-mode .search-box input:focus {
    background: rgba(30, 30, 46, 0.95);
}

.dark-mode .news-card .date {
    color: #888;
}

.dark-mode .howto-step .step-content h4 {
    color: #e0e0e0;
}

.dark-mode .howto-step .step-content p {
    color: #bbb;
}

.dark-mode .howto-step:hover {
    background: rgba(233, 69, 96, 0.05);
}

.dark-mode .faq-item:first-child {
    border-top-color: rgba(51, 51, 51, 0.5);
}

/* ===== 滚动动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .brand-grid {
        gap: 30px;
    }
    
    .solution-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        z-index: 999;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav.open {
        display: flex;
    }

    .nav li a {
        padding: 10px 16px;
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .search-box input {
        width: 120px;
    }

    .search-box input:focus {
        width: 150px;
    }

    .banner {
        padding: 60px 0 50px;
        min-height: 360px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .banner .btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .brand-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand-stats .stat {
        padding: 16px 20px;
    }

    .brand-stats .stat .num {
        font-size: 28px;
    }

    .solution-list {
        grid-template-columns: 1fr;
    }

    .howto-step {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .howto-step .step-num {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer .links {
        gap: 12px;
    }

    .back-top {
        bottom: 30px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 40px 0 40px;
        min-height: 300px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner p {
        font-size: 14px;
    }

    .banner .btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .banner .btn {
        width: 100%;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .brand-stats {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .search-box input {
        width: 100px;
    }

    .search-box input:focus {
        width: 120px;
    }

    .search-box button {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ===== 暗黑模式切换按钮样式（由JS生成） ===== */
button[aria-label="切换暗黑模式"] {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button[aria-label="切换暗黑模式"]:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    button[aria-label="切换暗黑模式"] {
        bottom: 90px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}