/* CSS 变量定义与暗黑模式切换 */
:root {
    --bg-base: #F6F8FB;
    --text-main: #1B2A3D;
    --text-muted: rgba(27, 42, 61, 0.7);
    --primary: #E87A3F;
    --primary-hover: #D66A32;
    --bg-card: #ffffff;
    --bg-card-hover: #F6F8FB;
    --border-color: rgba(27, 42, 61, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-primary: rgba(232, 122, 63, 0.3);
    --btn-bg: #ffffff;
    --blob-blend: multiply;
    --blob-bg: rgba(232, 122, 63, 0.1);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.7);
    --icon-bg: rgba(27, 42, 61, 0.05);
}

html.dark {
    --bg-base: #0A0F1A;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --bg-card: #1A2436;
    --bg-card-hover: #121A28;
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-primary: rgba(232, 122, 63, 0.1);
    --btn-bg: #1A2436;
    --blob-blend: lighten;
    --blob-bg: rgba(232, 122, 63, 0.05);
    --nav-bg-scrolled: rgba(10, 15, 26, 0.7);
    --icon-bg: rgba(255, 255, 255, 0.05);
}

/* 基础重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: system-ui, -apple-system, sans-serif; }
body { background-color: var(--bg-base); color: var(--text-main); transition: background-color 0.5s, color 0.5s; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
button { border: none; background: none; cursor: pointer; color: inherit; font-family: inherit; }
img { max-width: 100%; display: block; }

/* 隐藏滚动条 */
::-webkit-scrollbar { display: none; }

/* 通用工具类与布局容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none; }

/* 背景光效 */
.bg-glow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-blob { position: absolute; border-radius: 50%; background: var(--blob-bg); mix-blend-mode: var(--blob-blend); filter: blur(100px); }
.bg-blob.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; filter: blur(120px); }
.bg-blob.blob-2 { top: 20%; right: -10%; width: 40vw; height: 40vw; }

/* 导航栏 */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all 0.3s; height: 80px; }
.navbar.scrolled { background-color: var(--nav-bg-scrolled); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
/*.logo-box { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px var(--shadow-primary); transition: transform 0.3s; }*/
.logo-box .logo{height: 50px;}
.logo-wrapper:hover .logo-box { transform: scale(1.05); }
.nav-links { display: none; align-items: center; gap: 2.5rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-btn { padding: 12px; border-radius: 50%; transition: background-color 0.3s; }
.nav-btn:hover { background-color: rgba(128, 128, 128, 0.1); }

/* 移动端菜单 */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 40; background: var(--nav-bg-scrolled); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 100px 24px; }
.mobile-menu.show { display: block; }
.mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--border-color); font-size: 1.25rem; font-weight: 800; }

/* 动画 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-custom { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fade-in { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* 组件与区域样式 */
.section-wrapper { padding: 5rem 0; position: relative; z-index: 10; }

/* Hero 区域 */
.hero { padding-top: 8rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); border: 1px solid var(--border-color); margin-bottom: 2rem; font-size: 0.875rem; font-weight: 500; }
html.dark .hero-badge { background: rgba(26, 36, 54, 0.6); }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero h1 span { color: var(--primary); }
.hero p {font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }

/* 按钮 */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; border-radius: 20px; font-weight: 700; font-size: 1.125rem; transition: all 0.3s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 15px -3px var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-4px); }
.btn-secondary { background: var(--btn-bg); color: var(--text-main); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* 模块统一样式 */
.card-container { background: var(--bg-card); border-radius: 56px; padding: 2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.section-tag { font-size: 0.875rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; display: block;}
.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.2; }

/* 新闻动态网格 */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.news-card { background: var(--bg-card); border-radius: 40px; padding: 1rem; cursor: pointer; transition: all 0.5s; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px var(--shadow-primary); }
.news-img-box { height: 192px; border-radius: 32px; overflow: hidden; margin-bottom: 1.5rem; position: relative; }
.news-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.news-card:hover .news-img-box img { transform: scale(1.05); }

/* 线上商城交互列表 */
.store-layout { display: flex; flex-direction: column; gap: 4rem; align-items: center; }
.store-qr-box { width: 256px; padding: 1.5rem; border-radius: 40px; background: var(--bg-base); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); margin: 0 auto; }
.store-qr-inner { aspect-ratio: 1; background: var(--bg-card); border-radius: 24px; padding: 12px; margin-bottom: 1rem; box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05); }
.store-qr-inner img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.store-qr-inner img.pulse { animation: pulse-custom 0.3s ease-in-out; }

.store-list { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 0.75rem; }
.store-item { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2rem; border-radius: 32px; cursor: pointer; transition: all 0.5s; background: transparent; color: var(--text-main); }
.store-item:hover { background: var(--bg-card-hover); transform: translateX(8px); }
.store-item-sub { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 8px; transition: color 0.3s; }
.store-iconbox { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--icon-bg); color: var(--primary); transition: all 0.3s; margin-left: 1rem;}
.store-icon { transition: transform 0.5s; }

/* 选中状态的 Store Item */
.store-item.active { background: var(--primary); color: #fff; transform: translateX(16px); box-shadow: 0 20px 25px -5px var(--shadow-primary); }
.store-item.active .store-item-sub { color: rgba(255, 255, 255, 0.8); }
.store-item.active .store-iconbox { background: rgba(255, 255, 255, 0.2); color: #fff; }
.store-item.active .store-icon { transform: rotate(-45deg); }

/* Portal 区域 */
.portal-box { border-radius: 56px; overflow: hidden; position: relative; padding: 3rem 2rem; text-align: center; color: #fff; }
.portal-bg { position: absolute; inset: 0; z-index: 0; }
.portal-bg img { width: 100%; height: 100%; object-fit: cover; }
.portal-bg::after { content: ''; position: absolute; inset: 0; background: rgba(27, 42, 61, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.dark .portal-bg::after { background: rgba(10, 15, 26, 0.85); }
.portal-content { position: relative; z-index: 10; border: 1px solid rgba(255,255,255,0.1); border-radius: 56px; background: rgba(255,255,255,0.05); backdrop-filter: blur(24px); padding: 3rem 2rem; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-lg); }

.about-txt{color: var(--text-muted); font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.5rem;}

/* 页脚 */
footer { border-top: 1px solid var(--border-color); padding: 3rem 0; margin-top: 5rem; text-align: center; background: rgba(255,255,255,0.3); backdrop-filter: blur(16px); position: relative; z-index: 10;}
html.dark footer { background: rgba(0,0,0,0.3); }

/* ==================================================
   新闻列表页专属样式 
   ================================================== */
.page-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 8rem;
    padding-bottom: 4rem;
    max-width: 1024px;
    margin: 0 auto;
}

/* 顶部区域 */
.page-header {
    margin-bottom: 3rem;
    text-align: center;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* 列表容器 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 单个新闻项 */
.news-item {
    display: flex;
    flex-direction: column; /* 手机端默认上下结构 */
    background: var(--bg-card);
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    gap: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
}
.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 122, 63, 0.2);
}

/* 左侧图片区域 */
.news-img-box {
    width: 100%;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.news-item:hover .news-img-box img {
    transform: scale(1.05);
}

/* 右侧内容区域 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.news-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    background: var(--bg-base);
    border-radius: 999px;
    color: var(--text-main);
}
.news-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.news-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 1rem;
    transition: color 0.3s;
}
.news-item:hover .news-title {
    color: var(--primary);
}
.news-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* 多行文本截断 (限3行) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-readmore {
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4rem;
}
.page-btn,.page-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid var(--border-color);
}
.page-btn:hover,.page-num:hover {
    background: var(--bg-base);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.page-btn.active,.page-num.page-num-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px var(--shadow-primary);
}
.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================================================
   新闻详情页专属样式 
   ================================================== */
.article-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 8rem; /* 避开固定导航栏 */
    padding-bottom: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

/* 顶部面包屑 */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a:hover { color: var(--primary); }

/* 文章容器卡片 */
.article-card {
    background: var(--bg-card);
    border-radius: 40px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* 标题区域 */
.article-header { margin-bottom: 3rem; }
.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* 文章元数据 (标签、日期等) */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.article-tag {
    padding: 6px 16px;
    background: var(--bg-base);
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-main);
}

/* 文章封面 */
.article-cover {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

/* 文章正文排版 */
.article-content {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 2rem 0 1rem;
}
.article-content img {
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}
.article-content blockquote {
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    background: var(--bg-base);
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-main);
    font-weight: 500;
}

/* 返回上一页按钮 */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}
.btn-back:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--primary);
}

/* 响应式媒体查询 */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    .hero { padding-top: 12rem; }
    .hero h1 { font-size: 4.5rem; }
    .hero-btns { flex-direction: row; }
    .card-container { padding: 4rem; }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .portal-box { padding: 5rem; }
    .store-item.active { transform: translateX(24px); }

    .page-title { font-size: 3rem; }
    /* 桌面端变为左图右文结构 */
    .news-item {
        flex-direction: row;
        align-items: stretch;
        padding: 1.5rem;
    }
    .news-img-box {
        width: 320px;
        height: 220px;
    }
    .news-content {
        padding-left: 1rem;
    }
    .article-card { padding: 4rem; border-radius: 56px; }
    .article-title { font-size: 2.75rem; }
    .article-content { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
    .grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
    .store-layout { flex-direction: row; }
    .store-qr-box { margin: 0; }
}