/* Soft Structuralism — 软件源预览全新视觉 */
:root {
    --ink: #14171c;
    --ink-soft: #3a4250;
    --muted: #6b7380;
    --line: rgba(20, 23, 28, 0.08);
    --line-strong: rgba(20, 23, 28, 0.12);
    --surface: #ffffff;
    --surface-soft: #f4f6f8;
    --bg: #e8ecf1;
    --bg-deep: #dde3ea;
    --accent: #0f766e;
    --accent-soft: #d7efe9;
    --accent-ink: #0a4f49;
    --warn: #c27803;
    --warn-soft: #fff1d6;
    --danger: #c2410c;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --radius-xl: 1.75rem;
    --radius-lg: 1.25rem;
    --radius-md: 0.95rem;
    --shadow-soft: 0 18px 40px rgba(20, 23, 28, 0.08);
    --shadow-float: 0 10px 30px rgba(15, 118, 110, 0.14);
    --page-gutter: 1.15rem;
    --scroll-position: 0;
    --primary-color: var(--accent);
    --secondary-color: #14b8a6;
    --background-color: var(--bg);
    --card-background: var(--surface);
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
}

body {
    margin: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(15, 118, 110, 0.12), transparent 60%),
        radial-gradient(700px 380px at 92% 8%, rgba(20, 23, 28, 0.06), transparent 55%),
        linear-gradient(180deg, #eef2f6 0%, var(--bg) 38%, #e6ebf1 100%);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(520px 280px at 70% 40%, rgba(215, 239, 233, 0.45), transparent 70%);
}

.page-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    position: relative;
    z-index: 2;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-stack > .reveal:nth-child(1) { transition-delay: 0.04s; }
.page-stack > .reveal:nth-child(2) { transition-delay: 0.1s; }
.page-stack > .reveal:nth-child(3) { transition-delay: 0.16s; }
.page-stack > .reveal:nth-child(4) { transition-delay: 0.22s; }
.page-stack > .reveal:nth-child(5) { transition-delay: 0.28s; }

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

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes soft-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0); }
}

@keyframes icon-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

/* Brand */
.site-top {
    padding-top: 1.35rem;
    padding-bottom: 0.35rem;
}

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 10px 24px rgba(20, 23, 28, 0.08);
}

.brand-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

.brand-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.brand-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(58vw, 420px);
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.brand-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
    animation: soft-pulse 2.2s var(--ease) infinite;
}

.brand-logo,
.brand-logo--fallback {
    transition: transform 0.45s var(--ease-spring);
}

.brand-mark:hover .brand-logo,
.brand-mark:hover .brand-logo--fallback {
    transform: rotate(-4deg) scale(1.05);
}

/* Carousel */
.header-carousel-wrapper {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.carousel-shell {
    padding: 0.4rem;
    border-radius: calc(var(--radius-xl) + 0.15rem);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.carousel-shell:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(20, 23, 28, 0.1);
}

.carousel-inner {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-img {
    height: 280px;
    object-fit: cover;
    transition: transform 1.1s var(--ease-out);
}

.carousel-item.active .carousel-img {
    transform: scale(1.03);
}

.carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.5rem 1.4rem;
    text-align: left;
    background: linear-gradient(to top, rgba(10, 14, 18, 0.72), transparent 70%);
}

.carousel-title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
    text-shadow: none;
}

.carousel-caption p {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.88;
    margin: 0;
    max-width: 36rem;
}

.carousel-indicators {
    bottom: 0.85rem;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    margin: 0 4px;
    opacity: 1;
    transition: width 0.35s var(--ease), background-color 0.35s var(--ease), border-radius 0.35s var(--ease);
}

.carousel-indicators button.active {
    background-color: #fff;
    width: 18px;
    border-radius: 999px;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    width: 12%;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 0.75;
}

.carousel-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: white;
}

.carousel-link:hover {
    color: white;
    text-decoration: none;
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 3rem;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.65rem;
}

/* Stats */
.stats-dashboard {
    margin-top: 0;
}

.stats-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(20, 23, 28, 0.05);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(20, 23, 28, 0.08);
}

.stats-card-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.25rem;
    flex: 1;
    transition: transform 0.35s var(--ease);
}

.stats-card-item:hover {
    transform: translateX(2px);
}

.stats-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    transition: transform 0.45s var(--ease-spring), background 0.35s var(--ease);
}

.stats-card-item:hover .stats-icon {
    transform: scale(1.08) rotate(-3deg);
}

.stats-icon--alt {
    background: rgba(20, 23, 28, 0.06);
    color: var(--ink-soft);
}

.stats-icon i {
    font-size: 1.05rem;
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-value {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stats-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 550;
}

.stats-divider {
    width: 1px;
    height: 36px;
    background: var(--line-strong);
}

@keyframes highlight-pulse {
    0%, 100% { color: var(--ink); transform: scale(1); }
    50% { color: var(--accent); transform: scale(1.05); }
}

.stats-value.highlight {
    animation: highlight-pulse 0.9s var(--ease);
}

/* Notice */
.notice-shell {
    padding: 0.35rem;
    border-radius: calc(var(--radius-md) + 0.2rem);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.notice-container {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.05rem;
    border: 1px solid var(--line);
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.notice-content i {
    color: var(--accent);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Quick tools */
.quick-shell .quick-tool-buttons {
    padding: 0.35rem;
    border-radius: calc(var(--radius-lg) + 0.1rem);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.quick-buttons-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    padding: 0.45rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.quick-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ink);
    padding: 0.85rem 0.35rem;
    border-radius: 0.9rem;
    transition: transform 0.4s var(--ease-spring), background 0.35s var(--ease), color 0.35s var(--ease);
    background: transparent;
}

.quick-button:hover {
    background: var(--surface-soft);
    transform: translateY(-4px);
    color: var(--accent-ink);
}

.quick-button:active {
    transform: scale(0.96);
}

.quick-button-icon {
    margin-bottom: 0.4rem;
    transition: transform 0.4s var(--ease-spring);
}

.quick-button:hover .quick-button-icon {
    transform: scale(1.12);
    animation: icon-bob 0.9s var(--ease) infinite;
}

.quick-button-icon img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: contain;
}

.quick-button-text {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* Search + category */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-box {
    margin: 0;
}

.search-input-wrapper {
    background: var(--surface);
    border-radius: 999px;
    padding: 0.75rem 1.05rem;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(20, 23, 28, 0.04);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.search-input-wrapper:focus-within {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.1);
    transform: translateY(-1px);
}

.search-icon {
    color: var(--muted);
    font-size: 0.95rem;
    margin-right: 0.7rem;
    transition: color 0.3s var(--ease), transform 0.35s var(--ease-spring);
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--accent);
    transform: scale(1.08);
}

.search-input {
    border: none;
    background: none;
    flex: 1;
    font-size: 16px;
    color: var(--ink);
    outline: none;
    padding: 0;
    font-family: inherit;
}

.search-input::placeholder {
    color: #9aa3af;
}

.clear-search {
    background: var(--surface-soft);
    border: none;
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 0.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.clear-search:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.category-nav {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    position: relative;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.82rem;
    font-family: inherit;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease);
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
}

.category-btn:hover {
    background: rgba(20, 23, 28, 0.04);
    color: var(--ink);
}

.category-btn.active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 18px rgba(20, 23, 28, 0.18);
    transform: scale(1.03);
}

.category-btn:active {
    transform: scale(0.96);
}

.category-btn.tap-pop {
    animation: tap-pop 0.45s var(--ease-spring);
}

@keyframes tap-pop {
    0% { transform: scale(1); }
    40% { transform: scale(0.94); }
    100% { transform: scale(1.03); }
}

/* App list */
#appList > [class*="col-"] {
    display: flex;
}

#appList {
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), filter 0.28s var(--ease);
}

#appList.list-swapping {
    opacity: 0.35;
    transform: translateY(6px);
    filter: blur(2px);
    pointer-events: none;
}

.app-col {
    opacity: 0;
}

.app-col.is-in {
    animation: card-in 0.7s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 48ms);
}

.app-shell {
    width: 100%;
    height: 100%;
    padding: 0.35rem;
    border-radius: calc(var(--radius-lg) + 0.2rem);
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
    will-change: transform;
}

.app-shell:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    padding: 1.05rem 1.05rem 0.95rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    --mx: 50%;
    --my: 30%;
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(15, 118, 110, 0.12), transparent 45%);
    transition: opacity 0.35s var(--ease);
    z-index: 0;
}

.app-shell:hover .app-card::before {
    opacity: 1;
}

.app-card > * {
    position: relative;
    z-index: 1;
}

.app-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-soft);
    box-shadow:
        0 0 0 1px var(--line),
        0 8px 18px rgba(20, 23, 28, 0.08);
    transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease);
}

.app-shell:hover .app-icon {
    transform: scale(1.06) rotate(-2deg);
    box-shadow:
        0 0 0 1px rgba(15, 118, 110, 0.18),
        0 12px 22px rgba(20, 23, 28, 0.12);
}

.app-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.app-title {
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.app-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.app-meta-line .meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

.app-description {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-top: auto;
    padding: 0.7rem 0.75rem;
    background: var(--surface-soft);
    border-radius: 0.85rem;
    white-space: pre-line;
    overflow: hidden;
    max-height: calc(0.7rem + 0.7rem + 1.5em * 3);
    word-break: break-word;
    overflow-wrap: anywhere;
    position: relative;
}

.app-description.no-copy {
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
}

.btn-download {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
    flex-shrink: 0;
    border: none;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-download::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.btn-download:hover::after {
    opacity: 1;
    animation: shimmer 1.1s linear;
}

.btn-download i {
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    transition: transform 0.35s var(--ease-spring);
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.08);
    color: #fff;
    text-decoration: none;
}

.btn-download:hover i {
    transform: translateY(1px);
}

.btn-download:active {
    transform: scale(0.94);
}

.btn-free {
    background: var(--accent);
}

.btn-free:hover {
    background: #0d9488;
}

.btn-locked {
    background: var(--warn);
    color: #fff;
    box-shadow: 0 8px 18px rgba(194, 120, 3, 0.25);
}

.btn-locked:hover {
    background: #b45309;
    color: #fff;
}

.btn-warning {
    background: var(--danger);
    box-shadow: 0 8px 18px rgba(194, 65, 12, 0.22);
}

.btn-warning:hover {
    background: #9a3412;
}

#appList.is-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 220px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

#appList.is-empty > * {
    width: 100%;
    max-width: 420px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 2.4rem 1.5rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 28px rgba(20, 23, 28, 0.05);
    animation: rise-in 0.55s var(--ease-out) both;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    background: var(--surface-soft);
    color: var(--muted);
}

.empty-state-icon i {
    font-size: 1.25rem;
    opacity: 0.75;
}

.empty-state h3 {
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    color: var(--ink);
}

.empty-state p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 16rem;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.35rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--surface);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    padding: 0.75rem 1.2rem 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 650;
    font-size: 0.9rem;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(20, 23, 28, 0.05);
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
    cursor: pointer;
}

.btn-load-more-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-load-more:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-load-more:hover .btn-load-more-icon {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(1px);
}

.btn-load-more.loading .btn-load-more-icon {
    animation: spin 1s linear infinite;
}

/* Loading */
.loading {
    position: fixed;
    inset: 0;
    background: rgba(232, 236, 241, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(15, 118, 110, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Toast */
.toast-container {
    position: fixed;
    z-index: 1050;
    pointer-events: none;
    max-width: 100%;
    width: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toast-message {
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(20, 23, 28, 0.16);
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    min-width: 180px;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
    animation: fadeIn 0.3s var(--ease);
    border: 1px solid var(--line);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.toast-message.success { background: #0f766e; color: #fff; border-color: transparent; }
.toast-message.warning { background: #fff1d6; color: #92400e; }
.toast-message.error { background: #c2410c; color: #fff; border-color: transparent; }
.toast-message.info { background: #14171c; color: #fff; border-color: transparent; }

/* Download modal */
.download-modal-container {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.download-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 18, 0);
    transition: background 0.35s var(--ease);
}

.download-modal-backdrop.show {
    background: rgba(10, 14, 18, 0.45);
}

.download-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border-radius: 1.6rem 1.6rem 0 0;
    box-shadow: 0 -12px 40px rgba(20, 23, 28, 0.18);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
    overflow: hidden;
    z-index: 1200;
    will-change: transform;
}

.download-modal.show {
    transform: translateY(0);
}

.download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.download-modal-header h3 {
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 0;
}

.download-modal-close {
    background: var(--surface-soft);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.download-modal-close:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.download-modal-body {
    padding: 1.2rem;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0));
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.locked-tip {
    padding: 0.75rem 0.9rem;
    background: var(--warn-soft);
    border-left: 3px solid var(--warn);
    color: #92400e;
    border-radius: 0.7rem;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.download-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.7rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid transparent;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.download-option-btn:hover {
    background: #fff;
    border-color: var(--line);
    color: var(--accent-ink);
    transform: translateY(-2px);
}

.download-option-btn:active {
    transform: scale(0.97);
}

.download-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.65rem;
    border-radius: 9px;
}

.download-option-btn span {
    font-size: 0.82rem;
    font-weight: 650;
}

.download-option-btn.direct-download {
    grid-column: span 3;
    background: var(--accent);
    color: #fff;
    margin-top: 0.25rem;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.download-option-btn.direct-download:hover {
    background: #0d9488;
    color: #fff;
}

.download-option-btn.direct-download i {
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}

.icon-container {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.icon-container i {
    font-size: 1.15rem;
    color: var(--accent);
}

.troll-icon {
    background: rgba(194, 65, 12, 0.1);
}

.troll-icon i {
    color: var(--danger);
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: calc(var(--scroll-position) * -1);
    overscroll-behavior: none;
    touch-action: none;
}

input,
select,
textarea {
    font-size: 16px;
    touch-action: manipulation;
}

/* Responsive */
@media (max-width: 992px) {
    .carousel-img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    :root {
        --page-gutter: 0.8rem;
        --radius-xl: 1.25rem;
        --radius-lg: 1rem;
    }

    .site-top {
        padding-top: 0.9rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand-title {
        max-width: 48vw;
        font-size: 1.15rem;
    }

    .brand-chip {
        padding: 0.35rem 0.7rem;
        font-size: 0.68rem;
    }

    .header-carousel-wrapper {
        margin-top: 0.75rem;
        margin-bottom: 0.9rem;
    }

    .carousel-shell {
        padding: 0.3rem;
    }

    .carousel-img {
        height: 150px;
    }

    .carousel-caption {
        padding: 1rem 0.85rem 1.05rem;
    }

    .carousel-title {
        font-size: 1.05rem;
        margin-bottom: 0.15rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .page-stack {
        gap: 0.8rem;
        padding-bottom: 2.2rem;
    }

    .stats-card {
        padding: 0.75rem 0.85rem;
    }

    .stats-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .stats-icon i {
        font-size: 0.9rem;
    }

    .stats-value {
        font-size: 1.1rem;
    }

    .stats-label {
        font-size: 0.7rem;
    }

    .stats-divider {
        height: 28px;
    }

    .notice-container {
        padding: 0.7rem 0.8rem;
    }

    .notice-content {
        font-size: 0.78rem;
    }

    .quick-buttons-container {
        gap: 0.3rem;
        padding: 0.35rem;
    }

    .quick-button {
        padding: 0.55rem 0.2rem;
    }

    .quick-button-icon img {
        width: 26px;
        height: 26px;
    }

    .quick-button-text {
        font-size: 0.64rem;
    }

    .search-input-wrapper {
        padding: 0.6rem 0.9rem;
    }

    .category-nav {
        border-radius: 1rem;
        padding: 0.3rem;
    }

    .category-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.76rem;
    }

    .app-shell {
        padding: 0.28rem;
    }

    .app-shell:hover {
        transform: none;
        box-shadow: none;
    }

    .app-card {
        padding: 0.8rem;
        gap: 0.65rem;
    }

    .app-icon {
        width: 48px;
        height: 48px;
        border-radius: 0.8rem;
    }

    .app-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }

    .app-meta-line {
        font-size: 0.7rem;
    }

    .app-description {
        font-size: 0.74rem;
        padding: 0.55rem 0.65rem;
        max-height: calc(0.55rem + 0.55rem + 1.45em * 3);
    }

    .btn-download {
        width: 32px;
        height: 32px;
        box-shadow: 0 5px 12px rgba(15, 118, 110, 0.22);
    }

    .download-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-option-btn.direct-download {
        grid-column: span 2;
    }

    .toast-container {
        width: calc(100% - 2rem);
        max-width: 360px;
    }

    #appList.is-empty {
        min-height: 180px;
        padding: 0;
    }

    #appList.is-empty > * {
        max-width: 100%;
    }

    .empty-state {
        padding: 1.75rem 1.1rem;
        border-radius: 1rem;
        width: 100%;
    }

    .empty-state-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 0.7rem;
    }

    .empty-state-icon i {
        font-size: 1.1rem;
    }

    .empty-state h3 {
        font-size: 0.95rem;
    }

    .empty-state p {
        font-size: 0.78rem;
        max-width: 14rem;
    }
}

@media (max-width: 480px) {
    .brand-chip {
        display: none;
    }

    .carousel-img {
        height: 130px;
    }

    .quick-button-text {
        font-size: 0.6rem;
    }

    .stats-card-item {
        gap: 0.55rem;
    }
}

@media (hover: none) {
    .app-shell:hover,
    .quick-button:hover,
    .btn-load-more:hover,
    .download-option-btn:hover,
    .carousel-shell:hover,
    .stats-card:hover,
    .brand-mark:hover .brand-logo,
    .brand-mark:hover .brand-logo--fallback {
        transform: none;
        animation: none;
    }

    .app-shell:hover .app-icon,
    .app-shell:hover .app-card::before,
    .quick-button:hover .quick-button-icon {
        transform: none;
        animation: none;
        opacity: 0;
    }

    .app-col.is-in {
        filter: none;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1180px;
    }
}
