:root {
    --brand: #1a5cff;
    --brand-dark: #0f43c9;
    --ink: #14181f;
    --ink-2: #3d4655;
    --muted: #737d8c;
    --line: #e6e9ef;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --radius: 14px;
    --shadow: 0 12px 32px rgba(20, 24, 31, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font: 15px/1.75 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--brand); color: #fff; font-size: 18px;
}
.logo img { height: 38px; }

.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.site-nav a { position: relative; padding: 6px 0; }
.site-nav a:hover { color: var(--brand); }
.site-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--brand); transition: width .2s;
}
.site-nav a:hover::after { width: 100%; }
.site-nav a.active { color: var(--brand); font-weight: 600; }
.site-nav a.active::after { width: 100%; }

.header-tel { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.header-tel span { font-size: 12px; color: var(--muted); }
.header-tel strong { font-size: 17px; color: var(--brand); }

/* hero */
.hero {
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(26, 92, 255, .18), transparent 60%),
        radial-gradient(700px 380px at 90% 10%, rgba(26, 92, 255, .10), transparent 55%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.hero-inner { padding: 96px 0 104px; max-width: 820px; }
.hero-eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .08em; font-size: 13px; }
.hero h1 { margin: 16px 0 20px; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.01em; }
.hero-desc { max-width: 620px; color: var(--ink-2); font-size: 16px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; padding: 0 26px; border-radius: 10px;
    font-size: 15px; font-weight: 600; transition: .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* sections */
.section { padding: 76px 0; }
.section-muted { background: var(--bg-soft); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.section-head h2 { margin-top: 8px; font-size: 28px; }
.section-more { color: var(--muted); font-size: 14px; }
.section-more:hover { color: var(--brand); }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media {
    height: 132px; display: grid; place-items: center;
    background: linear-gradient(135deg, #eef3ff, #f7f9ff);
    color: #a9b8d8; font-size: 13px; font-weight: 600;
    padding: 0 18px; text-align: center;
}
.card-body { padding: 20px; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about h2 { margin: 10px 0 16px; font-size: 30px; }
.about-text > p { color: var(--ink-2); }
.about-list { margin: 22px 0 28px; display: grid; gap: 10px; color: var(--ink-2); }
.about-list li::before { content: "·"; color: var(--brand); font-weight: 900; margin-right: 10px; }
.about-stats { display: grid; gap: 16px; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 28px;
}
.stat strong { display: block; font-size: 34px; color: var(--brand); line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14px; }

/* news */
.news-list { border-top: 1px solid var(--line); }
.news-item {
    display: flex; align-items: center; gap: 26px;
    padding: 22px 4px; border-bottom: 1px solid var(--line); transition: .2s;
}
.news-item:hover { padding-left: 12px; color: var(--brand); }
.news-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-title { font-size: 16px; font-weight: 500; }
.news-more { margin-left: auto; color: var(--muted); }

/* page banner */
.page-banner { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 64px 0; }
.page-banner h1 { font-size: 32px; }
.page-banner p { margin-top: 10px; color: var(--muted); }

/* layout */
.layout { display: grid; grid-template-columns: 232px 1fr; gap: 44px; padding: 48px 0 76px; align-items: start; }

.side { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; }
.side h3 { font-size: 17px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side a { display: block; padding: 9px 0; color: var(--ink-2); font-size: 14px; }
.side a:hover { color: var(--brand); }

.crumb { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.crumb a:hover { color: var(--brand); }

.list { display: grid; gap: 16px; }
.list-item {
    display: grid; grid-template-columns: 148px 1fr; gap: 22px;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; transition: .2s;
}
.list-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.list-thumb {
    height: 96px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, #eef3ff, #f7f9ff);
    color: #a9b8d8; font-size: 12px; text-align: center; padding: 0 10px;
}
.list-body h3 { font-size: 17px; margin-bottom: 6px; }
.list-body p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-date { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* article */
.single { padding: 40px 0 80px; max-width: 900px; }
.article-intro {
    background: var(--bg-soft); border-left: 3px solid var(--brand);
    padding: 16px 18px; border-radius: 8px; color: var(--ink-2); margin-bottom: 26px;
}
.article-body { color: var(--ink-2); font-size: 16px; }
.article-body h3 { margin: 28px 0 12px; font-size: 20px; color: var(--ink); }
.article-body p { margin: 14px 0; }
.article-body ul { margin: 14px 0; padding-left: 20px; list-style: disc; }
.article-body li { margin: 6px 0; }
.article-body img { border-radius: 10px; }

/* pagination */
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; color: var(--ink-2); background: #fff;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled { color: #b6bdc9; background: var(--bg-soft); }

.muted { color: var(--muted); }

/* footer */
.site-footer { background: #111723; color: #b9c2d0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding: 56px 0 40px; }
.footer-logo { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { color: #8d98a9; font-size: 14px; max-width: 360px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #8d98a9; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; color: #6f7a8a; font-size: 13px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; gap: 34px; }
    .layout { grid-template-columns: 1fr; }
    .side { position: static; display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .site-nav { display: none; }
    .header-tel span { display: none; }
    .hero-inner { padding: 68px 0 72px; }
    .grid-4 { grid-template-columns: 1fr; }
    .list-item { grid-template-columns: 1fr; }
    .list-thumb { height: 120px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 52px 0; }
}

/* ========== 模板市场 v2 ========== */
.market-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 88px 0 76px;
    background:
        radial-gradient(720px 360px at 8% -20%, rgba(26, 92, 255, .45), transparent 62%),
        radial-gradient(620px 360px at 92% 8%, rgba(0, 208, 255, .18), transparent 58%),
        #0b1220;
}

.market-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 70% at 50% 0%, #000 30%, transparent 100%);
    pointer-events: none;
}

.market-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 56px;
    align-items: center;
}

.market-hero-copy h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.16;
    margin: 16px 0 20px;
    letter-spacing: -.02em;
}

.market-hero .hero-eyebrow { color: #8fb0ff; }
.market-sub { color: #a9b6cb; max-width: 560px; font-size: 15.5px; line-height: 1.85; }

.market-search { display: flex; gap: 10px; margin-top: 30px; max-width: 540px; }
.market-search input {
    flex: 1; height: 52px; padding: 0 18px; border-radius: 12px; outline: none;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07); color: #fff; font-size: 14px;
    backdrop-filter: blur(6px);
}
.market-search input::placeholder { color: #7d899b; }
.market-search input:focus { border-color: rgba(26, 92, 255, .9); background: rgba(255, 255, 255, .1); }
.market-search .btn { height: 52px; padding: 0 26px; border-radius: 12px; }

.market-stats { display: flex; gap: 40px; margin-top: 36px; }
.market-stats div { display: flex; flex-direction: column; gap: 2px; }
.market-stats strong { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.market-stats span { font-size: 12.5px; color: #7f8ca0; }

.market-hero-art { position: relative; }
.art-window {
    border-radius: 16px;
    overflow: hidden;
    background: #111a2c;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px rgba(2, 8, 20, .55);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform .5s ease;
}
.market-hero-art:hover .art-window { transform: perspective(1200px) rotateY(0) rotateX(0); }

.art-bar {
    display: flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 14px; background: #0e1626;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.art-bar i { width: 9px; height: 9px; border-radius: 50%; background: #33415c; }
.art-bar i:first-child { background: #ff5f57; }
.art-bar i:nth-child(2) { background: #febc2e; }
.art-bar i:nth-child(3) { background: #28c840; }
.art-bar em { margin-left: 10px; font-style: normal; font-size: 11.5px; color: #6f7f99; }

.art-window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.art-fallback {
    aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: 8px;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #16233d, #1b2f55);
}
.art-fallback b { font-size: 24px; }
.art-fallback i { font-style: normal; font-size: 12.5px; color: #7f8ca0; }

.market-section { padding-top: 52px; }

.market-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.market-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.market-tabs .tab {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
    color: var(--ink-2); font-size: 14px; transition: .2s; background: #fff;
}
.market-tabs .tab:hover, .market-tabs .tab.active {
    background: var(--brand); border-color: var(--brand); color: #fff;
    box-shadow: 0 8px 18px rgba(26, 92, 255, .25);
}
.market-count { color: var(--muted); font-size: 13px; }

.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.market-card {
    display: flex; flex-direction: column; overflow: hidden; background: #fff;
    border: 1px solid var(--line); border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.market-card:hover {
    transform: translateY(-6px);
    border-color: rgba(26, 92, 255, .25);
    box-shadow: 0 24px 48px rgba(20, 24, 31, .1);
}

.market-cover {
    position: relative; display: grid; place-items: center; overflow: hidden;
    aspect-ratio: 16 / 10; background: linear-gradient(135deg, #1a5cff, #6f8cff);
}
.market-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.market-card:hover .market-cover img { transform: scale(1.04); }
.cover-text { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .02em; }

.cover-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 12px; color: #fff; padding: 4px 10px; border-radius: 999px;
    background: rgba(11, 18, 32, .72); backdrop-filter: blur(4px);
}
.cover-price {
    position: absolute; top: 12px; right: 12px;
    font-size: 12px; font-weight: 600; color: #fff; padding: 4px 10px; border-radius: 999px;
    background: rgba(26, 92, 255, .9);
}
.cover-mask {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 40%, rgba(11, 18, 32, .55));
    opacity: 0; transition: opacity .25s ease;
}
.cover-mask i {
    font-style: normal; font-size: 13px; color: #fff; padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
}
.market-card:hover .cover-mask { opacity: 1; }

.market-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 18px 20px; }
.market-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.market-title-row h3 { font-size: 17px; }
.market-version { font-size: 12px; color: #98a2b3; }
.market-desc {
    color: var(--muted); font-size: 13px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.market-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.market-tags span {
    font-size: 12px; color: var(--brand); background: rgba(26, 92, 255, .08);
    padding: 3px 8px; border-radius: 6px;
}
.market-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f2f6;
}
.market-meta { color: #98a2b3; font-size: 12px; }
.market-actions { display: flex; gap: 8px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }

.market-empty { text-align: center; padding: 80px 0 60px; color: var(--muted); }
.empty-icon {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 30px;
    background: var(--bg-soft); color: #b3bccb;
}
.market-empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.market-empty .btn { margin-top: 18px; }

/* 详情页 */
.market-detail { padding: 34px 0 76px; }
.crumb { display: flex; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.crumb a { color: var(--brand); }

.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }

.preview-window {
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    background: #fff; box-shadow: 0 24px 60px rgba(20, 24, 31, .1);
}
.preview-bar {
    display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px;
    background: #f7f9fc; border-bottom: 1px solid var(--line);
}
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dce5; }
.preview-bar i:first-child { background: #ff5f57; }
.preview-bar i:nth-child(2) { background: #febc2e; }
.preview-bar i:nth-child(3) { background: #28c840; }
.preview-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #98a2b3; }
.preview-window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.preview-fallback {
    aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: 8px;
    align-items: center; justify-content: center; text-align: center; padding: 24px;
    background: linear-gradient(135deg, #f1f5ff, #f8faff); color: #7f8ca0;
}
.preview-fallback b { font-size: 26px; color: #3d4655; }
.preview-fallback span { font-size: 13px; }

.detail-panel {
    position: sticky; top: 96px;
    border: 1px solid var(--line); border-radius: 16px; background: #fff;
    padding: 28px; box-shadow: 0 18px 44px rgba(20, 24, 31, .07);
}
.detail-badge {
    display: inline-block; font-size: 12px; color: var(--brand);
    background: rgba(26, 92, 255, .08); padding: 4px 10px; border-radius: 999px;
}
.detail-panel h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 12px 0 10px; }
.detail-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }

.detail-price {
    display: flex; align-items: baseline; gap: 12px;
    margin: 22px 0 6px; padding: 16px 18px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 92, 255, .08), rgba(26, 92, 255, .02));
}
.detail-price strong { font-size: 30px; color: var(--brand); letter-spacing: -.02em; }
.detail-price span { font-size: 12.5px; color: var(--muted); }

.meta-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
    margin: 20px 0; padding: 0; background: none;
}
.meta-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13.5px; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft);
}
.meta-list span { color: var(--muted); }

.detail-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-block { width: 100%; height: 46px; }
.detail-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.shots, .install-guide, .more-themes { margin-top: 64px; }
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shots-grid img {
    width: 100%; border-radius: 14px; border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(20, 24, 31, .06);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
    padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fafbfe);
    transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step b {
    display: inline-block; font-size: 26px; font-weight: 800;
    background: linear-gradient(135deg, var(--brand), #6f8cff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { margin: 10px 0 8px; font-size: 16px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.75; }

code { background: #eef2f8; padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }

@media (max-width: 1080px) {
    .market-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .market-hero-art { max-width: 620px; }
    .art-window { transform: none; }
    .market-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-panel { position: static; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .market-hero { padding: 64px 0 56px; }
    .market-stats { gap: 26px; }
    .market-stats strong { font-size: 21px; }
    .market-grid { grid-template-columns: 1fr; }
    .shots-grid { grid-template-columns: 1fr; }
    .market-search { flex-direction: column; }
    .detail-panel { padding: 20px; }
}
