/* ===== 全局重置 ===== */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px rgba(26, 115, 232, 0.08);
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans 3", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(160deg, #eaf2ff 0%, #f4f7fb 42%, #eef3f8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(26, 115, 232, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 67, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(26, 115, 232, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: -0.03em;
}

.logo span {
    color: #ea4335;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(26, 115, 232, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
    background: #fff;
    border-color: rgba(26, 115, 232, 0.35);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--primary);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

#nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
}

.nav-login-btn,
.nav-register-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-login-btn {
    color: #555;
}

.nav-login-btn:hover {
    color: var(--primary);
}

.nav-register-btn {
    background: var(--primary);
    color: #fff;
}

.nav-register-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4285f4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a73e8;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a73e8;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    color: #fff;
    padding: clamp(56px, 10vh, 96px) 0 clamp(48px, 8vh, 80px);
    text-align: left;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 80% at 12% 20%, rgba(255, 255, 255, 0.18), transparent 52%),
        linear-gradient(145deg, #0f4c9a 0%, #1a73e8 48%, #0d47a1 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 70% at 35% 45%, #000 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 35% 45%, #000 15%, transparent 78%);
    animation: hero-grid-drift 28s linear infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 46vw;
    height: 46vw;
    max-width: 520px;
    max-height: 520px;
    right: -6%;
    bottom: -22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
    animation: hero-orb 9s ease-in-out infinite alternate;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.hero-brand {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0 0 8px;
    opacity: 0;
    animation: hero-in 0.7s ease forwards;
}

.hero-brand span {
    color: #ffd166;
}

.hero-brand-sub {
    font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.4;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0;
    animation: hero-in 0.7s ease 0.05s forwards;
}

.hero h1 {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 600;
    margin: 0 0 14px;
    max-width: 16em;
    letter-spacing: -0.02em;
    line-height: 1.35;
    opacity: 0;
    animation: hero-in 0.7s ease 0.1s forwards;
}

.hero-desc {
    font-size: clamp(15px, 1.8vw, 17px);
    opacity: 0;
    max-width: 34em;
    margin: 0 0 28px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    animation: hero-in 0.7s ease 0.18s forwards;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    opacity: 0;
    animation: hero-in 0.7s ease 0.26s forwards;
}

.hero-visual {
    min-width: 0;
    opacity: 0;
    animation: hero-in 0.75s ease 0.18s forwards;
}

.hero-visual-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 60px rgba(0, 30, 80, 0.28);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.35s ease;
}

.hero-visual-frame:hover {
    transform: perspective(1200px) rotateY(-1deg) rotateX(0deg) translateY(-4px);
}

.hero-visual-frame img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-grid-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 48px 48px, 48px 48px; }
}

@keyframes hero-orb {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-6%, -8%) scale(1.08); }
}

@media (max-width: 900px) {
    .hero {
        text-align: center;
        padding: 48px 0 40px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero h1,
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual-frame {
        transform: none;
        max-width: 560px;
        margin: 0 auto;
    }

    .hero-visual-frame:hover {
        transform: translateY(-3px);
    }
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #1557b0;
}

.user-panel .btn-primary,
.modal-box .btn-primary,
.panel-toolbar .btn-primary {
    background: var(--primary);
    color: #fff;
}

.user-panel .btn-primary:hover,
.modal-box .btn-primary:hover,
.panel-toolbar .btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-danger {
    background: #fce8e6;
    color: #c5221f;
}

.btn-danger:hover {
    background: #fad2cf;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.55);
    color: #444;
    border: 1px solid rgba(15, 76, 154, 0.12);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--primary);
    border-color: rgba(26, 115, 232, 0.28);
}

/* ===== Section 通用 ===== */
.section {
    padding: clamp(56px, 8vw, 88px) 0;
}

.section-head {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.section-title {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px;
    color: #152033;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    color: #5f6b7a;
    margin: 0 auto;
    max-width: 36em;
    font-size: 16px;
    line-height: 1.65;
}

/* ===== Features 核心能力 ===== */
.section-intro {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(21, 87, 176, 0.12);
}

.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 28px 24px 28px 0;
    border-bottom: 1px solid rgba(21, 87, 176, 0.12);
    background: transparent;
    opacity: 0;
    animation: feature-in 0.55s ease calc(0.05s * var(--i, 0)) forwards;
    transition: transform 0.25s ease;
}

.feature-card:nth-child(3n-1) {
    padding-left: 24px;
    padding-right: 24px;
}

.feature-card:nth-child(3n) {
    padding-left: 24px;
    padding-right: 0;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-index {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1a73e8;
    line-height: 1.4;
    padding-top: 3px;
}

.feature-copy h3 {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 18px;
    margin: 0 0 8px;
    color: #152033;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.feature-copy p {
    font-size: 14px;
    color: #5f6b7a;
    line-height: 1.7;
    margin: 0;
}

@keyframes feature-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card:nth-child(3n-1),
    .feature-card:nth-child(3n) {
        padding-left: 0;
        padding-right: 0;
    }

    .feature-card:nth-child(2n) {
        padding-left: 18px;
    }

    .feature-card:nth-child(2n-1) {
        padding-right: 18px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card:nth-child(2n),
    .feature-card:nth-child(2n-1) {
        padding: 22px 0;
    }
}

/* ===== 首页：后台界面轮播 ===== */
.section-admin-gallery .section-head,
.section-hot-apps .section-head {
    margin-bottom: clamp(28px, 4vw, 40px);
}

.admin-gallery {
    max-width: 960px;
    margin: 0 auto;
}

.admin-gallery-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(26, 115, 232, 0.12);
    box-shadow: 0 18px 48px rgba(26, 115, 232, 0.1);
}

.admin-gallery-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-gallery-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d7de;
}

.admin-gallery-chrome span:nth-child(1) { background: #ff5f57; }
.admin-gallery-chrome span:nth-child(2) { background: #febc2e; }
.admin-gallery-chrome span:nth-child(3) { background: #28c840; }

.admin-gallery-viewport {
    position: relative;
    width: 100%;
    min-height: 160px;
    overflow: hidden;
    background: #f1f5f9;
}

.admin-gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.admin-gallery-slide.is-active {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.admin-gallery-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    vertical-align: top;
}

.admin-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a73e8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
}

.admin-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.admin-gallery-prev { left: 12px; }
.admin-gallery-next { right: 12px; }

.admin-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.admin-gallery-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(26, 115, 232, 0.25);
    cursor: pointer;
    transition: width 0.25s, background 0.25s;
}

.admin-gallery-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--primary);
}

.admin-gallery-caption {
    text-align: center;
    margin-top: 14px;
    font-size: 15px;
    color: #5f6368;
    min-height: 1.5em;
}

/* ===== 首页：热门应用 ===== */
.section-hot-apps {
    background: rgba(255, 255, 255, 0.35);
}

.home-hot-apps-grid {
    margin-bottom: 8px;
}

.section-hot-apps .section-more-actions {
    margin-top: 36px;
}

@media (max-width: 720px) {
    .admin-gallery-nav {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
    .admin-gallery-prev { left: 8px; }
    .admin-gallery-next { right: 8px; }
    .admin-gallery-caption {
        font-size: 14px;
        padding: 0 8px;
    }
}

/* ===== 更多内置功能 ===== */
.section-more {
    padding-top: clamp(40px, 6vw, 64px);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 28px;
}

.capability-item {
    position: relative;
    padding: 8px 0 8px 16px;
    border: none;
    opacity: 0;
    animation: feature-in 0.5s ease calc(0.03s * var(--i, 0)) forwards;
}

.capability-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: rgba(26, 115, 232, 0.28);
    transition: background 0.2s, transform 0.2s;
}

.capability-item:hover::before {
    background: #1a73e8;
    transform: scaleY(1.08);
}

.capability-item h3 {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 16px;
    font-weight: 650;
    color: #152033;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.capability-item p {
    font-size: 13px;
    color: #5f6b7a;
    line-height: 1.65;
    margin: 0;
}

.section-more-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.section-more-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(26, 115, 232, 0.16);
}

.section-more-actions .btn-ghost:hover {
    border-color: rgba(26, 115, 232, 0.4);
}

.home-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 44px;
}

.home-entry-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(21, 87, 176, 0.12);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-entry-card strong {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 17px;
    font-weight: 650;
    color: #152033;
    letter-spacing: -0.02em;
}

.home-entry-card span {
    font-size: 13px;
    color: #5f6b7a;
    line-height: 1.5;
}

.home-entry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(26, 115, 232, 0.28);
    box-shadow: 0 12px 28px rgba(26, 115, 232, 0.08);
    background: #fff;
}

.home-entry-card-primary {
    background: linear-gradient(145deg, #1a73e8, #1557b0);
    border-color: transparent;
    color: #fff;
}

.home-entry-card-primary strong,
.home-entry-card-primary span {
    color: #fff;
}

.home-entry-card-primary span {
    color: rgba(255, 255, 255, 0.84);
}

.home-entry-card-primary:hover {
    background: linear-gradient(145deg, #1b7aef, #134fa3);
    box-shadow: 0 14px 32px rgba(26, 115, 232, 0.28);
    border-color: transparent;
}

.section-cta {
    padding-top: 12px;
    padding-bottom: clamp(56px, 8vw, 80px);
}

.home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
    border-radius: 18px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
        linear-gradient(135deg, #0f4c9a 0%, #1a73e8 55%, #1557b0 100%);
    color: #fff;
}

.home-cta-copy {
    min-width: 0;
    flex: 1;
}

.home-cta h2 {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    line-height: 1.25;
}

.home-cta p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    max-width: 38em;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.home-cta .btn-primary {
    background: #fff;
    color: #1557b0;
}

.home-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
    .home-entry-grid {
        grid-template-columns: 1fr;
    }

    .home-cta {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 900px) {
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
    }
}

@media (max-width: 600px) {
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-cta-actions {
        width: 100%;
    }

    .home-cta-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-brand,
    .hero-brand-sub,
    .hero h1,
    .hero-desc,
    .hero-buttons,
    .hero-visual,
    .feature-card,
    .capability-item,
    .hero-bg::before,
    .hero-bg::after {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ===== Footer ===== */
.footer {
    background: #121820;
    color: #9aa3af;
    padding: 56px 0 28px;
    font-size: 14px;
}

.footer a {
    color: #c5ccd6;
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
    gap: 36px 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: inline-block;
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.footer-logo span {
    color: #5b9cff;
}

.footer-brand-sub {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: #9aa4b2;
}

.footer-brand p {
    margin: 0;
    max-width: 28em;
    line-height: 1.7;
    color: #8b949e;
}

.footer-col h4 {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 650;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-top: 22px;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    gap: 14px 18px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-label {
    flex-shrink: 0;
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 13px;
    font-weight: 650;
    color: #fff;
    line-height: 1.8;
}

.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-width: 0;
    flex: 1;
}

.footer-links-list a {
    font-size: 13px;
    color: #9aa3af;
    line-height: 1.8;
}

.footer-links-list a:hover {
    color: #fff;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #7a8490;
}

.footer-info {
    font-size: 13px;
    color: #7a8490;
    line-height: 1.6;
}

.footer-info a {
    color: #9eb6d8;
}

.hope-back-top {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 80;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #1a2333;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.2s;
}

.hope-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hope-back-top:hover {
    background: var(--primary, #2563eb);
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        padding: 18px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hope-back-top {
        right: 14px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
}

/* ===== 页面标题 ===== */
.page-header {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.88) 0%, rgba(21, 87, 176, 0.85) 100%);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 54px 0 46px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.page-header h1 {
    font-size: 37px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 17px;
    opacity: 0.85;
}

/* ===== 模板代码生成器 ===== */
.tpl-tool-hero.page-header-sm {
    padding: 36px 0 28px;
    text-align: left;
}
.tpl-tool-hero h1 {
    font-size: 28px;
    margin-bottom: 6px;
}
.tpl-tool-hero p {
    font-size: 15px;
    max-width: 640px;
    margin: 0;
    opacity: 0.9;
}
.tpl-tool-section {
    padding-top: 24px;
    padding-bottom: 56px;
    background:
        linear-gradient(180deg, #f3f6fb 0%, #f8fafc 48%, #fff 100%);
}
.tpl-tool-container {
    max-width: 1180px;
}
.tpl-tool-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}
.tpl-tool-config {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 8px 18px 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}
.tpl-tool-step {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.tpl-tool-step:last-of-type {
    border-bottom: none;
    padding-bottom: 6px;
}
.tpl-tool-step-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.tpl-tool-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eff6ff;
    color: #1a73e8;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tpl-tool-label {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.tpl-tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tpl-tool-chips--method {
    gap: 6px;
}
.tpl-tool-chip {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.tpl-tool-chips--method .tpl-tool-chip {
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
}
.tpl-tool-chip:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}
.tpl-tool-chip.is-active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.22);
}
.tpl-tool-empty-hint {
    display: none;
    margin: 2px 0 0;
    font-size: 12px;
    color: #94a3b8;
}
.tpl-tool-empty-hint.is-visible { display: block; }
.tpl-tool-params {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.tpl-tool-params--meta {
    margin-top: 12px;
}
.tpl-tool-params:empty { display: none; }
.tpl-tool-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}
.tpl-tool-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #111;
    box-sizing: border-box;
}
.tpl-tool-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.tpl-tool-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.tpl-tool-docs-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}
.tpl-tool-docs-link:hover { color: #1a73e8; }
.tpl-tool-result {
    position: sticky;
    top: 84px;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    min-height: 420px;
    display: flex;
    flex-direction: column;
}
.tpl-tool-result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px 8px;
    background: #1e293b;
    color: #e2e8f0;
}
.tpl-tool-result-title h2 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}
.tpl-tool-method {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}
.tpl-tool-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-tool-result .btn-outline {
    color: #e2e8f0;
    border-color: #475569;
    background: transparent;
}
.tpl-tool-result .btn-outline:hover {
    background: #334155;
    color: #fff;
}
.tpl-tool-filename {
    padding: 0 16px 8px;
    background: #1e293b;
    color: #64748b;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tpl-tool-code {
    margin: 0;
    padding: 14px 16px;
    overflow: auto;
    flex: 1;
    max-height: min(62vh, 560px);
    min-height: 280px;
}
.tpl-tool-code code {
    display: block;
    white-space: pre;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.55;
}
.tpl-tool-result-note {
    margin: 0;
    padding: 10px 16px 14px;
    border-top: 1px solid #1e293b;
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
    background: #0b1220;
}
.tpl-tool-result-note code {
    font-size: 11px;
    background: #1e293b;
    color: #cbd5e1;
    padding: 1px 5px;
    border-radius: 4px;
}
.tpl-tool-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    background: #111827;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    z-index: 9999;
    pointer-events: none;
}
.tpl-tool-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
    .tpl-tool-workspace {
        grid-template-columns: 1fr;
    }
    .tpl-tool-result {
        position: static;
        min-height: 0;
    }
    .tpl-tool-code {
        max-height: 420px;
    }
}
@media (max-width: 640px) {
    .tpl-tool-hero.page-header-sm { padding: 28px 0 22px; }
    .tpl-tool-hero h1 { font-size: 24px; }
    .tpl-tool-config { padding: 4px 14px 14px; border-radius: 14px; }
    .tpl-tool-params { grid-template-columns: 1fr; }
    .tpl-tool-chip { padding: 6px 10px; font-size: 12px; }
    .tpl-tool-actions { flex-wrap: wrap; }
}

/* ===== 下载页 ===== */
.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.75fr);
    gap: 0;
    margin-top: 22px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.download-panel-main {
    padding: 28px 30px 26px;
    min-width: 0;
}

.download-panel-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.download-panel-brand h3 {
    font-size: 24px;
    margin: 0;
    color: #1a2333;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.download-panel-brand .version {
    margin: 0;
    color: #8a94a6;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.download-panel-time {
    margin: 0;
    color: #8a94a6;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.download-panel-time::before {
    content: '·';
    margin-right: 10px;
    color: #c5cad3;
}

.download-panel-desc {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6578;
}

.download-latest {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(26, 115, 232, 0.06);
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.download-latest-meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #5b6578;
    white-space: pre-wrap;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-panel-aside {
    padding: 28px 24px 26px;
    border-left: 1px solid rgba(26, 115, 232, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.12) 100%);
}

.download-aside-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 720;
    color: #1a2333;
}

.download-aside-reqs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.download-aside-reqs li {
    position: relative;
    padding: 8px 0 8px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #5b6578;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.download-aside-reqs li:last-child {
    border-bottom: 0;
}

.download-aside-reqs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a73e8;
    opacity: 0.75;
}

.download-aside-empty {
    margin: 0;
    font-size: 13px;
    color: #8a94a6;
}

.btn-download {
    background: #1a73e8;
    color: #fff;
    padding: 11px 24px;
    border-radius: 29px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.21s;
    border: 1px solid transparent;
    text-align: center;
}

.btn-download:hover {
    background: #1557b0;
    color: #fff;
    transform: translateY(-2px);
}

.btn-download-alt {
    background: transparent;
    color: #1a73e8;
    border-color: rgba(26, 115, 232, 0.45);
}

.btn-download-alt:hover {
    background: rgba(26, 115, 232, 0.08);
    color: #1557b0;
}

/* ===== 应用中心 ===== */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.category-tab.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.marketplace-count {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    align-items: stretch;
}

.marketplace-grid > .marketplace-card {
    min-width: 0;
}

.plugin-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.23s;
}

.plugin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(26, 115, 232, 0.1);
    background: var(--glass-bg-strong);
}

.plugin-img {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, rgba(238, 242, 247, 0.9) 0%, rgba(232, 240, 254, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: #999;
    overflow: hidden;
    flex-shrink: 0;
}

.plugin-body {
    padding: 18px 20px 22px;
}

.plugin-body h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.plugin-body .plugin-author {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.plugin-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.marketplace-card .plugin-summary {
    margin-bottom: 0;
}

.plugin-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
}

.plugin-tag.theme {
    background: #fce8e6;
    color: #c5221f;
}

.plugin-tag.template {
    background: #e6f4ea;
    color: #137333;
}

.plugin-tag.plugin {
    background: #e8f0fe;
    color: #1a73e8;
}

.plugin-card.hidden {
    display: none;
}

.marketplace-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 24px;
    color: #888;
    font-size: 15px;
    display: none;
    background: var(--glass-bg);
    border: 1px dashed rgba(26, 115, 232, 0.2);
    border-radius: 16px;
}

.marketplace-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.marketplace-empty .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.marketplace-empty .empty-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.marketplace-empty.show {
    display: block;
}

/* ===== 文档页（Hope 风格） ===== */
.docs-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    background: transparent;
}

.docs-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    padding: 24px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.docs-sidebar-group {
    margin-bottom: 20px;
}

.docs-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    margin-bottom: 8px;
}

.docs-sidebar a {
    display: block;
    padding: 7px 20px;
    font-size: 14px;
    color: #444;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.docs-sidebar a:hover {
    color: #1a73e8;
    background: #f8f9fa;
}

.docs-sidebar a.active {
    color: #1a73e8;
    background: #e8f0fe;
    border-left-color: #1a73e8;
    font-weight: 500;
}

.docs-main {
    flex: 1;
    min-width: 0;
    display: flex;
    padding: 16px 16px 16px 0;
    gap: 0;
}

.docs-content {
    flex: 1;
    padding: 36px 48px 80px;
    min-width: 0;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.docs-content .table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
    -webkit-overflow-scrolling: touch;
}

.docs-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.docs-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 36px 0 14px;
    scroll-margin-top: 80px;
}

.docs-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 10px;
}

.docs-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 14px;
}

.docs-content ul,
.docs-content ol {
    margin: 0 0 16px 20px;
    font-size: 15px;
    color: #444;
    line-height: 1.75;
}

.docs-content li {
    margin-bottom: 6px;
}

.docs-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #c7254e;
}

.docs-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 18px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0 20px;
    font-size: 13px;
    line-height: 1.6;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    min-width: 360px;
}

.docs-content th,
.docs-content td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.docs-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.docs-content td {
    color: #444;
}

.docs-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.65;
}

.docs-alert.info {
    background: #e8f0fe;
    border-left: 4px solid #1a73e8;
    color: #174ea6;
}

.docs-alert.warning {
    background: #fef7e0;
    border-left: 4px solid #f9ab00;
    color: #7c4a00;
}

.docs-alert.danger {
    background: #fce8e6;
    border-left: 4px solid #ea4335;
    color: #c5221f;
}

.docs-toc {
    width: 200px;
    flex-shrink: 0;
    padding: 36px 16px 80px 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}

.docs-toc-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 12px;
}

.docs-toc a {
    display: block;
    font-size: 13px;
    color: #666;
    padding: 4px 0;
    line-height: 1.5;
    transition: color 0.15s;
}

.docs-toc a:hover {
    color: #1a73e8;
}

.docs-toc a.active {
    color: #1a73e8;
    font-weight: 500;
}

.docs-toc a.toc-h3 {
    padding-left: 12px;
    font-size: 12px;
}

.docs-section {
    display: none;
}

.docs-section.active {
    display: block;
}

@media (max-width: 1024px) {
    .docs-toc {
        display: none;
    }

    .docs-content {
        padding: 28px 28px 60px;
    }
}

.docs-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
        position: relative;
    }

    .docs-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 12px 16px 0;
        padding: 8px 14px;
        border-radius: 20px;
        border: 1px solid rgba(26, 115, 232, 0.2);
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        width: fit-content;
    }

    .docs-nav-toggle.is-open {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .docs-sidebar {
        display: none;
        width: 100%;
        height: auto;
        max-height: 55vh;
        overflow-y: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 12px 16px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .docs-sidebar.is-open {
        display: block;
    }

    .docs-sidebar-group {
        margin-bottom: 12px;
    }

    .docs-content {
        padding: 24px 20px 48px;
    }

    .docs-content h1 {
        font-size: 26px;
    }
}

/* ===== 登录 / 注册 ===== */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 16px 48px rgba(26, 115, 232, 0.12);
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #222;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
    background: rgba(255,255,255,0.95);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-error {
    color: #c5221f;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-error.show {
    display: block;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.auth-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.25);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #888;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* ===== 个人中心 ===== */
.user-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    gap: 24px;
}

.user-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: var(--glass-shadow);
    height: fit-content;
    position: sticky;
    top: 88px;
}

.user-profile-brief {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 12px;
}

.user-profile-brief .avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4285f4);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.25);
}

.user-profile-brief .name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.user-profile-brief .email {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.user-sidebar a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.user-sidebar a:hover {
    color: var(--primary);
    background: rgba(26, 115, 232, 0.06);
}

.user-sidebar a.active {
    color: var(--primary);
    background: rgba(26, 115, 232, 0.1);
    border-left-color: var(--primary);
    font-weight: 500;
}

.user-sidebar .logout-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    color: #c5221f;
}

.user-main {
    flex: 1;
    min-width: 0;
}

.user-panel {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--glass-shadow);
}

.user-panel.active {
    display: block;
}

.user-panel h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.user-panel .panel-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

.panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-toolbar .search-input {
    flex: 1;
    min-width: 180px;
    max-width: none;
}

.sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.sub-tab {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
}

.sub-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.data-table th {
    font-weight: 600;
    color: #555;
    background: rgba(255,255,255,0.4);
    font-size: 13px;
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.3);
}

.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.paid { background: #e6f4ea; color: #137333; }
.status-badge.pending { background: #fef7e0; color: #7c4a00; }
.status-badge.published { background: #e8f0fe; color: #1a73e8; }
.status-badge.draft { background: #f1f3f4; color: #666; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 14px;
}

.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #222;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: rgba(230, 244, 234, 0.95);
    color: #137333;
    border: 1px solid #ceead6;
}

.toast-error {
    background: rgba(252, 232, 230, 0.95);
    color: #c5221f;
    border: 1px solid #fad2cf;
}

.feedback-list {
    margin-top: 20px;
}

.feedback-item {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.feedback-item .fb-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.feedback-item .fb-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.feedback-item .fb-reply {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.08);
    font-size: 13px;
    color: var(--primary);
}

.nav-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-balance {
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 500;
}

.avatar-lg img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg.has-img {
    background: none;
    overflow: hidden;
    padding: 0;
}

.avatar-preview-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4285f4);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.2);
}

.avatar-preview-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.4);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.form-input[readonly] {
    background: rgba(0,0,0,0.04);
    color: #666;
    cursor: not-allowed;
}

.search-input {
    max-width: 280px;
    flex: 1;
}

.modal-box-lg {
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}

.cover-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cover-preview {
    width: 120px;
    height: 72px;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.app-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.app-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-item {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.version-item-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.version-note-edit {
    min-height: 60px;
    font-size: 13px;
    margin-bottom: 8px;
}

.version-item-actions {
    display: flex;
    gap: 8px;
}

/* Markdown 编辑器 */
.md-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.08);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}

.md-toolbar button {
    padding: 4px 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.md-toolbar button:hover {
    background: #fff;
    color: var(--primary);
}

.md-toolbar-spacer { flex: 1; }

.md-textarea {
    border-radius: 0 0 10px 10px !important;
    min-height: 120px;
    font-family: monospace;
    font-size: 13px;
}

.md-preview {
    padding: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0 0 10px 10px;
    background: rgba(255,255,255,0.6);
    min-height: 120px;
}

/* ===== Markdown 通用排版 ===== */
.markdown-body {
    line-height: 1.75;
    color: #444;
    font-size: 15px;
    word-wrap: break-word;
}

.markdown-body > :first-child {
    margin-top: 0;
}

.markdown-body > :last-child {
    margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: #222;
    font-weight: 600;
    line-height: 1.35;
    margin: 1.4em 0 0.6em;
    scroll-margin-top: 80px;
}

.markdown-body h1 {
    font-size: 1.75em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.markdown-body h2 {
    font-size: 1.4em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.markdown-body h3 { font-size: 1.2em; }
.markdown-body h4 { font-size: 1.05em; }
.markdown-body h5 { font-size: 1em; }
.markdown-body h6 { font-size: 0.95em; color: #666; }

.markdown-body p {
    margin: 0 0 1em;
}

.markdown-body ul,
.markdown-body ol {
    margin: 0 0 1em;
    padding-left: 1.6em;
}

.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }

.markdown-body li {
    margin: 0.25em 0;
}

.markdown-body li > ul,
.markdown-body li > ol {
    margin-bottom: 0;
}

.markdown-body blockquote {
    margin: 1em 0;
    padding: 0.6em 1em;
    border-left: 4px solid rgba(26, 115, 232, 0.35);
    background: rgba(26, 115, 232, 0.05);
    color: #555;
    border-radius: 0 8px 8px 0;
}

.markdown-body blockquote p:last-child {
    margin-bottom: 0;
}

.markdown-body hr {
    height: 1px;
    margin: 1.5em 0;
    border: none;
    background: rgba(0, 0, 0, 0.08);
}

.markdown-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.markdown-body a:hover {
    color: var(--primary-dark);
}

.markdown-body strong {
    font-weight: 600;
    color: #222;
}

.markdown-body em {
    font-style: italic;
}

.markdown-body code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #c7254e;
}

.markdown-body pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px 18px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1em 0 1.2em;
    font-size: 13px;
    line-height: 1.6;
}

.markdown-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5em 0;
}

.article-body {
    padding: 32px;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body img,
.article-body video,
.article-body iframe {
    max-width: 100%;
    height: auto;
}

.article-body pre,
.markdown-body pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0 1.2em;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    text-align: left;
}

.markdown-body th {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
    color: #333;
}

.markdown-body td {
    color: #444;
}

/* 充值 */
.recharge-card, .invite-card {
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 24px;
}

.recharge-balance-display {
    font-size: 18px;
    margin-bottom: 20px;
    color: #444;
}

.recharge-balance-display strong {
    color: var(--primary);
    font-size: 24px;
}

.recharge-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.recharge-amount,
.recharge-pay-type {
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.6);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.recharge-amount.active,
.recharge-amount:hover,
.recharge-pay-type.active,
.recharge-pay-type:hover {
    border-color: var(--primary);
    background: #e8f0fe;
    color: var(--primary);
}

.invite-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.invite-stat {
    text-align: center;
    padding: 16px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
}

.invite-stat .num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.invite-stat .label {
    font-size: 12px;
    color: #888;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn .form-input {
    flex: 1;
}

/* 论坛 */
.forum-section {
    padding-top: 32px;
    padding-bottom: 48px;
}

.forum-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.forum-main {
    flex: 1;
    min-width: 0;
}

.forum-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.forum-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forum-search {
    display: flex;
    gap: 8px;
}

.forum-search .form-input {
    width: 220px;
}

.forum-side-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--glass-shadow);
}

.forum-side-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
}

.side-intro {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.side-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.side-stats div {
    text-align: center;
}

.side-stats strong {
    display: block;
    font-size: 20px;
    color: var(--primary);
}

.side-stats span {
    font-size: 12px;
    color: #999;
}

.side-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

.active-users {
    list-style: none;
}

.active-users li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 13px;
}

.active-users li small {
    margin-left: auto;
    color: #999;
}

.avatar-xs, .avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-sm { width: 36px; height: 36px; }

.avatar-xs img, .avatar-sm img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #4285f4);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.avatar-sm.avatar-letter { font-size: 14px; }

.forum-new-btn {
    width: 100%;
    padding: 12px;
}

.forum-post-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.2s;
    box-shadow: var(--glass-shadow);
}

.forum-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.1);
    background: var(--glass-bg-strong);
}

.post-item-main h3 {
    font-size: 17px;
    color: #222;
    margin-bottom: 6px;
}

.post-excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.post-kws {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.post-kw {
    font-size: 11px;
    padding: 2px 8px;
    background: #e8f0fe;
    color: var(--primary);
    border-radius: 99px;
}

.post-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.post-cat-tag {
    display: inline-block;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

a.post-cat-tag:hover {
    background: rgba(26, 115, 232, 0.18);
    color: var(--primary-dark);
}

/* 论坛文章页：顶部边距与论坛首页 .forum-section 一致 */
.forum-section.forum-post-page {
    padding-top: 32px;
    padding-bottom: 48px;
}

.forum-post-page .forum-container {
    padding-top: 0;
}

.forum-post-page .forum-toolbar {
    align-items: center;
}

.forum-post-page .forum-back-btn {
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 99px;
    padding: 8px 16px;
}

.forum-post-page .post-detail {
    padding: 24px 28px;
    margin-bottom: 16px;
}

.forum-post-page .post-detail h1 {
    margin: 10px 0 12px;
    font-size: 24px;
}

.forum-post-page .forum-new-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.forum-post-page .forum-new-btn:first-of-type {
    margin-top: 0;
}

/* 多级子分类 tabs */
.category-tab.is-child {
    font-size: 13px;
    padding: 7px 14px;
    color: #666;
    background: rgba(255, 255, 255, 0.45);
}

.category-tab.is-child.active {
    color: #fff;
    background: var(--primary);
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 16px;
}

.post-detail {
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.post-detail h1 {
    font-size: 26px;
    margin: 12px 0 16px;
    color: #222;
}

.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.post-content {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.comments-section {
    padding: 24px;
    border-radius: 16px;
}

.comments-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.comment-author {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.comment-author small {
    font-weight: 400;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.comment-form {
    margin-top: 20px;
}

.comment-actions {
    margin-top: 8px;
}

.comment-reply-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.comment-reply-btn:hover {
    text-decoration: underline;
}

.comment-children {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
}

.comment-children .comment-item {
    padding: 12px 0;
    border-bottom: none;
}

.comment-children .comment-item:last-child {
    padding-bottom: 0;
}

.comment-children .avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.comment-reply-box {
    margin-top: 12px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.comment-reply-form .form-textarea {
    margin-bottom: 8px;
}

.comment-form-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-reply-hint {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.comment-cancel-main-reply {
    margin-left: auto;
    border: none;
    background: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.comment-cancel-main-reply:hover {
    color: var(--primary);
}

.comment-reply-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.comment-pagination {
    margin: 12px 0 16px;
}

.comment-captcha {
    margin: 8px 0;
}

@media (max-width: 900px) {
    .forum-container {
        flex-direction: column;
    }

    .forum-sidebar {
        width: 100%;
        order: -1;
    }

    .forum-post-page .forum-sidebar {
        order: 0;
    }

    .forum-post-page .forum-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-post-page .forum-back-btn {
        align-self: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .forum-post-item {
        flex-direction: column;
    }

    .post-item-meta {
        flex-direction: row;
        align-items: center;
    }

    .invite-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-main {
        padding: 0;
        flex-direction: column;
    }

    .docs-content {
        border-radius: 0;
        margin: 0;
    }

    .user-layout {
        flex-direction: column;
    }

    .user-panel {
        padding: 18px 14px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
        row-gap: 0;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 4px;
        border-top: 1px solid rgba(26, 115, 232, 0.1);
        margin-top: 10px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > li > a {
        display: block;
        padding: 12px 4px;
        font-size: 15px;
        border-radius: 8px;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        background: rgba(26, 115, 232, 0.08);
    }

    #nav-auth {
        margin-left: 0;
        margin-top: 4px;
        padding: 8px 0 4px;
        flex-wrap: wrap;
        gap: 10px;
    }

    #nav-auth .nav-user-btn span:not(.nav-avatar):not(.nav-avatar-img) {
        display: inline;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .section-subtitle {
        margin: 0 auto;
        font-size: 14px;
        padding: 0 8px;
    }

    .page-header {
        padding: 24px 0 18px;
    }

    .page-header h1 {
        font-size: 22px;
        line-height: 1.3;
        padding: 0 4px;
        word-break: break-word;
    }

    .page-header p {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 8px;
        max-width: 36em;
        margin-left: auto;
        margin-right: auto;
    }

    .page-header-sm {
        padding: 20px 0 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-panel {
        grid-template-columns: 1fr;
    }

    .download-panel-main {
        padding: 22px 18px 18px;
    }

    .download-panel-aside {
        border-left: 0;
        border-top: 1px solid rgba(26, 115, 232, 0.1);
        padding: 18px;
    }

    .download-actions {
        flex-direction: column;
    }

    .download-actions .btn-download {
        width: 100%;
    }

    .input-with-btn {
        flex-direction: column;
    }

    .input-with-btn .form-input,
    .input-with-btn .btn {
        width: 100%;
    }

    .forum-toolbar {
        gap: 10px;
    }

    .forum-search {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .forum-search .form-input {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px;
    }

    .forum-search .btn {
        flex: 0 0 auto;
    }

    .forum-post-item {
        padding: 14px;
    }

    .article-body,
    .glass-card.article-body {
        padding: 16px 14px;
        max-width: 100%;
    }

    .article-body h1,
    .article-body h2,
    .markdown-body h1,
    .markdown-body h2 {
        font-size: 1.25em;
        line-height: 1.35;
        word-break: break-word;
    }

    .container {
        padding: 0 14px;
        max-width: 100%;
    }

    .auth-page {
        padding: 24px 16px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
        max-width: 100%;
    }
}

/* 下载页版本历史 */
.version-history-section {
    margin-top: 16px;
}

.version-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.version-history-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: var(--glass-shadow);
}

.version-history-item.current {
    border-color: rgba(26, 115, 232, 0.35);
}

.version-history-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.version-badge {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.version-current-tag {
    background: rgba(26, 115, 232, 0.12);
    color: var(--primary);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
}

.version-date {
    color: #888;
    font-size: 13px;
    margin-left: auto;
}

.version-changelog {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* 应用中心关键词与搜索 */
.marketplace-search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.marketplace-search .form-input {
    flex: 1;
    min-width: 0;
    width: auto;
}

.keyword-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.keyword-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555;
    transition: all 0.2s;
}

.keyword-tab:hover,
.keyword-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555;
}

.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.plugin-card .plugin-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.35s ease;
}

.marketplace-card:hover .plugin-img img {
    transform: scale(1.04);
}

.plugin-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
}

.plugin-kw {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(26, 115, 232, 0.08);
    color: var(--primary);
    border: 1px solid rgba(26, 115, 232, 0.12);
}

.plugin-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

.plugin-price.is-free {
    color: #137333;
}

.plugin-price.is-promo {
    font-weight: 700;
    color: #c5221f;
}

.plugin-card-footer .plugin-price-old {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    line-height: 1.2;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination-nav .pagination-list,
.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-nav .page-item,
.pagination-list .page-item {
    display: inline-flex;
    margin: 0;
}

.pagination-nav .page-link,
.pagination-nav a.page-link,
.pagination-list .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--glass-bg-strong);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: #445;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pagination-nav .page-item:not(.active):not(.disabled) .page-link:hover,
.pagination-list .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #fff;
    border-color: rgba(26, 115, 232, 0.35);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
}

.pagination-nav .page-item.active .page-link,
.pagination-nav .page-link.active,
.pagination-nav .page-link.is-active,
.pagination-list .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.28);
}

.pagination-nav .page-item.disabled .page-link,
.pagination-nav .page-dot,
.pagination-list .page-item.disabled .page-link,
.pagination-list .page-dot {
    min-width: 24px;
    background: transparent;
    border-color: transparent;
    color: #99a;
    pointer-events: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .pagination-nav .page-link,
    .pagination-list .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* ===== 应用中心新版布局 ===== */
.marketplace-section {
    padding-top: 32px;
    padding-bottom: 48px;
}

.marketplace-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.marketplace-sidebar {
    position: sticky;
    top: 84px;
    min-width: 0;
}

.marketplace-side-card {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 14px;
}

.marketplace-side-card:last-child {
    margin-bottom: 0;
}

.marketplace-side-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marketplace-side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marketplace-side-nav a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    transition: all 0.2s;
}

.marketplace-side-nav a:hover {
    background: rgba(26, 115, 232, 0.08);
    color: var(--primary);
}

.marketplace-side-nav a.active {
    background: rgba(26, 115, 232, 0.12);
    color: var(--primary);
    font-weight: 600;
}

.marketplace-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.side-tag {
    padding: 5px 11px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.04);
    color: #666;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.side-tag:hover {
    border-color: rgba(26, 115, 232, 0.25);
    color: var(--primary);
}

.side-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.marketplace-main {
    min-width: 0;
}

.marketplace-toolbar {
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.marketplace-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.marketplace-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.marketplace-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.marketplace-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.marketplace-author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: #666;
}

.marketplace-author-text strong {
    font-size: 16px;
    color: #222;
}

.marketplace-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.marketplace-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.filter-label {
    font-size: 13px;
    color: #888;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    border: 1px solid rgba(26, 115, 232, 0.2);
    transition: all 0.2s;
}

.filter-chip:hover {
    background: rgba(26, 115, 232, 0.18);
}

.chip-remove {
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}

.filter-clear {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}

.filter-clear:hover {
    color: var(--primary);
}

.btn-outline-market {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(26, 115, 232, 0.35);
    backdrop-filter: none;
}

.btn-outline-market:hover {
    background: rgba(26, 115, 232, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: none;
    box-shadow: none;
}

.marketplace-toolbar .btn-primary {
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
}

.marketplace-toolbar .btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.marketplace-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    margin: 0;
}

.marketplace-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.marketplace-card .plugin-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
    position: relative;
    z-index: 0;
}

.marketplace-card .plugin-img {
    position: relative;
    z-index: 0;
}

.plugin-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plugin-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.plugin-author-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.plugin-author-link {
    position: relative;
    z-index: 2;
    color: var(--primary);
    font-size: 12px;
    flex-shrink: 0;
}

.plugin-author-link:hover {
    text-decoration: underline;
}

.plugin-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plugin-tag-badge.theme { color: #c5221f; }
.plugin-tag-badge.module { color: #137333; }
.plugin-tag-badge.plugin { color: #1a73e8; }

.plugin-emoji {
    font-size: 44px;
    line-height: 1;
}

.plugin-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.plugin-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.marketplace-card .plugin-card-footer {
    margin-top: auto;
}

.plugin-view-detail {
    margin-left: auto;
    font-size: 12px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.marketplace-card:hover .plugin-view-detail {
    opacity: 1;
}

.plugin-likes {
    font-size: 12px;
    color: #e8710a;
    font-weight: 500;
}

/* ===== 应用详情页 ===== */
.page-header-sm {
    padding: 32px 0 24px;
}

.page-header-sm .back-link.light {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
}

.app-header-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    margin-right: 8px;
}

.app-header-badge.theme { color: #ffe0de; }
.app-header-badge.plugin { color: #d4e4ff; }

/* ===== 应用详情头部（商店产品卡） ===== */
.app-detail-section-hero {
    padding-top: 16px;
}

.app-hero-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #8a94a6;
}

.app-hero-crumb a {
    color: #5b6578;
    transition: color 0.15s;
}

.app-hero-crumb a:hover {
    color: var(--primary);
}

.app-hero-crumb-sep {
    opacity: 0.45;
}

.app-hero-crumb-current {
    color: #344767;
    font-weight: 600;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0;
    padding: 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    align-items: start;
}

.app-store-hero::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -12%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.16) 0%, transparent 68%);
    pointer-events: none;
}

.app-store-hero::after {
    content: '';
    position: absolute;
    right: -8%;
    bottom: -50%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(234, 67, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.app-store-hero-main,
.app-store-hero-aside {
    position: relative;
    z-index: 1;
}

.app-store-hero-main {
    --hero-media-size: 118px;
    --hero-media-gap: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 18px 22px 16px;
}

@media (min-width: 901px) {
    .app-store-hero {
        grid-template-columns: minmax(0, 1fr) max-content;
        grid-template-rows: auto auto;
    }

    .app-store-hero-main {
        display: contents;
    }

    .app-store-hero-head {
        grid-column: 1;
        grid-row: 1;
        padding: 18px 20px 0 22px;
    }

    .app-store-hero-body {
        grid-column: 1;
        grid-row: 2;
        padding: 8px 22px 16px;
    }

    .app-store-hero-aside {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: stretch;
        min-height: 0;
    }
}

.app-store-hero-head {
    display: flex;
    align-items: flex-start;
    gap: var(--hero-media-gap);
    min-width: 0;
}

.app-store-hero-intro {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: var(--hero-media-size);
}

.app-store-hero-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.app-store-hero-icon {
    flex-shrink: 0;
    align-self: flex-start;
    width: var(--hero-media-size);
    height: var(--hero-media-size);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 8px 22px rgba(26, 115, 232, 0.13),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-store-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 插件：方形图标，完整展示不裁切 */
.app-store-hero-icon.plugin {
    background: linear-gradient(165deg, #f4f8ff 0%, #fff 100%);
}

.app-store-hero-icon.plugin img {
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

/* 主题：横版预览，高度与插件对齐 */
.app-store-hero-icon.theme:not(.is-fallback) {
    width: auto;
    height: var(--hero-media-size);
    aspect-ratio: 16 / 9;
    max-width: min(100%, calc(var(--hero-media-size) * 16 / 9));
    border-radius: 18px;
}

.app-store-hero-icon.theme:not(.is-fallback) img {
    object-fit: cover;
    object-position: center top;
    padding: 0;
}

.app-store-hero-icon.is-fallback {
    font-size: 44px;
    background: linear-gradient(160deg, #e8f1ff 0%, #f6f8fc 100%);
}

.app-store-hero-icon.theme.is-fallback {
    background: linear-gradient(160deg, #ffe8e6 0%, #fff6f5 100%);
}

.app-store-hero-kicker {
    margin-bottom: 0;
}

.app-store-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.app-store-hero-meta .app-store-tag {
    margin: 0;
}

.app-store-type,
.app-store-ver,
.app-store-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.app-store-type.plugin {
    color: #1557b0;
    background: rgba(26, 115, 232, 0.12);
}

.app-store-type.theme {
    color: #c2410c;
    background: rgba(234, 88, 12, 0.12);
}

.app-store-ver {
    color: #5b6578;
    background: rgba(0, 0, 0, 0.05);
    font-variant-numeric: tabular-nums;
}

.app-store-pill.is-free {
    color: #0f9d58;
    background: rgba(15, 157, 88, 0.12);
}

.app-store-hero-title {
    margin: 0;
    font-family: Outfit, "Source Sans 3", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.3;
    font-weight: 760;
    letter-spacing: -0.03em;
    color: #1a2333;
}

.app-store-hero-lead {
    margin: 0;
    max-width: 42em;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6578;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.app-store-hero-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 0;
}

.app-store-specs.is-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.app-store-specs.is-inline > div {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

.app-store-specs.is-inline dt {
    font-size: 12px;
    color: #8a94a6;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.app-store-specs.is-inline dt::after {
    content: '：';
}

.app-store-specs.is-inline dd {
    font-size: 13px;
    font-weight: 650;
    color: #344767;
    line-height: 1.35;
}

.app-store-hero-price.is-prominent {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 16px 12px;
    margin: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.12) 0%, rgba(255, 252, 251, 0.98) 52%, #fff 100%);
    box-shadow:
        0 0 0 1px rgba(234, 67, 53, 0.18),
        0 8px 22px rgba(234, 67, 53, 0.1);
    align-self: flex-start;
}

.app-store-hero-price.is-prominent::before {
    content: '价格';
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #c5221f;
    line-height: 1.2;
}

.app-store-hero-price.is-prominent .app-price-block {
    margin: 0;
    text-align: left;
}

.app-store-hero-price.is-prominent .app-price-num {
    font-size: 34px;
    font-weight: 800;
    color: #d93025;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.app-store-hero-price.is-prominent .app-price-block.has-promo {
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
}

.app-store-hero-price.is-prominent .app-price-block.has-promo .app-price-num.is-promo {
    font-size: 32px;
    color: #d93025;
}

.app-store-hero-price.is-prominent .app-price-old {
    font-size: 14px;
    color: #8a94a6;
    font-weight: 600;
}

.app-store-hero-price.is-prominent .app-price-promo-meta {
    justify-content: flex-start;
    margin-bottom: 2px;
}

.app-store-hero-price.is-prominent .app-price-promo-row {
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
}

.app-store-hero-price.is-prominent .app-price-badge {
    font-size: 11px;
    font-weight: 700;
}

.app-store-hero-price.is-prominent .app-promo-countdown.is-detail {
    font-size: 11px;
}

.app-store-hero-price.is-prominent.is-aside {
    display: flex;
    width: 100%;
    align-items: stretch;
    align-self: stretch;
}

.app-store-hero-aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    gap: 12px;
    min-width: 168px;
    padding: 20px 18px 18px;
    border-left: 1px solid rgba(26, 115, 232, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.12) 100%);
}

.app-store-hero-aside .app-store-hero-price.is-prominent {
    width: 100%;
    box-sizing: border-box;
}

.app-store-hero-aside .app-pay-methods.is-aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    width: 100%;
}

.app-store-hero-aside .app-pay-methods.is-aside .app-pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.app-store-hero-aside .app-pay-methods.is-aside .app-pay-row .recharge-pay-type {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    padding: 7px 8px;
    font-size: 12px;
    border-radius: 8px;
}

.app-pay-methods.is-hero-inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0;
}

.app-pay-methods.is-hero-inline .app-pay-label {
    flex-shrink: 0;
    margin: 0;
    font-size: 12px;
}

.app-pay-methods.is-hero-inline .app-pay-row {
    flex: 1;
    min-width: min(100%, 260px);
}

.app-pay-methods.is-hero-inline .app-pay-row .recharge-pay-type {
    flex: 0 1 auto;
    min-width: 72px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.app-store-hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(26, 115, 232, 0.08);
}

.app-store-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.08);
    color: #5b6578;
    font-size: 11px;
    font-family: inherit;
    cursor: default;
    min-height: 50px;
}

button.app-store-metric {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

button.app-store-metric:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(26, 115, 232, 0.12);
    background: #fff;
}

button.app-store-metric.is-liked,
button.app-store-metric:disabled {
    cursor: default;
    background: rgba(15, 157, 88, 0.08);
    box-shadow: 0 0 0 1px rgba(15, 157, 88, 0.16);
    color: #0f9d58;
}

.app-store-metric strong {
    font-size: 18px;
    font-weight: 720;
    color: #1a2333;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

button.app-store-metric.is-liked strong {
    color: #0f9d58;
}

.app-store-metric-ico {
    display: none;
}

.app-store-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.app-store-hero-actions .btn-block {
    width: 100%;
    text-align: center;
    border-radius: 11px;
    font-weight: 650;
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
}

.app-store-specs {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 8px 12px;
}

.app-store-specs > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.app-store-specs dt {
    font-size: 11px;
    color: #8a94a6;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-store-specs dd {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    color: #344767;
    line-height: 1.4;
    word-break: break-word;
}

.app-store-specs a {
    color: var(--primary);
}

.app-store-specs a:hover {
    text-decoration: underline;
}

.app-store-hero-price .app-price-block {
    margin: 0;
    text-align: left;
}

.app-store-hero-price .app-price-block.has-promo {
    padding: 6px 8px;
}

.app-store-hero-price .app-price-promo-meta {
    justify-content: flex-start;
    margin-bottom: 2px;
}

.app-store-hero-price .app-price-promo-row {
    justify-content: flex-start;
}

.app-store-hero-price .app-price-num {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.app-store-hero-price .app-price-block.has-promo .app-price-num.is-promo {
    font-size: 24px;
    line-height: 1.1;
}

.app-store-hero-price .app-price-old {
    font-size: 12px;
}

.app-store-hero-price .app-price-badge {
    margin: 0;
    padding: 1px 8px;
    font-size: 11px;
}

.app-store-hero-price .app-promo-countdown.is-detail {
    margin: 0;
    padding: 1px 8px;
}

.app-store-hero-price .app-promo-countdown.is-detail .app-promo-countdown-label,
.app-store-hero-price .app-promo-countdown.is-detail .app-promo-countdown-time {
    font-size: 11px;
}

.app-store-hero-price .app-price-free {
    font-size: 22px;
    font-weight: 760;
}

.app-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 2px;
}

.app-pay-label {
    font-size: 12px;
    font-weight: 650;
    color: #64748b;
}

.app-pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.app-pay-row .recharge-pay-type {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
    border-radius: 10px;
}

.app-pay-row .recharge-pay-type em {
    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    opacity: 0.75;
}

.app-side-card-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1a2333;
}

.app-side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.app-side-card-head .app-side-card-title {
    margin: 0;
}

.app-side-get-card,
.app-side-versions-card {
    padding: 18px 18px 16px;
}

.app-store-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: #5b6578;
    background: rgba(0, 0, 0, 0.045);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-install-steps {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 8px;
    font-size: 13px;
    line-height: 1.65;
    color: #344767;
}

.app-install-steps li::marker {
    color: var(--primary);
    font-weight: 700;
}

.app-install-note {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: #8a94a6;
    line-height: 1.5;
}

.app-detail-desc:first-child,
.app-detail-carousel + .app-detail-desc {
    margin-top: 0;
}

.app-detail-carousel + .app-detail-desc,
.app-detail-carousel + .app-detail-readme,
.app-detail-carousel + .app-detail-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.app-detail-section {
    padding-top: 32px;
    padding-bottom: 48px;
}

.app-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-detail-layout-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.app-detail-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-detail-side {
    position: sticky;
    top: 80px;
    align-self: start;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-detail-card {
    padding: 24px;
    border-radius: 16px;
}

.app-detail-desc h3,
.app-detail-readme h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #1a2333;
}

.app-side-card {
    padding: 20px;
    margin-bottom: 0;
    border-radius: 16px;
}

.app-download-alert {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(26, 115, 232, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.2);
}

.app-download-alert strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 15px;
}

.app-download-alert p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.app-download-alert-error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.22);
}

.app-download-alert-error strong {
    color: #dc2626;
}

.app-download-alert-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-download-tip {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #666;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.app-download-tip-icon {
    flex-shrink: 0;
    line-height: 1.4;
}

.app-detail-readme {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 右侧版本更新（默认仅显示最新一条） */
.app-side-versions h4 {
    margin-bottom: 12px;
}

.app-side-version-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-side-version-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.app-side-version-item.current {
    border-color: rgba(26, 115, 232, 0.25);
    background: rgba(26, 115, 232, 0.04);
}

.app-side-version-item.is-more {
    display: none;
}

.app-side-versions.is-expanded .app-side-version-item.is-more {
    display: block;
}

.app-side-version-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.app-side-version-head .version-badge {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.app-side-version-head .version-current-tag {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(26, 115, 232, 0.12);
    color: var(--primary);
}

.app-side-version-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    font-size: 12px;
    color: #888;
}

.app-side-version-item .version-changelog {
    font-size: 13px;
    line-height: 1.55;
    color: #555;
    margin: 0;
}

.app-side-version-item .version-changelog.is-empty {
    color: #999;
    font-size: 12px;
}

.app-side-version-item .version-changelog.markdown-body > :last-child {
    margin-bottom: 0;
}

.app-version-toggle {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px dashed rgba(26, 115, 232, 0.3);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.app-version-toggle:hover {
    background: rgba(26, 115, 232, 0.06);
    border-color: rgba(26, 115, 232, 0.45);
}

.app-side-tabs-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 115, 232, 0.1);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.06);
    position: relative;
    z-index: 1;
}

.app-side-tabs-wrap {
    padding: 12px 12px 0;
    background: linear-gradient(180deg, rgba(26, 115, 232, 0.04) 0%, transparent 100%);
}

.app-side-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
}

.app-side-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.app-side-tab:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.6);
}

.app-side-tab.active {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.app-side-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #666;
    background: rgba(0, 0, 0, 0.06);
}

.app-side-tab.active .app-side-tab-badge {
    color: #fff;
    background: var(--primary);
}

.app-side-tab-panels {
    padding: 16px 18px 18px;
}

.app-side-tab-panel {
    display: none;
    animation: appSideTabIn 0.22s ease;
}

.app-side-tab-panel.active {
    display: block;
}

.app-side-tab-panel[hidden] {
    display: none !important;
}

@keyframes appSideTabIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-side-panel-desc {
    margin: 0 0 12px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.app-side-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.app-side-purchase .app-price-block {
    margin-bottom: 16px;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(26, 115, 232, 0.04);
}

.app-download-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid rgba(26, 115, 232, 0.35);
}

.app-download-notice-icon {
    flex-shrink: 0;
    line-height: 1.4;
}

.app-side-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.app-side-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-side-stat-val {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.app-side-stat-lbl {
    font-size: 11px;
    color: #999;
}

.app-side-version-head .version-date {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.app-version-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.app-version-toggle-icon {
    font-size: 10px;
    transition: transform 0.2s;
}

.app-side-versions.is-expanded .app-version-toggle-icon {
    transform: rotate(180deg);
}

/* 相似应用卡片列表 */
.app-similar-list-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-similar-list-cards .app-similar-item a {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.app-similar-list-cards .app-similar-item a:hover {
    color: inherit;
    border-color: rgba(26, 115, 232, 0.25);
    background: rgba(26, 115, 232, 0.04);
    transform: translateY(-1px);
}

.app-similar-list-cards .sim-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-similar-list-cards .sim-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-similar-list-cards .sim-thumb-placeholder {
    font-size: 18px;
    line-height: 1;
}

.app-similar-list-cards .sim-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-similar-list-cards .sim-meta {
    font-size: 11px;
    color: #999;
}

.app-similar-list-cards .sim-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.app-similar-list-cards li:last-child a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-side-tab-panels-single {
    padding-top: 18px;
}

.app-similar-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.app-similar-section-head {
    margin-bottom: 20px;
}

.app-similar-section-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.app-similar-section-head p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.app-similar-grid {
    margin-top: 0;
}

.app-download-tip-compact {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #888;
    text-align: center;
}

.app-detail-side .app-side-tabs-card {
    margin-bottom: 0;
}

.app-detail-side .app-side-info-bar {
    margin-bottom: 14px;
}

.app-detail-side .app-price-block {
    margin-bottom: 10px;
}

.app-detail-side .app-price-free {
    font-size: 26px;
}

.app-detail-side .app-price-num {
    font-size: 28px;
}

.app-detail-side .app-price-block.has-promo .app-price-num {
    font-size: 24px;
}

.app-detail-side .app-price-old {
    font-size: 12px;
}

.app-detail-side .app-side-actions {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    gap: 8px;
}

.app-detail-side .app-side-actions .btn-block {
    padding: 10px 16px;
    font-size: 14px;
}

.app-detail-preview {
    margin-bottom: 24px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(238, 242, 247, 0.5);
}

.app-detail-preview.app-side-preview {
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 16px;
}

.app-side-preview-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(238, 242, 247, 0.8);
}

.app-detail-carousel {
    margin-bottom: 24px;
}

.app-detail-carousel-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(238, 242, 247, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.app-detail-carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.app-detail-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.app-detail-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin-bottom: 0;
    cursor: zoom-in;
}

.app-desc-body.markdown-body img,
.app-desc-body img {
    cursor: zoom-in;
}

/* 应用详情灯箱 */
.app-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: rgba(8, 12, 22, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    -webkit-user-select: none;
    user-select: none;
}

.app-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.app-lightbox-toolbar {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
    color: #fff;
}

.app-lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-width: 0;
    font-size: 13px;
}

.app-lightbox-counter {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    letter-spacing: 0.02em;
}

.app-lightbox-size,
.app-lightbox-zoom-label {
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
}

.app-lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.app-lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.app-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
}

.app-lightbox-btn:active {
    transform: scale(0.96);
}

.app-lightbox-btn.is-active {
    background: rgba(26, 115, 232, 0.85);
    border-color: transparent;
}

.app-lightbox-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.app-lightbox-close {
    min-width: 36px;
    font-size: 22px;
}

.app-lightbox-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: none;
}

.app-lightbox.is-panning .app-lightbox-stage,
.app-lightbox.is-zoomed .app-lightbox-stage {
    cursor: grab;
}

.app-lightbox.is-dragging .app-lightbox-stage {
    cursor: grabbing;
}

.app-lightbox-img-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translate(0px, 0px) scale(1);
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.18s ease;
}

.app-lightbox.is-dragging .app-lightbox-img-wrap,
.app-lightbox.is-wheel-zoom .app-lightbox-img-wrap {
    transition: none;
}

.app-lightbox-img {
    display: block;
    max-width: none;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.app-lightbox-img.is-ready {
    opacity: 1;
}

.app-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a73e8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.app-lightbox-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.app-lightbox-prev { left: 16px; }
.app-lightbox-next { right: 16px; }

.app-lightbox-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
}

.app-lightbox.is-single .app-lightbox-nav {
    display: none;
}

.app-lightbox.is-single .app-lightbox-counter {
    display: none;
}

body.app-lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .app-lightbox-toolbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .app-lightbox-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }

    .app-lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .app-lightbox-prev { left: 8px; }
    .app-lightbox-next { right: 8px; }

    .app-lightbox-hint {
        display: none;
    }
}

.app-detail-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a73e8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
}

.app-detail-carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.app-detail-carousel-prev { left: 12px; }
.app-detail-carousel-next { right: 12px; }

.app-detail-carousel-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.app-detail-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.app-detail-carousel-dot.is-active {
    background: #1a73e8;
    transform: scale(1.15);
}

.app-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    border-radius: 12px;
    background: rgba(26, 115, 232, 0.05);
    border: 1px solid rgba(26, 115, 232, 0.08);
}

button.app-stat {
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: all 0.2s;
}

button.app-stat:hover:not(:disabled) {
    background: rgba(232, 117, 10, 0.1);
    border-color: rgba(232, 117, 10, 0.2);
    transform: translateY(-1px);
}

button.app-stat:disabled {
    cursor: default;
}

.app-like-btn.is-liked,
.app-like-side-btn.is-liked {
    opacity: 0.85;
}

.app-stat-likes {
    background: rgba(232, 117, 10, 0.06);
    border-color: rgba(232, 117, 10, 0.12);
}

.app-stat-icon {
    font-size: 20px;
    line-height: 1;
}

.app-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.app-stat-label {
    font-size: 12px;
    color: #888;
}

.app-desc-body {
    font-size: 15px;
}

.app-desc-body.markdown-body {
    line-height: 1.75;
    color: #444;
}

.app-detail-tags {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.app-detail-tags h4 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    margin-bottom: 12px;
}

.app-side-card:last-child {
    margin-bottom: 0;
}

.app-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
}

.app-type-badge.theme {
    background: rgba(197, 34, 31, 0.1);
    color: #c5221f;
}

.app-side-version {
    font-size: 13px;
    color: #888;
}

.app-side-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #222;
}

.app-price-block {
    margin-bottom: 12px;
    text-align: center;
}

.app-price-block.has-promo {
    padding: 6px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(197, 34, 31, 0.06), rgba(234, 67, 53, 0.04));
    border: 1px solid rgba(197, 34, 31, 0.12);
}

.app-price-promo-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.app-price-promo-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.app-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.app-price-free {
    font-size: 32px;
    font-weight: 700;
    color: #137333;
}

.app-price-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.app-price-block.has-promo .app-price-num.is-promo {
    font-size: 28px;
    color: #c5221f;
    line-height: 1.1;
}

.app-price-old {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.app-price-badge {
    display: inline-block;
    margin: 0;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ea4335, #c5221f);
    vertical-align: middle;
}

.app-price-block.has-promo .app-price-badge {
    margin-bottom: 0;
}

.app-promo-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-promo-countdown.is-detail {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 0;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(197, 34, 31, 0.08);
    border: 1px dashed rgba(197, 34, 31, 0.25);
}

.app-promo-countdown.is-card {
    flex-basis: 100%;
    width: 100%;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(197, 34, 31, 0.06);
    font-size: 11px;
}

.app-promo-countdown-label {
    font-weight: 600;
    color: #c5221f;
    white-space: nowrap;
}

.app-promo-countdown.is-detail .app-promo-countdown-label {
    font-size: 12px;
}

.app-promo-countdown-time {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #b91c1c;
}

.app-promo-countdown.is-detail .app-promo-countdown-time {
    font-size: 14px;
}

.app-promo-countdown.is-ended {
    opacity: 0.7;
}

.app-promo-countdown.is-ended .app-promo-countdown-time {
    color: #888;
}

.app-price-promo {
    display: block;
    font-size: 14px;
    color: #c5221f;
    margin-top: 6px;
}

.app-side-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-side-actions .btn-block {
    padding: 13px 20px;
}

.app-side-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.app-meta-row:last-child {
    border-bottom: none;
}

.app-meta-label {
    color: #888;
}

.app-meta-value {
    color: #333;
    font-weight: 500;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

.app-similar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-similar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
    transition: color 0.2s;
}

.app-similar-list li:last-child a {
    border-bottom: none;
}

.app-similar-list li a:hover {
    color: var(--primary);
}

.app-similar-list .sim-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-similar-list .sim-price {
    color: #888;
    flex-shrink: 0;
    font-size: 13px;
}

.app-feedback-card {
    margin-top: 0;
}

.app-feedback-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-feedback-head h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a2333;
    margin: 0;
    padding: 0;
    border: 0;
}

.app-feedback-count {
    font-size: 13px;
    color: #888;
}

.app-feedback-form {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-feedback-input {
    min-height: 110px;
    resize: vertical;
}

.app-feedback-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.app-feedback-hint {
    font-size: 12px;
    color: #888;
}

.app-feedback-login-tip {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(26, 115, 232, 0.06);
    font-size: 14px;
    color: #666;
}

.app-feedback-login-tip a {
    color: var(--primary);
    font-weight: 500;
}

.app-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-feedback-item {
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-feedback-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.app-feedback-meta strong {
    color: #333;
}

.app-feedback-meta time {
    color: #999;
    flex-shrink: 0;
}

.app-feedback-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.app-feedback-empty {
    text-align: center;
    padding: 32px 16px;
    color: #888;
    font-size: 14px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.app-feedback-reply {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(99, 102, 241, 0.06);
    border-left: 3px solid var(--primary, #6366f1);
    border-radius: 0 10px 10px 0;
}

.app-feedback-reply-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}

.app-feedback-reply-meta strong {
    color: var(--primary, #6366f1);
}

.app-feedback-reply-meta time {
    color: #999;
    font-size: 12px;
}

.app-feedback-reply p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

/* ===== 论坛首页 ===== */
.forum-home-hero {
    padding: 36px 40px;
}

.forum-home-intro h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.forum-home-intro p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.forum-home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.forum-cat-card {
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.forum-cat-card:hover {
    transform: translateY(-2px);
}

.forum-cat-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.forum-cat-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.forum-cat-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary);
}

/* ===== 个人中心 / 登录补充 ===== */
.auth-captcha {
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.form-check-row {
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.user-side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-side-nav a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
}

.user-side-nav a.active {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.profile-info-item .label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.profile-info-item .value {
    font-size: 15px;
    color: #222;
}

.user-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-table th,
.user-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.user-table th {
    font-weight: 600;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .marketplace-layout,
    .app-detail-layout-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .marketplace-sidebar,
    .app-detail-side {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .app-store-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .app-store-hero-main {
        display: flex;
        gap: 12px;
        padding: 18px 18px 16px;
    }

    .app-store-hero-head,
    .app-store-hero-body {
        padding: 0;
    }

    .app-store-hero-aside {
        padding: 14px 16px 16px;
        min-width: 0;
        border-left: 0;
        border-top: 1px solid rgba(26, 115, 232, 0.1);
        background: rgba(255,255,255,0.28);
    }

    .app-store-hero-aside .app-pay-methods.is-aside .app-pay-row .recharge-pay-type {
        flex: 1 1 auto;
    }

    .app-store-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .app-store-hero-actions .btn-block {
        flex: 1 1 140px;
        width: auto;
    }

    .app-store-hero-extra {
        gap: 8px 12px;
    }

    .app-pay-methods.is-aside {
        flex-direction: column;
        align-items: stretch;
    }

    .app-pay-methods.is-aside .app-pay-row {
        min-width: 0;
    }

    .app-store-specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-store-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-store-hero-title {
        font-size: 22px;
    }

    .app-detail-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 手机/平板：单条紧凑筛选，避免双卡片过高、标签换行过长 */
    .marketplace-sidebar {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        min-width: 0;
        overflow: visible;
    }

    .marketplace-side-card {
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        min-width: 0;
        overflow: visible;
    }

    .marketplace-side-card h3 {
        display: none;
    }

    .marketplace-side-nav,
    .marketplace-side-tags {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .marketplace-side-nav::-webkit-scrollbar,
    .marketplace-side-tags::-webkit-scrollbar {
        display: none;
    }

    .marketplace-side-nav a,
    .side-tag {
        flex: 0 0 auto;
        white-space: nowrap;
        max-width: none;
    }

    .marketplace-side-nav a {
        padding: 6px 12px;
        border-radius: 16px;
        font-size: 13px;
        line-height: 1.2;
        background: rgba(0, 0, 0, 0.04);
    }

    .marketplace-side-nav a.active {
        background: var(--primary);
        color: #fff;
    }

    .side-tag {
        padding: 4px 10px;
        font-size: 12px;
        line-height: 1.2;
    }

    .marketplace-main {
        min-width: 0;
        max-width: 100%;
    }

    .marketplace-toolbar {
        padding: 12px;
        gap: 10px;
        margin-bottom: 12px;
        min-width: 0;
    }

    .marketplace-topbar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .marketplace-search {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .marketplace-search .form-input {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        min-height: 40px;
        font-size: 16px;
    }

    .marketplace-search .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .marketplace-count {
        text-align: left;
        font-size: 13px;
        white-space: normal;
    }

    .marketplace-active-filters {
        gap: 6px;
        max-width: 100%;
    }

    .filter-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .marketplace-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
        gap: 14px;
        min-width: 0;
    }

    .plugin-view-detail {
        opacity: 1;
    }

    .plugin-card:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .marketplace-section {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .marketplace-layout {
        gap: 10px;
    }

    .marketplace-sidebar {
        padding: 8px 10px;
        gap: 6px;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .marketplace-card {
        border-radius: 12px;
        max-width: 100%;
    }

    .marketplace-card .plugin-body {
        padding: 12px 14px 14px;
    }

    .plugin-title {
        font-size: 15px;
    }

    .plugin-summary {
        font-size: 13px;
        min-height: 0;
        -webkit-line-clamp: 2;
    }

    .plugin-card-footer {
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .marketplace-card .plugin-card-footer {
        align-items: center;
    }

    .plugin-view-detail {
        display: none;
    }

    .marketplace-author-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-store-hero-main {
        --hero-media-size: 92px;
        --hero-media-gap: 14px;
        gap: 10px;
        padding: 16px;
    }

    .app-store-hero-intro {
        gap: 6px;
        min-height: 0;
    }

    .app-store-hero-body {
        gap: 8px;
    }

    .app-store-hero-icon {
        border-radius: 16px;
    }

    .app-store-hero-icon.plugin img {
        padding: 8px;
    }

    .app-store-hero-icon.theme:not(.is-fallback) {
        border-radius: 12px;
    }

    .app-store-hero-icon.is-fallback {
        font-size: 36px;
    }

    .app-store-hero-title {
        font-size: 22px;
    }

    .app-store-hero-lead {
        font-size: 14px;
    }

    .app-store-hero-price.is-prominent {
        padding: 8px 14px 10px;
        margin: 0;
    }

    .app-store-hero-price.is-prominent .app-price-num {
        font-size: 28px;
    }

    .app-store-hero-price.is-prominent .app-price-block.has-promo .app-price-num.is-promo {
        font-size: 26px;
    }

    .app-store-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-top: 8px;
    }

    .app-store-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-hero-crumb-current {
        max-width: 100%;
    }

    .app-store-metric {
        min-height: 44px;
        padding: 7px 9px;
    }

    .app-store-metric strong {
        font-size: 16px;
    }

    .app-detail-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .app-stat {
        padding: 10px 6px;
    }

    .app-detail-card {
        padding: 14px;
        border-radius: 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .app-detail-section {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .app-detail-layout-inner {
        gap: 12px;
    }

    .app-detail-side .app-side-actions .btn-block {
        width: 100%;
    }

    .app-detail-preview img,
    .app-side-preview-img {
        max-width: 100%;
        height: auto;
    }

    .pagination-nav {
        margin-top: 16px;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pagination-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        padding: 0 2px 4px;
    }
}

.form-tag-select {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.form-tag-select .tag-pick {
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.form-tag-select .tag-pick.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}