:root {
    --xhs-red: #ff2442;
    --xhs-red-dark: #e61f3c;
    --bg-gray: #f9fafb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-gray);
    color: #333;
    margin: 0;
}

/* 容器 */
.container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.container-narrow { max-width: 896px; }
.container-wide { max-width: 1280px; }
.container-faq { max-width: 1024px; }

@media (min-width: 640px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

/* 导航 */
.glass-nav { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); }
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--gray-100); }
.nav-inner { }
.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.nav-brand:hover { color: inherit; }
.nav-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--xhs-red);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.nav-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.nav-title { font-size: 1.25rem; font-weight: bold; color: var(--gray-900); line-height: 1.25; margin: 0; }
.nav-desc { font-size: 0.75rem; color: var(--gray-500); margin: 0; }
@media (max-width: 639px) {
    .nav-desc { display: none; }
}
.nav-links {
    display: none;
    gap: 2rem;
    color: var(--gray-600);
    font-weight: 500;
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
}
.nav-link { color: inherit; text-decoration: none; }
.nav-link:hover { color: var(--xhs-red); }
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-600);
}
@media (min-width: 768px) {
    .nav-toggle { display: none; }
}

/* 区块通用 */
.section { padding: 4rem 1rem; }
.section-recharge {
    text-align: center;
    position: relative;
    background-color: var(--bg-gray);
    background-image: url("../images/75ff714.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.section-recharge-inner { position: relative; z-index: 1; }
.section-recharge-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 1rem;
}
@media (min-width: 768px) {
    .section-recharge-title { font-size: 2.25rem; }
}
.section-recharge-subtitle { color: var(--gray-500); margin: 0 0 2.5rem; font-size: 14px; }
.recharge-box {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-50);
}
@media (min-width: 768px) {
    .recharge-box { padding: 3rem; }
}
.recharge-box-inner { display: flex; flex-direction: column; align-items: center; }
.recharge-coin-wrap {
    width: 5rem;
    height: 5rem;
    background: #fef2f2;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.recharge-coin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
.recharge-desc { color: var(--gray-600); margin: 0 0 2rem; max-width: 28rem; }
.btn-primary { background-color: var(--xhs-red); transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--xhs-red-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3); }
.btn-recharge {
    color: white;
    padding: 1rem 3rem;
    border-radius:999px;
    font-size: 1.125rem;
    font-weight: bold;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-recharge-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    vertical-align: middle;
}

/* 常见问题 */
.section-faq { background: white; }
.faq-header { text-align: center; margin-bottom: 3rem; }
.faq-title { font-size: 1.875rem; font-weight: bold; margin: 0 0 0.5rem; }
.faq-subtitle { color: var(--gray-500); margin: 0; }
.faq-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
.faq-item {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 1rem;
}
.faq-item-title { font-weight: bold; color: var(--gray-800); margin: 0 0 0.5rem; }
.faq-item-text { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* 下载 App */
.section-download { background: var(--bg-gray); text-align: center; }
.download-header { margin-bottom: 2rem; }
.download-title { font-size: 1.875rem; font-weight: bold; color: var(--gray-900); margin: 0 0 0.5rem; }
.download-subtitle { color: var(--gray-500); margin: 0; font-size: 0.9375rem; }
.download-qr-wrap {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-100);
}
.download-qr-img {
    display: block;
    width: 12rem;
    height: 12rem;
    object-fit: contain;
}

/* 资讯卡片 */
.info-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem;
    border-left: 4px solid var(--xhs-red);
    padding-left: 1rem;
}
.info-intro {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.info-intro a { color: var(--xhs-red); text-decoration: none; }
.info-intro a:hover { text-decoration: underline; }
.recharge-desc a { color: var(--xhs-red); text-decoration: none; }
.recharge-desc a:hover { text-decoration: underline; }
.info-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .info-grid { grid-template-columns: repeat(3, 1fr); }
}
.card { border-radius: 16px; background: white; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }
.info-card { overflow: hidden; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1); border: 1px solid var(--gray-100); }
.info-card-img {
    height: 10rem;
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
}
.info-card-body { padding: 1.25rem; }
.info-card-title { font-weight: bold; margin: 0 0 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-card-text { font-size: 0.875rem; color: var(--gray-500); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 页脚 */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 3rem 1rem; }
.footer-inner { text-align: center; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.75rem; margin: 0 0 1rem; }
.payment-icons { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.payment-icon {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--gray-600);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--gray-400);
}
.footer-note { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-600); margin: 0; }

/* 详情页 / 文章页 */
.info-card-link { text-decoration: none; color: inherit; display: block; }
.section-article { background: white; padding-top: 2rem; padding-bottom: 4rem; }
.article-wrap { max-width: 720px; }
.article-breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}
.article-breadcrumb a { color: var(--xhs-red); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 0.35rem; color: var(--gray-400); }
.article-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 1rem;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .article-title { font-size: 2.25rem; }
}
.article-lead {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin: 0 0 2rem;
    line-height: 1.6;
}
.article-body { font-size: 1rem; line-height: 1.75; }
.article-section {
    margin-bottom: 2.5rem;
}
.article-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--xhs-red);
}
.article-section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
}
.article-section p { margin: 0 0 1rem; color: var(--gray-700); }
.article-section ul,
.article-section ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    color: var(--gray-700);
}
.article-section li { margin-bottom: 0.5rem; }
.article-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.btn-inline {
    display: inline-flex;
    width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
.article-back {
    font-size: 0.9375rem;
    color: var(--gray-500);
    text-decoration: none;
}
.article-back:hover { color: var(--xhs-red); }

/* 弹窗 */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-content { animation: fadeIn 0.3s ease-out; }
.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 24rem;
    width: 100%;
    margin: 0 1rem;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0;
}
.modal-close:hover { color: var(--gray-600); }
.modal-title { font-size: 1.25rem; font-weight: bold; margin: 0 0 1.5rem; }
.modal-qr-wrap {
    width: 12rem;
    height: 12rem;
    margin: 0 auto 1.5rem;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-qr-inner { text-align: center; }
.modal-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.modal-qr-label { font-size: 0.75rem; color: var(--gray-500); margin: 0.5rem 0 0; }
.modal-desc { font-size: 0.875rem; color: var(--gray-600); font-weight: 500; margin: 0; }

/* 原生 CSS 图标 */
.icon {
    display: inline-block;
    vertical-align: middle;
}
/* 汉堡菜单：三条横线 */
.icon-bars {
    width: 24px;
    height: 18px;
    position: relative;
}
.icon-bars::before,
.icon-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.icon-bars::before {
    top: 0;
    box-shadow: 0 8px 0 currentColor;
}
.icon-bars::after {
    bottom: 0;
}
/* 金币：双圆叠加 */
.icon-coins {
    width: 48px;
    height: 48px;
    position: relative;
    color: var(--xhs-red);
}
.icon-coins::before,
.icon-coins::after {
    content: "";
    position: absolute;
    border: 3px solid currentColor;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
}
.icon-coins::before {
    width: 28px;
    height: 28px;
    top: 4px;
    left: 2px;
}
.icon-coins::after {
    width: 28px;
    height: 28px;
    top: 16px;
    left: 18px;
    opacity: 0.7;
}
/* 关闭 X */
.icon-close {
    width: 20px;
    height: 20px;
    position: relative;
}
.icon-close::before,
.icon-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.icon-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.icon-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
/* 二维码风格网格 */
.icon-qrcode {
    width: 64px;
    height: 64px;
    display: inline-block;
    background: linear-gradient(90deg, #9ca3af 1px, transparent 1px),
                linear-gradient(#9ca3af 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: 0 0, 0 0;
    border: 2px solid #9ca3af;
    border-radius: 4px;
}
