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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.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);
    border: 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    box-shadow: none;
}

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

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

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    text-align: center;
    color: #666;
    margin-bottom: 48px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark .section-sub {
    color: #aaa;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

body.dark .card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body.dark .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* 网格与弹性布局 */
.grid {
    display: grid;
    gap: 30px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

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

/* 响应式容器 */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .container {
        padding: 0 16px;
    }
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 245, 250, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

body.dark header {
    background: rgba(15, 15, 26, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    padding: 8px 0;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ff6b35;
}

.dark-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    color: inherit;
}

.dark-toggle:hover {
    background: rgba(255, 107, 53, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: inherit;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(245, 245, 250, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        backdrop-filter: blur(20px);
    }
    body.dark .nav-links {
        background: rgba(15, 15, 26, 0.98);
    }
    .nav-links.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, #ffd6b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero .btn {
    margin: 0 8px 12px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
}

@keyframes heroGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

/* 轮播 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #1a1a2e;
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    padding: 40px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: rgba(255, 107, 53, 0.7);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

.carousel-dots span.active {
    background: #ff6b35;
    width: 24px;
    border-radius: 5px;
}

/* 关于网格 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 40px;
    font-weight: 900;
    color: #ff6b35;
}

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

body.dark .stat-label {
    color: #aaa;
}

/* 团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

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

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    font-weight: 700;
}

.team-card h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-card p {
    font-size: 14px;
    color: #666;
}

body.dark .team-card p {
    color: #aaa;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

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

.product-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

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

body.dark .product-card p {
    color: #aaa;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    cursor: pointer;
}

body.dark .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.faq-question span {
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

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

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

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-top: 12px;
}

/* 联系网格 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

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

.contact-info svg {
    flex-shrink: 0;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.footer h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 18px;
}

.footer a {
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* 返回顶部 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
}

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

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

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

body.dark .search-box {
    background: #1a1a2e;
}

.search-box input {
    width: 100%;
    padding: 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

body.dark .search-box input {
    background: #0f0f1a;
    border-color: #333;
    color: #fff;
}

.search-box input:focus {
    border-color: #ff6b35;
}

.search-results {
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.search-results div {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-results div:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: #999;
}

.breadcrumb a {
    color: #ff6b35;
}

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

.news-card {
    padding: 20px;
}

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

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

.news-card p {
    font-size: 14px;
    color: #666;
}

body.dark .news-card p {
    color: #aaa;
}

/* 合作伙伴网格 */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.partner-item {
    width: 120px;
    height: 60px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #999;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .partner-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.partner-item:hover {
    transform: scale(1.05);
    border-color: #ff6b35;
    color: #ff6b35;
}

/* 评价网格 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 24px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 48px;
    position: absolute;
    top: 8px;
    left: 16px;
    color: #ff6b35;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial-card .author {
    font-weight: 600;
    color: #ff6b35;
}

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

/* 价值网格 */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

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

.value-card .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.value-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: #666;
}

body.dark .value-card p {
    color: #aaa;
}

/* EEAT 区块 */
.eeat-section {
    background: rgba(255, 107, 53, 0.03);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

body.dark .eeat-section {
    background: rgba(255, 107, 53, 0.05);
}

.eeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.eeat-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #ff6b35;
}

.eeat-item p {
    font-size: 14px;
    color: #666;
}

body.dark .eeat-item p {
    color: #aaa;
}

/* 懒加载动画 */
.lazy {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.lazy.loaded {
    opacity: 1;
    transform: translateY(0);
}

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

.sitemap-grid h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ff6b35;
}

.sitemap-grid a {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.sitemap-grid a:hover {
    opacity: 1;
}

/* 表单输入框样式 */
input[type="text"],
input[type="email"],
textarea {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
    width: 100%;
}

body.dark input[type="text"],
body.dark input[type="email"],
body.dark textarea {
    background: #0f0f1a;
    border-color: #333;
    color: #fff;
}

input:focus,
textarea:focus {
    border-color: #ff6b35;
}

/* 其他辅助样式 */
.faq-item {
    cursor: pointer;
}

/* 自定义网格变体 */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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