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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    min-height: 100vh;
}

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

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

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    color: #1a202c;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin: 0.6rem 0;
}

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

/* 导航吸顶 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.8rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar .nav-links li a {
    color: #ecf0f1;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #3498db;
}

.navbar .nav-links li a:hover::after {
    width: 100%;
}

.navbar .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar .menu-toggle:hover {
    transform: scale(1.1);
}

/* 移动菜单 */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        gap: 0.5rem;
        background: rgba(44, 62, 80, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 12px;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .menu-toggle {
        display: block;
    }
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    background: rgba(44, 62, 80, 1);
    border-color: #fff;
}

/* Banner轮播 */
.banner {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.banner-slide h2 {
    font-size: 2.2rem;
    border: none;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-slide p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.banner-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

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

.banner-indicators span:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

/* 文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.article-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

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

.article-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: #2d3748;
}

.article-card .meta {
    font-size: 0.85rem;
    color: #718096;
    margin: 0.3rem 0;
}

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

.article-card .read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #667eea;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

.article-card .read-more:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    padding: 1rem;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2d3748;
}

.faq-question::after {
    content: "+";
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: #667eea;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0.5rem;
    color: #4a5568;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* HowTo */
.howto-step {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.howto-step h4 {
    margin-top: 0;
    color: #2d3748;
}

/* 数字动画 */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    flex: 1 1 150px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: #4a5568;
    margin-top: 0.5rem;
}

/* 暗黑模式 */
.dark-mode {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #e2e8f0;
}

.dark-mode .article-card, .dark-mode .howto-step, .dark-mode .faq-item, .dark-mode .stat-item {
    background: rgba(45, 55, 72, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e2e8f0;
    border-color: rgba(74, 85, 104, 0.5);
}

.dark-mode .article-card h3, .dark-mode .howto-step h4, .dark-mode .faq-question {
    color: #e2e8f0;
}

.dark-mode .article-card p, .dark-mode .faq-answer {
    color: #cbd5e0;
}

.dark-mode .navbar {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .back-to-top {
    background: rgba(74, 85, 104, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .faq-item {
    border-color: rgba(74, 85, 104, 0.5);
}

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

.dark-mode footer {
    background: rgba(26, 32, 44, 0.95);
}

.dark-mode .svg-placeholder {
    background: rgba(74, 85, 104, 0.5);
    color: #e2e8f0;
}

.dark-mode blockquote {
    background: rgba(45, 55, 72, 0.9) !important;
    color: #e2e8f0;
}

.dark-mode blockquote cite {
    color: #cbd5e0;
}

.dark-mode h2 {
    border-bottom-color: rgba(74, 85, 104, 0.5);
}

/* 搜索 */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dark-mode .search-box {
    background: rgba(45, 55, 72, 0.9);
}

.search-box input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid rgba(203, 213, 224, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.dark-mode .search-box input {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(74, 85, 104, 0.5);
    color: #e2e8f0;
}

.search-box button {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

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

/* 面包屑 */
.breadcrumb {
    font-size: 0.9rem;
    color: #718096;
    padding: 0.8rem 0;
}

.breadcrumb a {
    color: #1a73e8;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1557b0;
}

.dark-mode .breadcrumb {
    color: #cbd5e0;
}

.dark-mode .breadcrumb a {
    color: #667eea;
}

/* 页脚 */
footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer a {
    color: #667eea;
    transition: color 0.3s;
}

footer a:hover {
    color: #764ba2;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

footer h4 {
    color: #fff;
    margin-top: 0;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin: 0.3rem 0;
}

/* 图片占位SVG风格 */
.svg-placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #4a5568;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.svg-placeholder:hover {
    transform: scale(1.05);
}

/* 客户评价 */
blockquote {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

blockquote:hover {
    transform: translateY(-3px);
}

blockquote p {
    font-style: italic;
    line-height: 1.6;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: #718096;
}

/* 产品卡片 */
section#products div[style*="flex"] > div {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

section#products div[style*="flex"] > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.dark-mode section#products div[style*="flex"] > div {
    background: rgba(45, 55, 72, 0.9) !important;
    border-color: rgba(74, 85, 104, 0.5);
}

/* 联系信息 */
section#contact {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.dark-mode section#contact {
    background: rgba(45, 55, 72, 0.8);
}

/* 解决方案部分 */
section#solutions h3 {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s;
}

section#solutions h3:hover {
    transform: translateX(5px);
}

.dark-mode section#solutions h3 {
    background: rgba(45, 55, 72, 0.8);
}

/* 通用响应式 */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .banner-slide h2 {
        font-size: 1.8rem;
    }

    .banner-slide p {
        font-size: 1rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 120px;
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 250px;
    }

    .banner-slide h2 {
        font-size: 1.5rem;
    }

    .banner-slide p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* 动画延迟 */
.scroll-animate:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-animate:nth-child(3) {
    transition-delay: 0.2s;
}

.scroll-animate:nth-child(4) {
    transition-delay: 0.3s;
}

.scroll-animate:nth-child(5) {
    transition-delay: 0.4s;
}

.scroll-animate:nth-child(6) {
    transition-delay: 0.5s;
}

/* 搜索结果显示 */
#searchResults {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.dark-mode #searchResults {
    background: rgba(45, 55, 72, 0.9);
}