:root {
    --primary-color: #1db954;
    --primary-dark: #14833b;
    --bg-color: #f6f8fb;
    --card-bg: #ffffff;
    --text-color: #172033;
    --muted: #5f6f89;
    --border-color: #dfe7f1;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.04);
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.main-content { min-height: 60vh; margin-top: 32px; }
.mt-20 { margin-top: 20px; }

.card-section,
.clean-card,
.hero-panel,
.surface-card,
.version-detail-card,
.archive-panel,
.search-layout,
.post-card,
.guide-card,
.stat-chip,
.helpful-box,
.toc-card,
.compare-card,
.not-found-card,
.search-card,
.compact-list-card,
.hero-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head.left-align h2,
.left-align h2,
.content-area h2,
.content-area h3,
.content-area h4 { text-align: left; }
.section-head h2,
h1, h2, h3 { color: #0f172a; font-weight: 800; margin: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
p { margin-top: 0; color: var(--muted); }

.pill,
.pill-link,
.mini-badge,
.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: #20304d;
    font-weight: 700;
    font-size: 0.92rem;
}
.pill-link:hover { border-color: #b7c7dc; }

.btn,
.btn-main,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover,
.btn-main:hover,
.btn-secondary:hover,
.btn-light:hover { transform: translateY(-1px); }
.btn-main { background: var(--primary-color); color: #fff; box-shadow: 0 10px 22px rgba(29, 185, 84, 0.2); }
.btn-main:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #101826; color: #fff; }
.btn-secondary:hover { background: #1c283b; color: #fff; }
.btn-light { background: #fff; color: #20304d; border-color: var(--border-color); }
.btn-light:hover { color: #111827; }
.btn-block { width: 100%; }

.grid-2,
.split-layout,
.article-layout,
.search-layout,
.compare-grid,
.home-grid {
    display: grid;
    gap: 24px;
}
.split-layout,
.article-layout,
.search-layout,
.compare-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.home-grid { grid-template-columns: repeat(12, 1fr); }
.home-main { grid-column: span 8; }
.home-side { grid-column: span 4; }
.grid-cards,
.post-grid,
.category-grid,
.guide-grid,
.intent-grid,
.compare-list,
.search-grid {
    display: grid;
    gap: 18px;
}
.post-grid,
.guide-grid,
.intent-grid,
.compare-list,
.search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.hero-panel,
.hero-section {
    padding: 28px;
    overflow: hidden;
}
.hero-section { display: flex; gap: 22px; align-items: center; }
.hero-panel .hero-meta,
.hero-meta,
.meta-data,
.info-pills,
.post-meta-line,
.quick-links,
.content-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-copy p { max-width: 820px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-card-stack { display: grid; gap: 14px; }
.hero-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-chip { justify-content: space-between; padding: 14px 16px; border-radius: 18px; }
.stat-chip strong { display: block; color: #0f172a; font-size: 1.1rem; }
.stat-chip span { color: var(--muted); font-size: 0.88rem; }

.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 auto 18px;
    color: #617287;
    font-weight: 700;
}
.breadcrumb-nav a { color: #304155; }
.breadcrumb-nav .current { color: #0f172a; }

.archive-panel,
.surface-card,
.version-detail-card,
.search-card,
.not-found-card,
.compact-list-card,
.helpful-box,
.toc-card,
.compare-card { padding: 24px; }

.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { margin-bottom: 0; }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef4f9; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 18px; display: grid; gap: 12px; }
.post-meta-line { font-size: .9rem; color: #6b7b92; }
.post-meta-line .pill-link { padding: 6px 12px; font-size: .82rem; }
.featured-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; }
.featured-card .post-card-body { padding: 24px; }

.archive-toolbar,
.search-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.archive-toolbar input,
.archive-toolbar select,
.search-toolbar input,
.search-toolbar select,
.search-form-inline input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: #111827;
}
.archive-toolbar .field,
.search-toolbar .field { flex: 1 1 220px; }
.search-form-inline { display: flex; gap: 10px; width: min(100%, 420px); }

.pagination-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}
.pagination-wrap .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #162235;
    font-weight: 800;
}
.pagination-wrap .page-link.active,
.pagination-wrap .page-link:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.toc-card, .helpful-box { position: sticky; top: 92px; }
.toc-title, .box-title { font-size: 1rem; font-weight: 800; margin-bottom: 12px; color: #0f172a; }
.toc-list, .mini-list, .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc-list a, .mini-list a, .plain-list a { color: #314255; }
.toc-list .toc-h3 { padding-left: 14px; font-size: .94rem; }
.helpful-box .box-actions { display: grid; gap: 10px; margin-top: 12px; }

.article-header {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}
.article-header .meta-strip,
.meta-strip,
.version-meta-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .94rem;
}
.content-area,
.post-body {
    color: #27364b;
    font-size: 1.04rem;
}
.content-area h2,
.post-body h2,
.content-area h3,
.post-body h3,
.content-area h4,
.post-body h4 {
    margin-top: 28px;
    margin-bottom: 12px;
}
.content-area img,
.post-body img {
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin: 24px 0;
}
.content-area ul,
.content-area ol,
.post-body ul,
.post-body ol { padding-left: 20px; }
.content-area blockquote,
.post-body blockquote {
    margin: 20px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--primary-color);
    background: #f8fbff;
    border-radius: 12px;
    color: #32435a;
}
.author-review-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}
.author-review-box .mini-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
}
.author-review-box span { display: block; color: var(--muted); font-size: .85rem; }
.author-review-box strong { color: #0f172a; }

.faq-container { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; background: #fff; }
.faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: #f8fafc;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; padding: 0 18px; }
.faq-item.active .faq-answer { max-height: 560px; padding: 16px 18px 18px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-question i { transition: transform .2s ease; }

.app-info-wrapper { overflow: hidden; }
.app-info-table { width: 100%; border-collapse: collapse; }
.app-info-table tr:nth-child(odd) { background: #f8fafc; }
.app-info-table td { padding: 16px 18px; border-bottom: 1px solid var(--border-color); }
.app-info-table td:first-child { width: 38%; font-weight: 800; color: #0f172a; }

.version-list-grid { display: grid; gap: 16px; }
.version-row-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
}
.version-row-card h3 { margin-bottom: 8px; }
.version-highlights,
.compare-table,
.guide-links,
.info-list,
.version-section-grid {
    display: grid;
    gap: 14px;
}
.version-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-box {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
}
.compare-table .compare-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}
.compare-row .label { font-weight: 800; color: #0f172a; }

.intent-grid .intent-card,
.guide-card,
.search-card-item,
.category-card,
.compact-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
}
.intent-card h3,
.guide-card h3,
.search-card-item h3,
.category-card h3,
.compact-card h3 { margin-bottom: 8px; }
.intent-card p,
.guide-card p,
.search-card-item p,
.category-card p,
.compact-card p { margin-bottom: 0; }

.not-found-card { text-align: center; }
.not-found-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.footer-mini-search { margin-top: 16px; }

@media (max-width: 992px) {
    .split-layout,
    .article-layout,
    .search-layout,
    .compare-grid,
    .featured-card,
    .hero-section { grid-template-columns: 1fr; display: grid; }
    .home-grid { grid-template-columns: 1fr; }
    .home-main, .home-side { grid-column: auto; }
    .post-grid,
    .guide-grid,
    .intent-grid,
    .compare-list,
    .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toc-card, .helpful-box { position: static; }
}

@media (max-width: 768px) {
    .hero-section { display: flex; flex-direction: column; text-align: left; }
    .hero-panel, .surface-card, .archive-panel, .version-detail-card, .search-card, .not-found-card { padding: 20px; }
    .post-grid,
    .guide-grid,
    .intent-grid,
    .compare-list,
    .search-grid,
    .version-section-grid { grid-template-columns: 1fr; }
    .author-review-box,
    .hero-stat-grid,
    .compare-table .compare-row { grid-template-columns: 1fr; }
    .version-row-card { grid-template-columns: 1fr; }
    .breadcrumb-nav { font-size: .9rem; }
}


.front-navbar-wrap { margin-top: 14px; }
.front-navbar { background: #101826; border-radius: 18px; border: 1px solid rgba(255,255,255,.06); padding: 14px 16px; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18); }
.front-navbar .navbar-brand { color: #fff !important; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.front-navbar .navbar-brand img { height: 42px; width: 42px; border-radius: 12px; object-fit: cover; }
.front-navbar .nav-link { color: rgba(255,255,255,.82) !important; font-weight: 700; }
.front-navbar .nav-link:hover { color: #fff !important; }
.navbar-search { width: min(100%, 280px); }
.navbar-search input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 10px 14px; }
.navbar-search input::placeholder { color: rgba(255,255,255,.65); }
.lang-switcher-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 999px; }
.lang-dropdown-menu { max-height: 320px; overflow-y: auto; border-radius: 14px; }

.front-navbar .navbar-toggler { border-color: rgba(255,255,255,.16); }
.front-navbar .navbar-toggler:focus { box-shadow: 0 0 0 .18rem rgba(29,185,84,.18); }
.front-navbar .nav-link.is-active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
}
.front-navbar .dropdown-item.active,
.front-navbar .dropdown-item:active { background: #ecfdf3; color: var(--primary-dark); }
.footer-brand-icon { border-radius: 8px; margin-right: 10px; object-fit: cover; }

.front-footer { background: #0f172a; color: #d7dfeb; padding: 56px 0 24px; margin-top: 56px; }
.front-footer h4 { color: #fff; font-weight: 800; margin-bottom: 18px; }
.front-footer p { color: #94a3b8; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #c6d2e2; }
.footer-links a:hover { color: #fff; }
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.social-icons a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social-icons a:hover { background: var(--primary-color); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 18px; color: #7f8da5; text-align: center; }
.footer-search-input { width: 100%; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; padding: 12px 14px; }
.footer-search-input::placeholder { color: rgba(255,255,255,.6); }

.featured-home-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sticky-mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1040;
    display: none;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .24);
}
.sticky-mobile-cta strong { display: block; color: #fff; }
.sticky-mobile-cta span { display: block; color: rgba(255,255,255,.74); font-size: .84rem; }
.sticky-mobile-cta .btn-main { padding: 10px 18px; }

.toc-list a.is-active { color: var(--primary-color); font-weight: 800; }

@media (max-width: 991px) {
    .front-navbar .navbar-collapse { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
    .front-navbar .nav-link { display: inline-flex; align-items: center; }
    .navbar-search { width: 100%; margin: 12px 0; }
    .featured-home-card,
    .featured-card,
    .split-layout,
    .article-layout,
    .search-layout,
    .compare-grid,
    .home-grid,
    .post-grid,
    .guide-grid,
    .intent-grid,
    .compare-list,
    .search-grid { grid-template-columns: 1fr; }
    .home-main,
    .home-side { grid-column: auto; }
    .toc-card, .helpful-box { position: static; top: auto; }
}

@media (max-width: 768px) {
    body.has-mobile-cta { padding-bottom: 92px; }
    .sticky-mobile-cta { display: flex; }
}
