/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #f4f7fc;
    color: #1a1a2e;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

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

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a2a6c, #2d4a8e);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo svg {
    vertical-align: middle;
    margin-right: 8px;
}

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

nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dark-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background: rgba(26, 42, 108, 0.95);
        border-radius: 16px;
        padding: 10px;
    }
    nav ul.open {
        display: flex;
    }
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #1a2a6c 0%, #2d4a8e 50%, #4a6fa5 100%);
    color: #fff;
    padding: 80px 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 8s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

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

.hero .btn {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a2a6c;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.hero .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(247, 151, 30, 0.4);
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a2a6c, #4a6fa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark .section-title {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .card {
    background: rgba(30, 30, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

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

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

.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: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* 面包屑导航 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb a {
    color: #4a6fa5;
    text-decoration: none;
}

body.dark .breadcrumb a {
    color: #f7971e;
}

.breadcrumb span {
    margin: 0 8px;
}

/* FAQ 样式 */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 18px 0;
    cursor: pointer;
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #555;
    margin-top: 8px;
}

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

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

/* 页脚 */
.footer {
    background: #1a2a6c;
    color: #ccc;
    padding: 40px 0;
    margin-top: 40px;
}

body.dark .footer {
    background: #0a0a18;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

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

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

/* 返回顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a2a6c;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
}

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

.scroll-top:hover {
    transform: translateY(-4px);
    background: #2d4a8e;
}

/* Banner 轮播 */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
}

.banner-slide {
    display: none;
    animation: fadeIn 0.6s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dots span.active {
    background: #1a2a6c;
    transform: scale(1.2);
}

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

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

/* 计数器 */
.counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a2a6c;
    display: inline-block;
}

body.dark .counter {
    color: #f7971e;
}

/* 搜索框 */
.search-box {
    display: flex;
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark .search-box {
    background: #2a2a3e;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: #333;
}

body.dark .search-box input {
    color: #eee;
}

.search-box button {
    background: #1a2a6c;
    color: #fff;
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.search-box button:hover {
    background: #2d4a8e;
}

/* 文章卡片 */
.article-card img {
    border-radius: 12px;
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 12px;
}

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

.article-card .date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.article-card p {
    color: #555;
    font-size: 0.95rem;
}

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

.btn-read {
    display: inline-block;
    margin-top: 10px;
    color: #1a2a6c;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-read:hover {
    border-bottom-color: #1a2a6c;
}

body.dark .btn-read {
    color: #f7971e;
}

body.dark .btn-read:hover {
    border-bottom-color: #f7971e;
}

/* HowTo 步骤 */
.howto-step {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #1a2a6c;
}

body.dark .howto-step {
    background: rgba(30, 30, 50, 0.6);
    border-left-color: #f7971e;
}

/* 团队成员 */
.team-member {
    text-align: center;
}

.team-member img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 12px;
    border: 4px solid rgba(26, 42, 108, 0.1);
}

/* 联系信息 */
.contact-info p {
    margin: 6px 0;
}

.contact-info i {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

/* 二维码 */
.qrcode {
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.qrcode svg {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.friend-links a {
    color: #4a6fa5;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: 0.3s;
    font-size: 0.9rem;
}

body.dark .friend-links a {
    color: #aaa;
    border-color: #444;
}

.friend-links a:hover {
    background: #1a2a6c;
    color: #fff;
    border-color: #1a2a6c;
}

/* 评价卡片 */
.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    margin-bottom: 20px;
}

body.dark .review-card {
    background: rgba(30, 30, 50, 0.6);
}

.review-card::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: 10px;
    left: 16px;
    color: #1a2a6c;
    opacity: 0.1;
    font-family: Georgia, serif;
}

.review-card p {
    font-style: italic;
    margin-top: 12px;
}

.review-card .author {
    font-weight: 600;
    margin-top: 12px;
    color: #1a2a6c;
}

body.dark .review-card .author {
    color: #f7971e;
}

/* 案例卡片 */
.case-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 240px;
    background: linear-gradient(135deg, #1a2a6c, #4a6fa5);
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: 0.4s;
}

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

.case-card .overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.case-card .content {
    position: relative;
    z-index: 1;
}

.case-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.case-card p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 解决方案卡片 */
.solution-card {
    background: linear-gradient(135deg, #fff, #f0f4ff);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: 0.4s;
}

body.dark .solution-card {
    background: linear-gradient(135deg, #1e1e3a, #2a2a4e);
}

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

.solution-card h3 {
    font-size: 1.3rem;
    margin: 12px 0 8px;
}

.solution-card p {
    color: #555;
    font-size: 0.95rem;
}

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

/* 行业标签 */
.industry-tag {
    display: inline-block;
    background: #eef4ff;
    padding: 6px 18px;
    border-radius: 30px;
    margin: 5px;
    font-size: 0.9rem;
    color: #1a2a6c;
    font-weight: 500;
    transition: 0.3s;
}

body.dark .industry-tag {
    background: #2a2a4e;
    color: #f7971e;
}

.industry-tag:hover {
    background: #1a2a6c;
    color: #fff;
    transform: translateY(-2px);
}

/* 特性图标 */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* 产品卡片 */
.product-card {
    text-align: center;
    padding: 20px;
}

.product-card img {
    border-radius: 12px;
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.product-card .price {
    font-weight: 700;
    color: #1a2a6c;
    font-size: 1.2rem;
}

body.dark .product-card .price {
    color: #f7971e;
}

/* 服务卡片 */
.service-card {
    text-align: center;
    padding: 24px;
}

.service-card img {
    border-radius: 12px;
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

/* 关于内容 */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-content img {
    flex: 1;
    min-width: 280px;
    border-radius: 20px;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.about-text {
    flex: 2;
    min-width: 280px;
}

/* 订阅区域 */
.newsletter {
    background: linear-gradient(135deg, #1a2a6c, #2d4a8e);
    color: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.newsletter input {
    max-width: 400px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px 0 0 50px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.newsletter button {
    padding: 14px 30px;
    border-radius: 0 50px 50px 0;
    border: none;
    background: #f7971e;
    color: #1a2a6c;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter button:hover {
    background: #ffd200;
}

.newsletter .form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 20px auto;
}