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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    color: #222;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.4s ease, color 0.4s ease;
}

body.dark {
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
    color: #e0e0e0;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* 头部导航 - 毛玻璃效果 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transition: background 0.4s ease;
}

body.dark .header {
    background: rgba(18, 18, 18, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

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

.logo span {
    color: #f0c040;
}

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

.nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s ease;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

/* 移动端导航 - 毛玻璃效果 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 24px 20px;
    z-index: 200;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav a:hover {
    color: #f0c040;
    padding-left: 8px;
}

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

/* Hero 区域 - 渐变Banner */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
    color: #fff;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

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

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero h1 span {
    color: #f0c040;
    text-shadow: 0 0 30px rgba(240,192,64,0.3);
}

.hero p {
    font-size: 20px;
    max-width: 720px;
    margin: 0 auto 36px;
    opacity: 0.92;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #f0c040, #e8a020);
    color: #1a1a2e;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(240,192,64,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 36px rgba(240,192,64,0.5);
}

.hero .btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 通用section */
section {
    padding: 72px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFadeIn 0.8s ease forwards;
}

@keyframes sectionFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 44px;
    text-align: center;
    position: relative;
    color: #1a1a2e;
    transition: color 0.4s ease;
}

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

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #f0c040, #e8a020);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* 卡片 - 圆角 + 毛玻璃 + hover动画 */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240,192,64,0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: rgba(240,192,64,0.2);
}

.card:hover::before {
    opacity: 1;
}

body.dark .card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

body.dark .card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    border-color: rgba(240,192,64,0.15);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

body.dark .card h3 {
    color: #f0f0f0;
}

.card p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.dark .card p {
    color: #b0b0b0;
}

/* 关于区域 - 双栏布局 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    font-size: 30px;
    margin-bottom: 18px;
    color: #1a1a2e;
    transition: color 0.4s ease;
}

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

.about-text p {
    margin-bottom: 14px;
    color: #444;
    line-height: 1.7;
    transition: color 0.3s ease;
}

body.dark .about-text p {
    color: #c0c0c0;
}

.about-image {
    background: linear-gradient(135deg, #f0c040, #e8a020, #d4901a);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    color: #1a1a2e;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(240,192,64,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
    animation: shimmer 6s ease-in-out infinite;
}

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

.about-image:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 12px 40px rgba(240,192,64,0.3);
}

/* 品牌故事 */
.story {
    background: linear-gradient(135deg, #f0f4f8, #e8eef5);
    transition: background 0.4s ease;
}

body.dark .story {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 18px;
    margin-bottom: 18px;
    color: #444;
    line-height: 1.8;
    transition: color 0.3s ease;
}

body.dark .story-content p {
    color: #c0c0c0;
}

/* 产品卡片中的图标 */
.products .card .icon {
    font-size: 48px;
    margin-bottom: 14px;
    display: block;
    transition: transform 0.3s ease;
}

.products .card:hover .icon {
    transform: scale(1.15) rotate(-5deg);
}

.products .card .btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.products .card .btn:hover {
    background: linear-gradient(135deg, #f0c040, #e8a020);
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240,192,64,0.3);
}

body.dark .products .card .btn {
    background: linear-gradient(135deg, #f0c040, #e8a020);
    color: #1a1a2e;
}

body.dark .products .card .btn:hover {
    background: linear-gradient(135deg, #ffd54f, #f0c040);
}

/* 服务卡片图标 */
.services .card .icon {
    font-size: 42px;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.services .card:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

/* 行业标签 */
.industries ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.industries li {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.industries li:hover {
    background: #f0c040;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240,192,64,0.3);
}

body.dark .industries li {
    background: rgba(42, 42, 62, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ddd;
    border-color: rgba(255,255,255,0.06);
}

body.dark .industries li:hover {
    background: #f0c040;
    color: #1a1a2e;
}

/* 优势 - 数字动画 */
.advantages .card {
    text-align: center;
}

.advantages .card .num {
    font-size: 40px;
    font-weight: 800;
    color: #f0c040;
    display: block;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.advantages .card:hover .num {
    transform: scale(1.1);
}

/* 用户反馈 */
.testimonials .card {
    text-align: center;
    font-style: italic;
}

.testimonials .card .author {
    font-style: normal;
    font-weight: 600;
    margin-top: 14px;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

body.dark .testimonials .card .author {
    color: #f0c040;
}

/* 案例展示 - 左边框 */
.case-studies .card {
    border-left: 4px solid #f0c040;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.case-studies .card:hover {
    border-left-color: #e8a020;
}

/* 文章卡片 - 上边框 */
.insights .card {
    border-top: 4px solid #f0c040;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.insights .card:hover {
    border-top-color: #e8a020;
}

.insights .card .date {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.insights .card .read-more {
    color: #f0c040;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.insights .card .read-more:hover {
    color: #e8a020;
    padding-left: 4px;
}

/* FAQ 手风琴 */
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
    transition: border-color 0.3s ease;
}

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

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

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

.faq-question .arrow {
    transition: transform 0.4s ease;
    font-size: 14px;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding-top: 14px;
    display: none;
    color: #555;
    line-height: 1.7;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

body.dark .faq-answer {
    color: #bbb;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 安装指南 - 步骤 */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

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

.howto-step .step-num {
    background: linear-gradient(135deg, #f0c040, #e8a020);
    color: #1a1a2e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(240,192,64,0.3);
    transition: transform 0.3s ease;
}

.howto-step:hover .step-num {
    transform: scale(1.1) rotate(-5deg);
}

.howto-step .step-text {
    flex: 1;
}

.howto-step .step-text h4 {
    margin-bottom: 6px;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

body.dark .howto-step .step-text h4 {
    color: #f0f0f0;
}

/* 联系区域 - 深色渐变 */
.contact {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 72px 0;
}

.contact .section-title {
    color: #fff;
}

.contact .section-title:after {
    background: linear-gradient(90deg, #f0c040, #e8a020);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.8;
}

.contact-info a {
    color: #f0c040;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.contact-info a:hover {
    color: #ffd54f;
    padding-left: 4px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #0d0d1a, #1a1a2e);
    color: rgba(255,255,255,0.7);
    padding: 36px 0;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-right: 16px;
    transition: color 0.2s ease;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 返回顶部按钮 - 毛玻璃效果 */
.back-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 26px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 99;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(240, 192, 64, 0.9);
    color: #1a1a2e;
    box-shadow: 0 10px 32px rgba(240,192,64,0.3);
}

body.dark .back-to-top {
    background: rgba(240, 192, 64, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #1a1a2e;
    border-color: rgba(240,192,64,0.2);
}

body.dark .back-to-top:hover {
    background: #f0c040;
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
}

/* 搜索框 - 毛玻璃效果 */
.search-box {
    display: flex;
    max-width: 420px;
    margin: 0 auto 36px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #f0c040;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 20px rgba(240,192,64,0.1);
}

body.dark .search-box input {
    background: rgba(42, 42, 62, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

body.dark .search-box input:focus {
    border-color: #f0c040;
    background: rgba(42, 42, 62, 0.9);
}

.search-box button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, #f0c040, #e8a020);
    color: #1a1a2e;
}

body.dark .search-box button {
    background: linear-gradient(135deg, #f0c040, #e8a020);
    color: #1a1a2e;
}

body.dark .search-box button:hover {
    background: linear-gradient(135deg, #ffd54f, #f0c040);
}

.search-results {
    max-width: 600px;
    margin: 0 auto;
    display: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

body.dark .search-results {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.search-results .result-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
}

body.dark .search-results .result-item {
    border-color: rgba(255,255,255,0.06);
}

.search-results .result-item:hover {
    background: rgba(240,192,64,0.1);
    padding-left: 24px;
}

body.dark .search-results .result-item:hover {
    background: rgba(240,192,64,0.08);
}

.search-results .result-item:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 72px 0 50px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
        padding: 0 10px;
    }

    .hero .btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .card {
        padding: 22px 18px;
    }

    .about-image {
        min-height: 180px;
        font-size: 22px;
        padding: 32px 24px;
    }

    .industries li {
        font-size: 14px;
        padding: 8px 18px;
    }

    .howto-step {
        gap: 14px;
    }

    .howto-step .step-num {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .search-box {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .card h3 {
        font-size: 18px;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .faq-question {
        font-size: 16px;
    }
}