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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dark .card {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: #fff;
}

.dark .btn-outline {
    border-color: #60a5fa;
    color: #60a5fa;
}

.dark .btn-outline:hover {
    background: #60a5fa;
    color: #0f172a;
}

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

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

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

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 48px 0;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
}

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

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

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.dark .header {
    background: rgba(15, 23, 42, 0.9);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a73e8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.dark .logo {
    color: #60a5fa;
}

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

.nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #1a73e8;
}

.dark .nav a {
    color: #cbd5e1;
}

.dark .nav a:hover,
.dark .nav a.active {
    color: #60a5fa;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #1e293b;
    transition: all 0.3s;
}

.dark .nav-toggle span {
    background: #e2e8f0;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    .nav.open {
        display: flex;
    }
    .dark .nav {
        background: rgba(15, 23, 42, 0.98);
    }
    .nav-toggle {
        display: flex;
    }
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1a73e8 50%, #4f46e5 100%);
    z-index: -2;
    transition: background 0.5s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: #fff;
    color: #1a73e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline {
    border-color: #fff;
    color: #fff;
}

.hero-buttons .btn-outline:hover {
    background: #fff;
    color: #1a73e8;
}

.hero-slider {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-slider span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* About部分 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 16px;
    color: #475569;
}

.dark .about-text p {
    color: #94a3b8;
}

.about-image {
    text-align: center;
}

.about-image svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    text-align: center;
    padding: 24px;
}

.value-item svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.value-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.9rem;
    color: #64748b;
}

.dark .value-item p {
    color: #94a3b8;
}

/* 产品部分 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    text-align: center;
    padding: 32px 24px;
}

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

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card p {
    color: #64748b;
    margin-bottom: 16px;
}

.dark .product-card p {
    color: #94a3b8;
}

/* 特性部分 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
}

.dark .feature-item p {
    color: #94a3b8;
}

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

.solution-card {
    text-align: center;
    padding: 32px;
}

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

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

.solution-card p {
    color: #64748b;
}

.dark .solution-card p {
    color: #94a3b8;
}

/* 统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: #64748b;
    margin-top: 4px;
}

.dark .stat-item p {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.case-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

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

.case-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-card p {
    color: #64748b;
    font-size: 0.9rem;
}

.dark .case-card p {
    color: #94a3b8;
}

/* 客户 */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    align-items: center;
    justify-items: center;
}

.client-item {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.client-item:hover {
    opacity: 1;
}

.client-item svg {
    width: 80px;
    height: 40px;
}

/* 评价 */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    text-align: center;
    padding: 32px;
    display: none;
}

.testimonial-card.active {
    display: block;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 16px;
    color: #475569;
}

.dark .testimonial-card p {
    color: #cbd5e1;
}

.testimonial-card h4 {
    font-weight: 700;
    color: #1a73e8;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: #64748b;
}

.dark .testimonial-card span {
    color: #94a3b8;
}

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

.news-card {
    padding: 24px;
}

.news-card .date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
}

.dark .news-card .date {
    color: #94a3b8;
}

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

.news-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.dark .news-card p {
    color: #94a3b8;
}

.news-card a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.dark .news-card a {
    color: #60a5fa;
}

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

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.dark .faq-item {
    border-color: #334155;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 0;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    color: #1a73e8;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0;
    color: #475569;
}

.dark .faq-answer {
    color: #94a3b8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 12px 0;
}

/* 使用指南 */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.howto-step h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.howto-step p {
    color: #64748b;
    font-size: 0.9rem;
}

.dark .howto-step p {
    color: #94a3b8;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    color: #1a73e8;
}

.dark .contact-info svg {
    color: #60a5fa;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
    background: #fff;
    transition: border-color 0.3s;
}

.dark .contact-form input,
.dark .contact-form textarea {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* 网站地图 */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.sitemap-group h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a73e8;
}

.dark .sitemap-group h4 {
    color: #60a5fa;
}

.sitemap-group a {
    display: block;
    color: #475569;
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.dark .sitemap-group a {
    color: #94a3b8;
}

.dark .sitemap-group a:hover {
    color: #60a5fa;
}

/* 页脚 */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr;
    }
}

.footer h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 32px;
    padding-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.5);
}

.back-to-top.visible {
    display: flex;
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #475569;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.dark .theme-toggle {
    color: #cbd5e1;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
}

/* 搜索模态框 */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal.open {
    display: flex;
}

.search-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dark .search-modal-content {
    background: #1e293b;
}

.search-modal input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
}

.dark .search-modal input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

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

.search-modal .close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.dark .search-modal .close-btn {
    color: #94a3b8;
}

/* 应用场景卡片内联样式补充 */
.card[style*="text-align:center"] h3 {
    margin-top: 12px;
    font-weight: 700;
}

.card[style*="text-align:center"] p {
    color: #64748b;
    margin-top: 8px;
}

.dark .card[style*="text-align:center"] p {
    color: #94a3b8;
}

/* 友情链接区域 */
#links a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}

#links a:hover {
    color: #4f46e5;
}

.dark #links a {
    color: #60a5fa;
}

.dark #links a:hover {
    color: #93c5fd;
}

/* 统计区域覆盖白色文字 */
#stats .stat-item p {
    color: rgba(255, 255, 255, 0.8);
}

#stats .stat-item h3 {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}