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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    color: #202124;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

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

a:hover {
    text-decoration: underline;
}

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

/* ===== 头部 ===== */
header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(26, 115, 232, 0.9);
    transition: background 0.3s;
}

header.dark-mode {
    background: rgba(20, 20, 40, 0.9);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
}

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

nav a {
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 4px 12px;
}

.search-box input {
    border: none;
    background: transparent;
    color: white;
    outline: none;
    padding: 6px;
    width: 160px;
}

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

.search-box button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.dark-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.dark-toggle:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== 英雄区 ===== */
.hero {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.hero.dark-mode {
    background: linear-gradient(135deg, #0d1b2a, #1b2838);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

.hero .btn {
    background: white;
    color: #1a73e8;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1.4s ease;
}

.hero .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* ===== Banner轮播 ===== */
.banner-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-height: 400px;
    position: relative;
}

.banner-slide {
    min-width: 100%;
    transition: transform 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    text-align: center;
}

.banner-slide h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.banner-slide p {
    font-size: 1.1rem;
    max-width: 600px;
}

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

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #1a73e8;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.95);
}

.card.dark-mode {
    background: rgba(30,30,50,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card p {
    color: #5f6368;
}

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

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

/* ===== 统计数字 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.stat-item:hover {
    transform: scale(1.04);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a73e8;
}

.stat-label {
    font-size: 1rem;
    color: #5f6368;
    margin-top: 8px;
}

.stat-item.dark-mode .stat-label {
    color: #b0b0b0;
}

/* ===== FAQ ===== */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item.dark-mode {
    background: rgba(30,30,50,0.95);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

.faq-toggle {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

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

/* ===== 新闻网格 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.news-card.dark-mode {
    background: rgba(30,30,50,0.95);
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.news-card .date {
    color: #5f6368;
    font-size: 0.9rem;
}

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

/* ===== 合作伙伴 ===== */
.partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.partner-item svg {
    width: 100px;
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-item:hover svg {
    opacity: 1;
}

/* ===== 客户评价 ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-style: italic;
}

.testimonial-card.dark-mode {
    background: rgba(30,30,50,0.95);
}

.testimonial-author {
    margin-top: 16px;
    font-weight: 600;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.95rem;
    color: #5f6368;
}

.breadcrumb a {
    color: #1a73e8;
}

.breadcrumb span {
    margin: 0 6px;
}

/* ===== 页脚 ===== */
footer {
    background: #202124;
    color: #e0e0e0;
    padding: 40px 0 20px;
    transition: background 0.3s;
}

footer.dark-mode {
    background: #0d0d1a;
}

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

.footer-grid h4 {
    color: white;
    margin-bottom: 12px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 6px;
}

.footer-grid a {
    color: #b0b0b0;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #3c4043;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a73e8;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
}

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

/* ===== 移动菜单按钮 ===== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== 响应式布局 ===== */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.5);
        padding: 10px;
        border-radius: 8px;
    }
    nav ul.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .search-box input {
        width: 100px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section h2 {
        font-size: 1.8rem;
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.howto-step {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.howto-step.dark-mode {
    background: rgba(30,30,50,0.95);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #1a73e8;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== 解决方案网格 ===== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.solution-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.solution-card.dark-mode {
    background: rgba(30,30,50,0.95);
}

.solution-card:hover {
    transform: translateY(-4px);
}

.solution-card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}

/* ===== 行业网格 ===== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.industry-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.3s;
}

.industry-item.dark-mode {
    background: rgba(30,30,50,0.95);
}

.industry-item:hover {
    background: #e8f0fe;
}

.industry-item.dark-mode:hover {
    background: #2a2a4a;
}

/* ===== 相关链接 ===== */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.related-links a {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: background 0.3s;
}

.related-links a:hover {
    background: #e8f0fe;
    text-decoration: none;
}

.related-links a.dark-mode {
    background: rgba(30,30,50,0.95);
}

/* ===== 网站地图 ===== */
.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sitemap-links a {
    color: #5f6368;
    font-size: 0.9rem;
}

.sitemap-links a:hover {
    color: #1a73e8;
}

/* ===== 友情链接 ===== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.friend-links a {
    color: #5f6368;
}

.friend-links a:hover {
    color: #1a73e8;
}