/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
}

body {
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

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

/* 导航吸顶 + 毛玻璃效果 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background 0.3s, border-color 0.3s;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 32px;
    height: 32px;
}

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

.nav-links a {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #374151;
    display: block;
    transition: 0.3s;
}

/* 移动菜单 */
.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: #ff6b35;
    text-decoration: none;
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #2563eb;
}

.breadcrumb span {
    margin: 0 6px;
}

/* 首屏 - 渐变Banner */
.hero {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe4d6 100%);
    padding: 60px 0 80px;
    border-radius: 0 0 48px 48px;
    transition: background 0.3s;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #ff6b35;
}

.hero-text p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #e55a2b;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

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

.btn-outline:hover {
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1 1 400px;
    text-align: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* 通用标题 */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    transition: color 0.3s;
}

.section-title p {
    color: #6b7280;
    margin-top: 8px;
    font-size: 1rem;
}

/* 品牌介绍 - 圆角卡片 + hover动画 */
.brand-intro {
    padding: 80px 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.brand-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.brand-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #111827;
}

.brand-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

.brand-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

/* 产品优势 */
.products {
    padding: 80px 0;
    background: #fff;
    transition: background 0.3s;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-item {
    background: #f9fafb;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.product-item p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 解决方案 */
.solutions {
    padding: 80px 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.solution-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.solution-card p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 案例 */
.cases {
    padding: 80px 0;
    background: #f3f4f6;
    transition: background 0.3s;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.case-card svg {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    display: block;
}

.case-body {
    padding: 20px;
}

.case-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.case-body p {
    color: #6b7280;
    font-size: 0.85rem;
}

/* 文章 */
.articles {
    padding: 80px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card .meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.article-card p {
    color: #6b7280;
    font-size: 0.9rem;
}

.article-card .read-more {
    color: #ff6b35;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.2s;
}

.article-card .read-more:hover {
    color: #e55a2b;
    text-decoration: none;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: #fff;
    transition: background 0.3s;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    transition: border-color 0.3s;
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #ff6b35;
}

.faq-question span {
    color: #ff6b35;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 12px 0 0;
    color: #4b5563;
    display: none;
    line-height: 1.7;
}

.faq-answer.open {
    display: block;
}

/* HowTo */
.howto {
    padding: 80px 0;
    background: #f9fafb;
    transition: background 0.3s;
}

.howto-steps {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    padding: 20px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    transition: border-color 0.3s;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #ff6b35;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.howto-step:hover::before {
    transform: scale(1.1);
}

.howto-step h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.howto-step p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 联系 */
.contact {
    padding: 80px 0;
    background: #111827;
    color: #fff;
    transition: background 0.3s;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.contact-grid h3 {
    color: #ff6b35;
    margin-bottom: 12px;
}

.contact-grid p {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* 底部 */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 20px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.footer-grid h4 {
    color: #f1f5f9;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-grid a {
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.footer-grid a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #ff6b35;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.back-top:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* 暗黑模式 */
.dark-mode-toggle {
    position: fixed;
    bottom: 100px;
    right: 40px;
    background: #1f2937;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark .navbar {
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
}

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

body.dark .hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

body.dark .hero-text h1 {
    color: #f1f5f9;
}

body.dark .hero-text p {
    color: #94a3b8;
}

body.dark .brand-card {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark .product-item {
    background: #1e293b;
    border-color: #334155;
}

body.dark .solution-card {
    background: #1e293b;
}

body.dark .case-card {
    background: #1e293b;
}

body.dark .article-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark .faq {
    background: #0f172a;
}

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

body.dark .howto {
    background: #0f172a;
}

body.dark .contact {
    background: #0f172a;
}

body.dark .footer {
    background: #020617;
}

body.dark .breadcrumb {
    color: #94a3b8;
}

body.dark .btn-outline {
    border-color: #ff6b35;
    color: #ff6b35;
}

body.dark .btn-outline:hover {
    background: #ff6b35;
    color: #0f172a;
}

body.dark .mobile-menu {
    background: rgba(30, 41, 59, 0.95);
}

body.dark .mobile-menu a {
    color: #cbd5e1;
    border-color: #334155;
}

body.dark .section-title h2 {
    color: #f1f5f9;
}

body.dark .section-title p {
    color: #94a3b8;
}

body.dark .brand-card h3,
body.dark .product-item h3,
body.dark .solution-card h3,
body.dark .case-body h3,
body.dark .article-card h3 {
    color: #f1f5f9;
}

body.dark .brand-card p,
body.dark .product-item p,
body.dark .solution-card p,
body.dark .case-body p,
body.dark .article-card p,
body.dark .faq-answer,
body.dark .howto-step p {
    color: #94a3b8;
}

body.dark .faq-question {
    color: #e2e8f0;
}

body.dark .faq-question:hover {
    color: #ff6b35;
}

body.dark .howto-step {
    border-color: #334155;
}

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

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 站内搜索 */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 40px;
    font-size: 0.9rem;
    outline: none;
    width: 200px;
    transition: border 0.3s, background 0.3s;
}

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

.search-box button {
    background: #ff6b35;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-content {
        flex-direction: column;
    }
    .search-box input {
        width: 140px;
    }
    .back-top {
        right: 20px;
        bottom: 20px;
    }
    .dark-mode-toggle {
        right: 20px;
        bottom: 80px;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
    .hero {
        padding: 40px 0 60px;
        border-radius: 0 0 32px 32px;
    }
    .brand-intro,
    .products,
    .solutions,
    .cases,
    .articles,
    .faq,
    .howto,
    .contact {
        padding: 60px 0;
    }
    .brand-grid,
    .product-list,
    .solution-grid,
    .case-grid,
    .article-grid {
        gap: 16px;
    }
    .brand-card,
    .product-item,
    .solution-card,
    .case-card,
    .article-card {
        padding: 20px;
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .section-title h2 {
        font-size: 1.4rem;
    }
    .container {
        padding: 0 16px;
    }
}