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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    transition: background 0.3s ease, color 0.3s ease;
}

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

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

section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-light {
    background: #f8f9fa;
}

body.dark .bg-light {
    background: #16213e;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    color: #e94560;
}

h2 {
    font-size: 1.8rem;
    color: #0f3460;
}

body.dark h2 {
    color: #e94560;
}

h3 {
    font-size: 1.3rem;
    color: #333;
}

body.dark h3 {
    color: #ccc;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.lead {
    font-size: 1.15rem;
    color: #555;
    max-width: 900px;
}

body.dark .lead {
    color: #bbb;
}

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

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

/* 导航栏 */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

body.dark #header {
    background: rgba(26, 26, 46, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e94560;
}

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

.nav-links a {
    color: #333;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

body.dark .nav-links a {
    color: #ccc;
}

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

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

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

body.dark .nav-actions button {
    color: #ccc;
}

.nav-actions button:hover {
    transform: scale(1.2);
    color: #e94560;
}

#menuToggle {
    display: none;
}

.search-bar {
    display: none;
    padding: 10px 20px;
    background: #f1f1f1;
    transition: background 0.3s ease;
}

body.dark .search-bar {
    background: #0f3460;
}

.search-bar input {
    padding: 8px;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: #e94560;
    outline: none;
}

.search-bar button {
    padding: 8px 16px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #c0392b;
}

/* Banner 轮播 */
.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-slider {
    position: relative;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.banner-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.banner-controls button:hover {
    background: #e94560;
    transform: scale(1.1);
}

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

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

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

.banner-dots span:hover {
    background: #e94560;
}

/* 关于部分 */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.about-card {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .about-card {
    background: rgba(15, 52, 96, 0.9);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
    margin: 15px 0 10px;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid #e94560;
    margin: 20px 0;
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #e94560;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.5);
}

.year {
    font-weight: bold;
    color: #e94560;
    font-size: 1.2rem;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .product-card {
    background: rgba(15, 52, 96, 0.9);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    margin: 15px 0 10px;
}

/* 优势列表 */
.advantage-list {
    list-style: none;
    padding: 0;
}

.advantage-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: padding-left 0.3s ease;
}

body.dark .advantage-list li {
    border-color: #333;
}

.advantage-list li:hover {
    padding-left: 10px;
    border-bottom-color: #e94560;
}

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

.solution-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .solution-card {
    background: rgba(15, 52, 96, 0.9);
}

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

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

.case-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .case-card {
    background: rgba(15, 52, 96, 0.9);
}

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

/* 评价 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

blockquote {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-left: 5px solid #e94560;
    border-radius: 8px;
    font-style: italic;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark blockquote {
    background: rgba(15, 52, 96, 0.9);
}

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

blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: bold;
    color: #e94560;
}

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

.article-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .article-card {
    background: rgba(15, 52, 96, 0.9);
}

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

.article-card time {
    color: #888;
    font-size: 0.9rem;
}

.read-more {
    color: #e94560;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
}

/* FAQ */
.faq-list details {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .faq-list details {
    background: rgba(15, 52, 96, 0.9);
}

.faq-list details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f3460;
    transition: color 0.3s ease;
}

body.dark .faq-list summary {
    color: #e94560;
}

.faq-list summary:hover {
    color: #e94560;
}

.faq-list details p {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 3px solid #e94560;
}

/* HowTo */
.howto-steps {
    padding-left: 20px;
    margin-bottom: 20px;
}

.howto-steps li {
    margin-bottom: 10px;
    transition: padding-left 0.3s ease;
}

.howto-steps li:hover {
    padding-left: 5px;
}

/* 联系 */
.contact-info p {
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: #e94560;
}

/* 网站地图 */
.sitemap {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sitemap a {
    padding: 5px 10px;
    background: #e94560;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.sitemap a:hover {
    background: #c0392b;
    transform: scale(1.05);
    text-decoration: none;
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links a {
    padding: 5px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
}

body.dark .friend-links a {
    background: #0f3460;
    border-color: #333;
    color: #ccc;
}

.friend-links a:hover {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
    transform: translateY(-2px);
}

/* 页脚 */
footer {
    background: #0f3460;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: #e94560;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* 返回顶部 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    body.dark .nav-links {
        background: rgba(26, 26, 46, 0.95);
    }

    .nav-links.open {
        display: flex;
    }

    #menuToggle {
        display: block;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .about-grid,
    .product-grid,
    .solution-grid,
    .case-grid,
    .testimonial-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .banner-controls button {
        padding: 8px 12px;
        font-size: 1rem;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* 暗色模式额外调整 */
body.dark .nav-links a::after {
    background: #e94560;
}

body.dark .search-bar input {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #333;
}

body.dark .search-bar input:focus {
    border-color: #e94560;
}