/**
 * 公共框架样式表 (common.css)
 * 包含：变量、重置、布局、网格、头部、底部、通用组件
 * 该文件跨模板复用，不同模板可共用同一份 common.css
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
    --color-primary: #2563EB;
    --color-primary-light: #5B8DF3;
    --color-primary-dark: #1D4ED8;
    --color-accent: #8B5CF6;
    --color-bg: #F8FAFF;
    --color-bg-white: #FFFFFF;
    --color-text: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    --color-border: #E5E7EB;
    --color-footer-bg: #0F172A;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,.1);
    --header-main-height: 70px;
    --header-topbar-height: 34px;
    --header-with-topbar-height: calc(var(--header-main-height) + var(--header-topbar-height));
}

/* ============================================================
   2. Global Reset & Base
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px; line-height: 1.7; color: var(--color-text);
    background: var(--color-bg-white); -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   3. Layout Utilities
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Responsive Grid */
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   4. Header
   ============================================================ */
.top-bar { background: #1a1a2e; color: rgba(255,255,255,.8); font-size: 13px; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 6px 24px; }
.top-bar-welcome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-bar-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.top-bar-phone { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.82); white-space: nowrap; font-weight: 500; }
.top-bar-phone:hover { color: #fff; }
.top-bar .lang-switch-btn { border-color: rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.8); }
.top-bar .lang-switch-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.top-bar .lang-arrow { color: rgba(255,255,255,.6); }
.top-bar .lang-dropdown { top: calc(100% + 6px); }
@media (max-width: 768px) { .top-bar-inner { padding: 5px 16px; font-size: 12px; } .top-bar-phone { display: none; } }

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: var(--header-main-height); max-width: 1200px; margin: 0 auto; padding: 0 24px; gap: 24px; }
.header-logo .logo-text { font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.header-logo .logo-img { max-height: 36px; max-width: 180px; width: auto; height: auto; object-fit: contain; display: block; }

/* Desktop Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-wrap { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--color-text); white-space: nowrap; transition: all .2s; }
.nav-link:hover { color: var(--color-primary); background: rgba(37,99,235,.06); }
.nav-link.active { color: var(--color-primary); font-weight: 600; }
.nav-caret, .nav-sub-caret { font-size: 11px; line-height: 1; opacity: .65; transition: transform .2s; }
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown,
.nav-submenu {
    display: none;
    position: absolute;
    min-width: 188px;
    padding: 8px 0;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.14);
    z-index: 120;
}
.nav-dropdown { top: 100%; left: 0; }
.nav-submenu { top: 0; left: 100%; margin-left: 4px; }
.nav-submenu::before { content: ''; position: absolute; top: 0; bottom: 0; left: -8px; width: 8px; }
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-subitem:hover > .nav-submenu,
.nav-subitem:focus-within > .nav-submenu,
.nav-more-item:hover > .nav-submenu,
.nav-more-item:focus-within > .nav-submenu { display: block; }
.nav-subitem,
.nav-more-item { position: relative; }
.nav-sub-link,
.nav-submenu-link,
.nav-more-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    padding: 9px 16px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-text);
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.nav-sub-link:hover,
.nav-sub-link.active,
.nav-submenu-link:hover,
.nav-submenu-link.active,
.nav-more-link:hover,
.nav-more-link.active { background: rgba(37,99,235,.06); color: var(--color-primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-search { width: 190px; height: 38px; display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.header-search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.header-search input { width: 100%; min-width: 0; height: 100%; padding: 0 8px 0 12px; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--color-text); }
.header-search button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-muted); flex-shrink: 0; transition: color .2s, background .2s; }
.header-search button:hover { color: var(--color-primary); background: rgba(37,99,235,.06); }
.header-phone { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--color-primary); }
.header-consult { display: inline-flex; align-items: center; padding: 9px 22px; border-radius: 50px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(37,99,235,.35); transition: all .3s; }
.header-consult:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }

/* Language Switch */
.lang-switch { position: relative; }
.lang-switch::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; }
.lang-switch-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,.08); background: #fff; font-size: 13px; color: var(--color-text); cursor: pointer; transition: all .2s; white-space: nowrap; }
.lang-switch-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.lang-arrow { font-size: 10px; opacity: .6; transition: transform .2s; }
.lang-switch:hover .lang-arrow { transform: rotate(180deg); }
.lang-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--radius-md); min-width: 120px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100; overflow: hidden; padding: 4px 0; }
.lang-switch:hover .lang-dropdown { display: block; }
.lang-dropdown a { display: block; padding: 8px 16px; font-size: 13px; color: var(--color-text); text-decoration: none; transition: all .15s; }
.lang-dropdown a:hover { background: rgba(37,99,235,.06); color: var(--color-primary); }
.lang-dropdown a.active { color: var(--color-primary); font-weight: 600; background: rgba(37,99,235,.06); }

/* Nav More Dropdown */
.nav-more { position: relative; }
.nav-more::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--color-text); cursor: pointer; transition: all .2s; white-space: nowrap; }
.nav-more-btn:hover { color: var(--color-primary); background: rgba(37,99,235,.06); }
.more-arrow { font-size: 11px; transition: transform .2s; }
.nav-more:hover .more-arrow,
.nav-more:focus-within .more-arrow { transform: rotate(180deg); }
.nav-more-dropdown { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: var(--radius-sm); min-width: 188px; box-shadow: 0 12px 32px rgba(15,23,42,.14); z-index: 120; padding: 8px 0; }
.nav-more:hover .nav-more-dropdown,
.nav-more:focus-within .nav-more-dropdown { display: block; }
.nav-more-submenu { left: auto; right: 100%; margin-left: 0; margin-right: 4px; }
.nav-more-submenu::before { left: auto; right: -8px; }

/* Mobile Toggle */
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; width: 36px; height: 36px; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all .3s; }

/* Mobile Nav */
.mobile-nav { display: none; }
.mobile-nav-link,
.mobile-nav > .mobile-phone { display: block; padding: 13px 24px; font-size: 15px; color: var(--color-text); border-bottom: 1px solid #f1f5f9; }
.mobile-nav a:hover, .mobile-nav a.active { background: #f0f4ff; color: var(--color-primary); }
.mobile-nav-children { padding: 4px 0 6px; background: #fbfdff; border-bottom: 1px solid #f1f5f9; }
.mobile-nav-child,
.mobile-nav-grandchild { display: block; padding: 9px 24px 9px 40px; font-size: 14px; color: var(--color-text-secondary); }
.mobile-nav-grandchildren { padding: 2px 0 4px; }
.mobile-nav-grandchild { padding-left: 56px; font-size: 13px; color: var(--color-text-muted); }
.mobile-nav .mobile-phone { color: var(--color-primary) !important; font-weight: 600 !important; }
.mobile-search { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-bottom: 1px solid #f1f5f9; background: #fff; }
.mobile-search input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 12px; font-size: 14px; outline: 0; }
.mobile-search button { height: 38px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--color-primary); color: #fff; font-size: 14px; font-weight: 600; }
.mobile-lang-switch { display: flex; gap: 0; border-bottom: 1px solid #f1f5f9; }
.mobile-lang-switch .mobile-lang-item { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; font-weight: 500; color: var(--color-text-muted); border-bottom: 2px solid transparent; transition: all .15s; text-decoration: none; }
.mobile-lang-switch .mobile-lang-item:hover,
.mobile-lang-switch .mobile-lang-item.active { color: var(--color-primary); border-bottom-color: var(--color-primary); background: rgba(37,99,235,.04); }

@media (max-width: 900px) {
    .main-nav, .header-actions { display: none; }
    .nav-more { display: none; }
    .menu-toggle { display: flex; }
    .mobile-nav.open { display: block; }
}

/* ============================================================
   5. Footer
   ============================================================ */
.site-footer { background: var(--color-footer-bg); color: rgba(255,255,255,.65); margin-top: 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-top: 60px; padding-bottom: 40px; }
.footer-brand .footer-logo .logo-text { font-size: 20px; font-weight: 800; color: #fff; }
.footer-brand .footer-logo .footer-logo-img { height: 40px; width: auto; display: block; }
.footer-desc { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.58); margin: 16px 0 18px; max-width: 340px; }
.footer-wechat { width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.footer-wechat-img { width: 92px; height: 92px; padding: 6px; border-radius: 12px; background: #fff; flex: 0 0 auto; }
.footer-wechat-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.footer-wechat-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.footer-wechat-text strong { color: #fff; font-size: 14px; line-height: 1.35; font-weight: 800; }
.footer-wechat-text span { color: rgba(255,255,255,.54); font-size: 12px; line-height: 1.5; max-width: 150px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social-link { min-height: 34px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 700; transition: all .25s; text-decoration: none; }
.social-link svg { flex: 0 0 auto; }
.social-link:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--color-primary-light); }
.contact-label { display: block; font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 3px; }
.contact-value { font-size: 14px; color: rgba(255,255,255,.8); }
a.contact-value:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .footer-container { display: block; padding-top: 20px; padding-bottom: 20px; }
.copyright { font-size: 13px; color: rgba(255,255,255,.35); text-align: center; }
.copyright .icp-link { color: rgba(255,255,255,.35); text-decoration: none; margin-left: 8px; }
.copyright .icp-link:hover { color: rgba(255,255,255,.6); }
@media (max-width: 768px) { .footer-container { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* ============================================================
   6. Back to Top
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }

/* ============================================================
   7. Page Container & Content
   ============================================================ */
.main-content { min-height: 100vh; }
.page-container { min-height: 100vh; background: var(--color-bg, #F8FAFF); }
.page-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 32px 24px 60px; }

/* ============================================================
   8. Page Banner (通用)
   ============================================================ */
.page-banner { text-align: center; padding: 64px 20px 56px; margin-top: var(--header-main-height); background: linear-gradient(135deg, #1E293B 0%, #1D4ED8 50%, #7C3AED 100%); }
.site-header.has-topbar + .main-content > .page-banner,
.site-header.has-topbar + .page-container > .page-banner,
.site-header.has-topbar + .main-content > .hero-section,
.site-header.has-topbar + .merchant-banner,
.site-header.has-topbar + .merchant-goods-banner,
.site-header.has-topbar + .booking-banner,
.site-header.has-topbar + .forum-banner,
.site-header.has-topbar + .event-banner,
.site-header.has-topbar + .video-banner,
.site-header.has-topbar + .timecard-banner,
.site-header.has-topbar + .time-card-banner,
.site-header.has-topbar + .supply-banner,
.site-header.has-topbar + .store-banner,
.site-header.has-topbar + .seckill-banner,
.site-header.has-topbar + .score-banner,
.site-header.has-topbar + .product-banner,
.site-header.has-topbar + .knowledge-banner,
.site-header.has-topbar + .ebook-banner,
.site-header.has-topbar + .download-banner,
.site-header.has-topbar + .gift-banner,
.site-header.has-topbar + .gift-card-banner,
.site-header.has-topbar + .coupon-banner {
    margin-top: var(--header-with-topbar-height);
}
.site-header.has-topbar + .main-content.richtext-page {
    padding-top: 0;
}
.page-banner h1 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.page-banner p { font-size: 14px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 3px; }
.page-banner-sm { padding: 48px 20px 40px; }

/* ============================================================
   9. Breadcrumb
   ============================================================ */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 14px 24px; font-size: 14px; color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .current { color: var(--color-text); font-weight: 500; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   10. Section Common
   ============================================================ */
.section-white { background: #fff; }
.section-gray { background: var(--color-bg); }
.section { padding: 100px 0; }
.about-section, .products-section, .news-section { padding: 100px 0; }
@media (max-width: 600px) { .section, .about-section, .products-section, .news-section { padding: 70px 0; } }

/* ============================================================
   11. Card (通用)
   ============================================================ */
.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-link { display: block; color: inherit; }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img { transform: scale(1.06); }
.card-body { padding: 18px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--color-text); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--color-primary); }
.card-desc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--color-text-muted); }
.card a { color: inherit; }

/* ============================================================
   12. Cate Filter / Tags
   ============================================================ */
.cate-filter { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--color-border); margin-bottom: 0; }
.tag { display: inline-block; padding: 7px 20px; border-radius: 20px; font-size: 14px; font-weight: 500; background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text-secondary); cursor: pointer; transition: all .2s; white-space: nowrap; }
.tag:hover { border-color: var(--color-primary); color: var(--color-primary); background: #EEF4FF; }
.tag-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; border-color: transparent; }

/* ============================================================
   13. Pagination
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--color-text); transition: all .2s; }
.pagination a:hover { background: var(--color-bg); border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; border-color: transparent; font-weight: 600; }

/* ============================================================
   14. Detail Content (shared)
   ============================================================ */
.detail-header { margin-bottom: 24px; }
.detail-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--color-text); line-height: 1.3; letter-spacing: -.5px; margin-bottom: 16px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--color-text-muted); }
.detail-cover { margin-bottom: 28px; border-radius: var(--radius-lg); overflow: hidden; }
.detail-cover img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.detail-content { line-height: 1.85; font-size: 16px; color: var(--color-text); }
.detail-content p { margin-bottom: 16px; }
.detail-content h2 { font-size: 22px; font-weight: 700; color: var(--color-text); margin: 28px 0 12px; }
.detail-content h3 { font-size: 18px; font-weight: 600; color: var(--color-text); margin: 22px 0 10px; }
.detail-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 20px 0; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.detail-content ul, .detail-content ol { padding-left: 24px; margin-bottom: 16px; }
.detail-content li { margin-bottom: 6px; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.detail-content th, .detail-content td { padding: 10px 14px; border: 1px solid var(--color-border); text-align: left; }
.detail-content th { background: var(--color-bg); font-weight: 600; }

/* ============================================================
   15. Buttons
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .3s; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: #f1f5f9; color: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-xl { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ============================================================
   16. Price (通用)
   ============================================================ */
.price { font-size: 18px; font-weight: 700; color: #E53E3E; }
.price-original { font-size: 14px; color: var(--color-text-muted); text-decoration: line-through; margin-left: 6px; }
.price-muted { font-size: 14px; color: var(--color-text-muted); }

/* ============================================================
   17. File Download Item
   ============================================================ */
.file-list { margin-top: 24px; }
.file-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: 12px; transition: border-color .2s; }
.file-item:hover { border-color: var(--color-primary); }
.file-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-icon { font-size: 28px; flex-shrink: 0; }
.file-name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-download { padding: 8px 20px; background: var(--color-primary); color: #fff; border-radius: var(--radius-sm); font-size: 14px; white-space: nowrap; }

/* ============================================================
   18. Status / Error Pages
   ============================================================ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52vh;
    text-align: center;
}
.error-page h1 {
    font-size: clamp(64px, 12vw, 128px);
    line-height: 1;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.error-page p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* ============================================================
   19. Sitebuilder QR Interaction
   ============================================================ */
.sb-qr-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.sb-qr-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(37,99,235,.24);
    transition: transform .2s, box-shadow .2s, opacity .2s;
    text-decoration: none;
}

.sb-qr-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37,99,235,.3);
}

.article-share .sb-qr-cta {
    margin-left: auto;
}

.sb-qr-floating {
    position: fixed;
    top: 360px;
    left: max(24px, calc((100vw + 1200px) / 2));
    z-index: 1200;
}

.sb-qr-floating__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 48%, #EC4899 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 16px 38px rgba(124,58,237,.3);
    transition: transform .2s, box-shadow .2s, background .2s;
}

.sb-qr-floating__btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #6D28D9 0%, #9333EA 48%, #DB2777 100%);
    box-shadow: 0 18px 44px rgba(147,51,234,.36);
}

.sb-qr-floating__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sb-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sb-qr-modal.open {
    display: flex;
}

.sb-qr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.58);
    backdrop-filter: blur(6px);
}

.sb-qr-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    border-radius: 8px;
    background: #fff;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 70px rgba(15,23,42,.28);
    text-align: center;
}

.sb-qr-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 24px;
    line-height: 1;
}

.sb-qr-modal__close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.sb-qr-modal__title {
    margin: 0 28px 8px;
    color: var(--color-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.sb-qr-modal__tips {
    min-height: 22px;
    margin: 0 0 18px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.sb-qr-modal__body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 236px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #F8FAFC;
}

.sb-qr-modal__status {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.sb-qr-modal__image {
    width: 210px;
    height: 210px;
    object-fit: contain;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
}

.sb-qr-modal__h5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .sb-qr-modal {
        padding: 16px;
    }

    .sb-qr-modal__panel {
        padding: 26px 18px 20px;
    }

    .article-share .sb-qr-cta {
        width: 100%;
        margin-left: 0;
    }

    .sb-qr-floating {
        top: auto !important;
        right: 16px;
        bottom: 76px;
        left: auto !important;
    }

    .sb-qr-floating__btn {
        width: 44px;
        min-width: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .sb-qr-floating__btn span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
