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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f9f9fb;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #e74c3c;
}

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

ul {
    list-style: none;
}

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

/* 导航吸顶 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0c040;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
}

.navbar .nav-links {
    display: flex;
    gap: 24px;
}

.navbar .nav-links a {
    color: #ddd;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}

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

.navbar .nav-links a:hover {
    color: #f0c040;
    transform: translateY(-2px);
}

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

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

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

.search-box {
    display: flex;
    align-items: center;
    background: rgba(45, 45, 68, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
    border-color: #f0c040;
    box-shadow: 0 0 15px rgba(240, 192, 64, 0.2);
}

.search-box input {
    border: none;
    background: transparent;
    color: #eee;
    padding: 6px;
    outline: none;
    width: 140px;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: #888;
}

.search-box button {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
}

.search-box button:hover {
    color: #f0c040;
    transform: scale(1.1);
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 192, 64, 0.08) 0%, transparent 50%);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

.page-header h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
    color: #f0c040;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(240, 192, 64, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #aaa;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: #ddd;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #f0c040;
}

.breadcrumb span {
    color: #f0c040;
}

/* 内容区块通用 */
section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a1a2e;
    position: relative;
    transition: color 0.3s;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f0c040, #e74c3c);
    margin: 12px auto 0;
    border-radius: 2px;
    animation: titleLine 3s ease-in-out infinite alternate;
}

@keyframes titleLine {
    0% { width: 60px; }
    100% { width: 120px; }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.95);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.card p {
    color: #555;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0c040, #e67e22);
    color: #1a1a2e;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 品牌区 */
.brand-intro {
    background: #fff;
}

.brand-intro .grid-2 {
    align-items: center;
}

.brand-intro .brand-text h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.brand-intro .brand-text p {
    margin-bottom: 12px;
    color: #444;
}

.brand-svg {
    text-align: center;
}

.brand-svg svg {
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 20px rgba(240, 192, 64, 0.3));
}

.brand-svg svg:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* 产品优势 */
.product-advantages {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
}

/* 解决方案与行业应用 */
.solutions {
    background: #fff;
}

/* 客户案例与评价 */
.testimonials {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.testimonial-card p {
    font-style: italic;
    color: #555;
}

.testimonial-card .author {
    margin-top: 12px;
    font-weight: 600;
    color: #1a1a2e;
}

/* 新闻与文章 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.article-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.article-item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.article-item .meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.article-item p {
    color: #555;
    font-size: 0.9rem;
}

.read-more {
    color: #e74c3c;
    font-weight: 600;
    transition: color 0.2s, letter-spacing 0.2s;
}

.read-more:hover {
    color: #c0392b;
    letter-spacing: 1px;
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 16px 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: #f0c040;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s, opacity 0.4s;
    padding-top: 0;
    color: #555;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-top: 12px;
    opacity: 1;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

/* HowTo */
.howto {
    background: #fff;
}

.howto-steps {
    counter-reset: step;
}

.howto-step {
    counter-increment: step;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    transition: transform 0.2s;
}

.howto-step:hover {
    transform: translateX(8px);
}

.howto-step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #f0c040, #e67e22);
    color: #1a1a2e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(240, 192, 64, 0.3);
    transition: transform 0.3s;
}

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

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

.howto-step p {
    color: #555;
}

/* 联系我们 */
.contact-info {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #ddd;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info .grid-3 {
    color: #ccc;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    color: #f0c040;
    margin-bottom: 12px;
}

.contact-info a {
    color: #f0c040;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #fff;
}

/* 页脚 */
.footer {
    background: #0f0f1a;
    color: #aaa;
    padding: 30px 0;
    font-size: 0.85rem;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: #aaa;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f0c040;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #f0c040, #e67e22);
    color: #1a1a2e;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.7;
    z-index: 999;
    border: none;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
}

/* 暗黑模式 */
.dark-mode-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 999;
    border: none;
    transition: transform 0.3s, background 0.3s;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    background: rgba(51, 51, 51, 1);
}

body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark .card,
body.dark .article-item,
body.dark .faq-item,
body.dark .testimonial-card,
body.dark .howto {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ddd;
    border-color: rgba(255,255,255,0.05);
}

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

body.dark .page-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #0f0f2e 50%, #1a1a3e 100%);
}

body.dark .contact-info {
    background: linear-gradient(135deg, #0a0a1a 0%, #0f0f2e 100%);
}

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

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

body.dark .brand-intro,
body.dark .solutions,
body.dark .product-advantages,
body.dark .testimonials {
    background: #1a1a1a;
}

body.dark .card p,
body.dark .article-item p,
body.dark .faq-answer,
body.dark .testimonial-card p,
body.dark .howto-step p {
    color: #bbb;
}

body.dark .card h3,
body.dark .article-item h3,
body.dark .faq-question,
body.dark .testimonial-card .author,
body.dark .howto-step h4 {
    color: #f0c040;
}

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

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

/* 响应式 */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 12px;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 16px;
        border-radius: 12px;
    }
    .navbar .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .grid-2,
    .grid-3,
    .grid-4,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .search-box input {
        width: 100px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .dark-mode-toggle {
        bottom: 70px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.6rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .card {
        padding: 16px;
    }
}