/* 全局重置与基础样式 */
* {
    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;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
    transition: background 0.4s ease, color 0.4s ease;
}
body.dark {
    background: #0b1120;
    color: #e2e8f0;
}
a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
    color: #d63851;
}

/* 导航栏 - 毛玻璃 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease;
}
body.dark .navbar {
    background: rgba(11, 17, 32, 0.78);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #1e293b;
    transition: color 0.3s ease;
}
body.dark .nav-logo {
    color: #f1f5f9;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-links a {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}
body.dark .nav-links a {
    color: #94a3b8;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: #e94560;
    text-decoration: none;
}
.nav-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}
.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-actions button:hover {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
}
body.dark .nav-actions button {
    color: #94a3b8;
}
body.dark .nav-actions button:hover {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

/* 搜索面板 */
.search-panel {
    display: none;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}
body.dark .search-panel {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: #334155;
}
.search-panel.open {
    display: block;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}
.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}
body.dark .search-form input {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}
body.dark .search-form input:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.25);
}
.search-form button {
    padding: 10px 22px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}
.search-form button:hover {
    background: #d63851;
    transform: scale(1.02);
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid #e5e7eb;
        animation: fadeIn 0.3s ease;
    }
    body.dark .nav-links {
        background: rgba(11, 17, 32, 0.96);
        border-bottom-color: #334155;
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 面包屑 */
.breadcrumb {
    max-width: 1200px;
    margin: 84px auto 0;
    padding: 14px 24px;
    font-size: 0.9rem;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.breadcrumb li+li::before {
    content: "/";
    margin-right: 10px;
    color: #9ca3af;
}
.breadcrumb a {
    color: #6b7280;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: #e94560;
}
.breadcrumb span {
    color: #1e293b;
    font-weight: 500;
}
body.dark .breadcrumb span {
    color: #e2e8f0;
}

/* 通用区块 */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #1e293b;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    border-radius: 4px;
    margin: 12px auto 0;
}
body.dark .section-title {
    color: #f1f5f9;
}

/* Banner - 渐变+毛玻璃 */
.banner {
    position: relative;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 24px;
    overflow: hidden;
}
.banner-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 36px;
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 50%, #e0e7ff 100%);
    border-radius: 24px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}
body.dark .banner-slide {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e293b 100%);
}
.banner-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.banner-slide.active {
    display: flex;
    animation: fadeSlide 0.5s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.banner-text {
    flex: 1;
    z-index: 1;
}
.banner-text h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: #1e293b;
    line-height: 1.2;
}
body.dark .banner-text h1 {
    color: #f1f5f9;
}
.banner-text p {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 28px;
    max-width: 480px;
}
body.dark .banner-text p {
    color: #94a3b8;
}
.btn-primary {
    display: inline-block;
    padding: 14px 34px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
    text-decoration: none;
}
.banner-svg {
    width: 280px;
    height: auto;
    flex-shrink: 0;
    opacity: 0.9;
}
.banner-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
}
.banner-prev, .banner-next {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark .banner-prev, body.dark .banner-next {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(71, 85, 105, 0.6);
    color: #94a3b8;
}
.banner-prev:hover, .banner-next:hover {
    background: rgba(233, 69, 96, 0.15);
    transform: scale(1.1);
}
.banner-dots {
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.dot.active {
    background: #e94560;
    transform: scale(1.2);
}
body.dark .dot {
    background: #475569;
}
body.dark .dot.active {
    background: #e94560;
}

/* 卡片通用样式 - 圆角+毛玻璃+悬停 */
.about-card, .product-card, .solution-card, .case-card, .news-card, .step, .faq-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
body.dark .about-card, body.dark .product-card, body.dark .solution-card, body.dark .case-card, body.dark .news-card, body.dark .step, body.dark .faq-item {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(51, 65, 85, 0.4);
}
.about-card:hover, .product-card:hover, .solution-card:hover, .case-card:hover, .news-card:hover, .step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
body.dark .about-card:hover, body.dark .product-card:hover, body.dark .solution-card:hover, body.dark .case-card:hover, body.dark .news-card:hover, body.dark .step:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.about-grid, .products-grid, .solutions-grid, .cases-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.about-card h3, .product-card h3, .solution-card h3, .news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: #1e293b;
    font-weight: 700;
}
body.dark .about-card h3, body.dark .product-card h3, body.dark .solution-card h3, body.dark .news-card h3 {
    color: #f1f5f9;
}
.about-card p, .solution-card p, .news-card p, .product-card p {
    color: #475569;
    line-height: 1.7;
}
body.dark .about-card p, body.dark .solution-card p, body.dark .news-card p, body.dark .product-card p {
    color: #94a3b8;
}

.product-card svg {
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}
.product-card:hover svg {
    transform: scale(1.1) rotate(-3deg);
}

.case-card footer {
    margin-top: 14px;
    font-style: normal;
    color: #6b7280;
    font-weight: 500;
}
body.dark .case-card footer {
    color: #94a3b8;
}

.news-card time {
    display: block;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 10px;
}
.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #e94560;
    transition: gap 0.2s ease;
}
.read-more::after {
    content: ' →';
    transition: margin-left 0.2s ease;
}
.read-more:hover::after {
    margin-left: 6px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 14px;
    padding: 20px 24px;
    cursor: pointer;
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    color: #1e293b;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #e94560;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
body.dark .faq-item summary {
    color: #f1f5f9;
}
.faq-item p {
    margin-top: 14px;
    color: #475569;
    line-height: 1.7;
}
body.dark .faq-item p {
    color: #94a3b8;
}

/* HowTo 教程 */
.howto-intro {
    text-align: center;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
}
body.dark .howto-intro {
    color: #94a3b8;
}
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}
.step {
    position: relative;
    padding: 28px 24px 24px;
}
.step-num {
    position: absolute;
    top: -14px;
    left: 24px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}
.step h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 1.1rem;
}
body.dark .step h3 {
    color: #f1f5f9;
}
.step p {
    color: #475569;
}
body.dark .step p {
    color: #94a3b8;
}

.howto-notes {
    margin-top: 36px;
    background: rgba(241, 245, 249, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(229, 231, 235, 0.3);
}
body.dark .howto-notes {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(51, 65, 85, 0.3);
}
.howto-notes h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 700;
}
body.dark .howto-notes h3 {
    color: #f1f5f9;
}
.howto-notes ul {
    padding-left: 24px;
    color: #475569;
    margin-bottom: 12px;
}
body.dark .howto-notes ul {
    color: #94a3b8;
}
.howto-notes p {
    color: #475569;
}
body.dark .howto-notes p {
    color: #94a3b8;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-info ul {
    list-style: none;
}
.contact-info li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
}
body.dark .contact-info li {
    border-bottom-color: #334155;
    color: #94a3b8;
}
.contact-info strong {
    color: #1e293b;
}
body.dark .contact-info strong {
    color: #f1f5f9;
}
.contact-extra h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    color: #1e293b;
}
body.dark .contact-extra h3 {
    color: #f1f5f9;
}
.contact-extra p {
    color: #475569;
}
body.dark .contact-extra p {
    color: #94a3b8;
}

/* 网站地图 */
.sitemap-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    justify-content: center;
    padding: 0;
}
.sitemap-list a {
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(233, 69, 96, 0.05);
    transition: background 0.2s ease, color 0.2s ease;
}
body.dark .sitemap-list a {
    color: #94a3b8;
    background: rgba(233, 69, 96, 0.08);
}
.sitemap-list a:hover {
    background: rgba(233, 69, 96, 0.15);
    color: #e94560;
    text-decoration: none;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #d1d5db;
    padding: 48px 24px 32px;
    margin-top: 40px;
}
body.dark .footer {
    background: linear-gradient(135deg, #0b1120 0%, #020617 100%);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f1f5f9;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}
.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #e94560;
    text-decoration: none;
}
.footer-copyright {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.8;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.back-to-top.show {
    display: block;
    animation: bounceIn 0.4s ease;
}
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5); }
    60% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.45);
}

/* 滚动动画 */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 图片懒加载占位 */
.lazy-placeholder {
    background: linear-gradient(135deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}
body.dark .lazy-placeholder {
    background: linear-gradient(135deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 响应式微调 */
@media (max-width: 640px) {
    .section {
        padding: 50px 16px;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .banner-slide {
        flex-direction: column;
        padding: 32px 20px;
        text-align: center;
    }
    .banner-text h1 {
        font-size: 1.6rem;
    }
    .banner-svg {
        width: 200px;
        margin-top: 20px;
    }
    .banner-text p {
        max-width: 100%;
    }
    .nav-inner {
        padding: 0 16px;
    }
    .breadcrumb {
        padding: 10px 16px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}