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

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #2d2d2d;
    background: linear-gradient(135deg, #fef9f4 0%, #fff5ee 100%);
    min-height: 100vh;
    transition: background 0.4s, color 0.4s;
}

/* 渐变Banner */
.banner {
    position: relative;
    overflow: hidden;
    height: 420px;
    background: linear-gradient(145deg, #ff6b35 0%, #ff8f5e 40%, #ffb088 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: bannerGlow 8s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 5%) scale(1.1); }
}

.banner-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.banner-slide.active {
    display: flex;
    animation: fadeSlide 0.8s ease-out;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-content {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.25);
    max-width: 700px;
}

.banner-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.banner-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-weight: 400;
}

.cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #ff6b35;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35);
    background: #ff6b35;
    color: #fff;
}

.banner-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.25);
    box-shadow: 0 0 16px rgba(255,255,255,0.6);
}

/* 导航栏 */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 100;
    transition: all 0.3s;
}

nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
}

.logo svg {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(255,107,53,0.2));
    transition: transform 0.3s;
}

.logo:hover svg {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: #ff6b35;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar form {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 40px;
    padding: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.search-bar form:focus-within {
    background: #fff;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}

.search-bar input {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    min-width: 200px;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    padding: 8px 20px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #e85a2a;
    transform: scale(1.03);
}

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

.menu-toggle:hover {
    background: rgba(255,107,53,0.08);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #2d2d2d;
    border-radius: 3px;
    transition: all 0.3s;
}

/* 圆角卡片通用 */
.brand-card, .solution-card, .case-item, .product-item, .article-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-card:hover, .solution-card:hover, .case-item:hover, .product-item:hover, .article-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.2);
}

.brand-card h3, .solution-card h3, .case-item h3, .product-item h3, .article-item h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-left: 16px;
}

.brand-card h3::before, .solution-card h3::before, .case-item h3::before, .product-item h3::before, .article-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 20px;
    background: #ff6b35;
    border-radius: 4px;
}

/* 网格布局 */
.brand-grid, .solution-grid, .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.product-item {
    flex: 1 1 280px;
}

/* 毛玻璃效果增强 */
.faq-list details {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.faq-list details:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(255,107,53,0.08);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    padding: 4px 0;
    transition: color 0.3s;
}

.faq-list details[open] summary {
    color: #ff6b35;
}

.faq-list details p {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #555;
    line-height: 1.8;
}

/* 区块标题 */
h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ffa07a);
    border-radius: 4px;
    margin: 12px auto 0;
}

section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 滚动动画 */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* 引用块 */
.testimonials blockquote {
    border-left: 4px solid #ff6b35;
    padding: 16px 20px;
    margin: 16px 0;
    background: rgba(255, 107, 53, 0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #444;
    line-height: 1.8;
    transition: all 0.3s;
}

.testimonials blockquote:hover {
    background: rgba(255, 107, 53, 0.08);
    transform: translateX(4px);
}

/* 文章链接 */
.article-item a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.article-item a::after {
    content: '→';
    transition: transform 0.3s;
}

.article-item a:hover {
    color: #e85a2a;
    gap: 10px;
}

.article-item a:hover::after {
    transform: translateX(4px);
}

/* 面包屑 */
#breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1200px;
}

#breadcrumb a {
    text-decoration: none;
    color: #ff6b35;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255,255,255,0.85);
    padding: 48px 24px 32px;
    margin-top: 40px;
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links h3 {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.footer-legal {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 2;
}

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

.footer-legal a:hover {
    text-decoration: underline;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: none;
    z-index: 200;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: 0 8px 24px rgba(255,107,53,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.back-to-top a:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 36px rgba(255,107,53,0.4);
    background: #e85a2a;
}

/* 移动菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    flex-direction: column;
    padding: 20px 24px;
    z-index: 99;
    border-bottom: 2px solid #ff6b35;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.mobile-menu.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    padding: 14px 0;
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: #ff6b35;
    padding-left: 8px;
}

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 100;
}

.dark-mode-toggle button {
    padding: 10px 18px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    color: #2d2d2d;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.dark-mode-toggle button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255,107,53,0.15);
}

/* ============ 暗黑模式 ============ */
body.dark-mode {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    color: #e0e0e0;
}

body.dark-mode nav {
    background: rgba(30, 30, 30, 0.88);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(255,255,255,0.04);
}

body.dark-mode nav.sticky {
    background: rgba(20, 20, 20, 0.95);
}

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

body.dark-mode .nav-links a:hover {
    color: #ff8c5a;
}

body.dark-mode .search-bar form {
    background: #2a2a2a;
    border-color: transparent;
}

body.dark-mode .search-bar form:focus-within {
    background: #333;
    border-color: #ff8c5a;
}

body.dark-mode .search-bar input {
    color: #e0e0e0;
}

body.dark-mode .search-bar input::placeholder {
    color: #777;
}

body.dark-mode .menu-toggle span {
    background: #ccc;
}

body.dark-mode .brand-card, 
body.dark-mode .solution-card, 
body.dark-mode .case-item, 
body.dark-mode .product-item, 
body.dark-mode .article-item {
    background: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.05);
}

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

body.dark-mode .brand-card p, 
body.dark-mode .solution-card p, 
body.dark-mode .case-item p, 
body.dark-mode .product-item p, 
body.dark-mode .article-item p {
    color: #bbb;
}

body.dark-mode .banner-content h1 {
    color: #fff;
}

body.dark-mode .banner-content p {
    color: rgba(255,255,255,0.8);
}

body.dark-mode .faq-list details {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(255,255,255,0.05);
}

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

body.dark-mode .faq-list details[open] summary {
    color: #ff8c5a;
}

body.dark-mode .faq-list details p {
    color: #aaa;
    border-top-color: rgba(255,255,255,0.05);
}

body.dark-mode h2 {
    color: #f0f0f0;
}

body.dark-mode .testimonials blockquote {
    border-left-color: #ff8c5a;
    background: rgba(255, 140, 90, 0.06);
    color: #ccc;
}

body.dark-mode .testimonials blockquote:hover {
    background: rgba(255, 140, 90, 0.1);
}

body.dark-mode #breadcrumb ol {
    background: rgba(40, 40, 40, 0.6);
}

body.dark-mode #breadcrumb a {
    color: #ff8c5a;
}

body.dark-mode footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #111 100%);
}

body.dark-mode .footer-links a {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .footer-links a:hover {
    color: #ff8c5a;
}

body.dark-mode .back-to-top a {
    background: #ff8c5a;
    box-shadow: 0 8px 24px rgba(255,140,90,0.3);
}

body.dark-mode .back-to-top a:hover {
    background: #e67a4a;
}

body.dark-mode .dark-mode-toggle button {
    background: rgba(40, 40, 40, 0.9);
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .mobile-menu {
    background: rgba(30, 30, 30, 0.96);
    border-bottom-color: #ff8c5a;
}

body.dark-mode .mobile-menu a {
    color: #ccc;
    border-bottom-color: rgba(255,255,255,0.04);
}

body.dark-mode .mobile-menu a:hover {
    color: #ff8c5a;
}

body.dark-mode .article-item a {
    color: #ff8c5a;
}

body.dark-mode .article-item a:hover {
    color: #e67a4a;
}

body.dark-mode .cta-btn {
    background: #fff;
    color: #ff6b35;
}

body.dark-mode .cta-btn:hover {
    background: #ff8c5a;
    color: #fff;
}

body.dark-mode .logo svg rect {
    fill: #ff8c5a;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .banner-content h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .nav-links {
        gap: 16px;
    }
    .search-bar input {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .search-bar {
        display: none;
    }
    .banner {
        height: 340px;
    }
    .banner-content {
        padding: 16px 20px;
        margin: 0 16px;
    }
    .banner-content h1 {
        font-size: 1.6rem;
    }
    .banner-content p {
        font-size: 0.95rem;
    }
    .cta-btn {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
    section {
        padding: 36px 16px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .brand-grid, .solution-grid, .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-list {
        flex-direction: column;
    }
    .brand-card, .solution-card, .case-item, .product-item, .article-item {
        padding: 20px 16px;
    }
    .dark-mode-toggle {
        top: 72px;
        right: 12px;
    }
    .dark-mode-toggle button {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    .back-to-top a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    #breadcrumb ol {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    footer {
        padding: 32px 16px 24px;
    }
    .footer-links ul {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 300px;
    }
    .banner-content h1 {
        font-size: 1.3rem;
    }
    .banner-content p {
        font-size: 0.85rem;
    }
    .cta-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .brand-card h3, .solution-card h3, .case-item h3, .product-item h3, .article-item h3 {
        font-size: 1rem;
    }
}

/* 数字动画占位（视觉增强） */
.banner-content .cta-btn {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
    50% { box-shadow: 0 8px 32px rgba(255,107,53,0.3); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #555;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #777;
}