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

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f0f4f8;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

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

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

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

/* 头部 */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s, border-color 0.3s;
}

body.dark header {
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(42, 42, 74, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a73e8, #ff6f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    font-size: 16px;
    color: #333;
    padding: 5px 0;
    position: relative;
}

body.dark nav a {
    color: #e0e0e0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    width: 180px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.3s, background 0.3s;
}

body.dark .search-box input {
    background: rgba(42, 42, 74, 0.7);
    color: #e0e0e0;
    border-color: #555;
}

.search-box input:focus {
    outline: none;
    border-color: #1a73e8;
}

.search-box button {
    padding: 8px 18px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

/* 暗黑模式切换 */
.dark-toggle {
    background: none;
    border: 1px solid #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}

body.dark .dark-toggle {
    border-color: #555;
    color: #e0e0e0;
}

.dark-toggle:hover {
    background: rgba(26, 115, 232, 0.1);
}

/* 移动菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

body.dark .mobile-menu-btn {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
    }

    body.dark nav ul {
        background: rgba(22, 33, 62, 0.95);
    }

    nav ul.show {
        display: flex;
    }

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

    .mobile-menu-btn {
        display: block;
    }
}

/* Hero 区域 - 渐变Banner */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 40%, #4a148c 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: heroGlow 12s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20%, 20%); }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.hero .btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff6f00, #e65100);
    color: #fff;
    border-radius: 30px;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.hero .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
}

/* 轮播指示点 */
.banner-dots {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.banner-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.banner-dots span.active {
    background: #fff;
    transform: scale(1.3);
}

/* 通用区块 */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #ff6f00);
    margin: 12px auto;
    border-radius: 2px;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 卡片 - 圆角 + 毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

body.dark .card {
    background: rgba(22, 33, 62, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(42, 42, 74, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card p {
    color: #555;
    line-height: 1.7;
}

body.dark .card p {
    color: #bbb;
}

/* 品牌介绍 - 毛玻璃 */
.brand-intro {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 60px 0;
}

body.dark .brand-intro {
    background: rgba(22, 33, 62, 0.5);
}

.brand-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.brand-text {
    flex: 2;
    min-width: 300px;
}

.brand-text h2 {
    font-size: 30px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a73e8, #ff6f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

body.dark .brand-text p {
    color: #ccc;
}

.brand-info {
    flex: 1;
    min-width: 250px;
    background: rgba(240, 244, 248, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark .brand-info {
    background: rgba(42, 42, 74, 0.7);
    border-color: rgba(42, 42, 74, 0.3);
}

.brand-info p {
    margin-bottom: 8px;
    font-size: 15px;
}

.brand-info strong {
    color: #1a73e8;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(26, 115, 232, 0.03);
    border-radius: 8px;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding-top: 15px;
    display: none;
    color: #555;
    line-height: 1.8;
}

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

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.4s ease;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

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

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

/* HowTo 步骤 */
.howto-steps {
    list-style: none;
    counter-reset: step;
}

.howto-steps li {
    counter-increment: step;
    padding: 15px 0 15px 50px;
    position: relative;
    font-size: 16px;
    line-height: 1.8;
    border-bottom: 1px solid rgba(224, 224, 224, 0.4);
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

/* 文章网格 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.article-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .article-card {
    background: rgba(22, 33, 62, 0.7);
    border-color: rgba(42, 42, 74, 0.3);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a73e8;
}

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

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

body.dark .article-card p {
    color: #bbb;
}

.article-card .read-more {
    color: #ff6f00;
    font-weight: 600;
    transition: color 0.2s;
}

.article-card .read-more:hover {
    color: #e65100;
}

/* 页脚 */
.footer {
    background: #0f0f1a;
    color: #ccc;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #ff6f00, #1a73e8);
}

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

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #1a73e8;
}

.footer a {
    color: #aaa;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
}

.footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(51, 51, 51, 0.5);
    padding-top: 20px;
    font-size: 13px;
}

.footer-bottom a {
    display: inline;
    margin: 0 8px;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.back-top.show {
    opacity: 1;
}

.back-top:hover {
    transform: scale(1.1);
}

/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 统计数字 */
.stat-number {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: scale(1.03);
}

.stat-box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
}

/* 客户评价 - 毛玻璃 */
.testimonial {
    background: rgba(249, 249, 249, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .testimonial {
    background: rgba(42, 42, 74, 0.7);
    border-color: rgba(42, 42, 74, 0.3);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    font-size: 16px;
}

.testimonial .author {
    font-weight: 600;
    margin-top: 10px;
    color: #1a73e8;
}

/* Schema 隐藏 */
.schema-hidden {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .section-title {
        font-size: 26px;
    }
    .brand-content {
        flex-direction: column;
    }
    .stat-box {
        padding: 15px;
    }
    .stat-number {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    .section {
        padding: 40px 0;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}