:root {
    --bg: #f5f6fa;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #5b21b6;
    --brand-2: #7c3aed;
    --brand-soft: #f1ebff;
    --accent: #f97316;
    --success: #059669;
    --radius: 18px;
    --shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
    --shadow-hover: 0 18px 44px rgba(76, 29, 149, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, #4c1d95, #7c3aed 60%, #a855f7);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 17px;
    letter-spacing: 0.2px;
}

.brand-text small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
    letter-spacing: 1.5px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.site-nav > a {
    padding: 8px 14px;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a.is-active {
    color: var(--brand);
    background: var(--brand-soft);
}

.nav-extra {
    display: inline-flex;
}

.nav-extra .mdl-navigation__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-extra .mdl-navigation__link:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid #ddd6fe;
    border-radius: 11px;
    color: var(--brand);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header-link:hover {
    background: var(--brand-soft);
    border-color: #c4b5fd;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 84px;
    background: linear-gradient(125deg, #1e1b4b 0%, #3b0764 42%, #6d28d9 78%, #8b5cf6 100%);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 74%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}

.hero-glow-a {
    width: 420px;
    height: 420px;
    right: -80px;
    top: -180px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.55), transparent 68%);
}

.hero-glow-b {
    width: 360px;
    height: 360px;
    left: -120px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    letter-spacing: 0.4px;
    color: #ede9fe;
}

.hero h1 {
    margin-top: 22px;
    font-size: 50px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero h1 span {
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 620px;
    margin: 18px auto 0;
    font-size: 16px;
    color: rgba(237, 233, 254, 0.82);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.btn-hero,
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-hero {
    background: #fff;
    color: #4c1d95;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.btn-hero-ghost {
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-stats {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin-top: 44px;
    padding: 16px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-stat {
    min-width: 128px;
    padding: 0 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat strong {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}

.hero-stat span {
    font-size: 12px;
    color: rgba(237, 233, 254, 0.72);
    letter-spacing: 0.5px;
}

/* ============ Store section ============ */
.store-section {
    padding: 66px 0 30px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.section-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: var(--brand-2);
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.section-title p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.store-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip em {
    font-style: normal;
    color: #9ca3af;
    font-size: 11px;
}

.filter-chip:hover {
    border-color: #c4b5fd;
    color: var(--brand);
}

.filter-chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.filter-chip.is-active em {
    color: rgba(255, 255, 255, 0.75);
}

.store-search {
    position: relative;
    display: block;
    width: 240px;
}

.store-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}

.store-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.store-search input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* ============ App grid ============ */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #ddd6fe;
}

.app-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 148px;
    overflow: hidden;
}

.cover-0 { background: linear-gradient(135deg, #4c1d95, #7c3aed 55%, #a78bfa); }
.cover-1 { background: linear-gradient(135deg, #0f766e, #0d9488 55%, #5eead4); }
.cover-2 { background: linear-gradient(135deg, #9a3412, #ea580c 55%, #fdba74); }
.cover-3 { background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #93c5fd); }
.cover-4 { background: linear-gradient(135deg, #831843, #db2777 55%, #f9a8d4); }
.cover-5 { background: linear-gradient(135deg, #365314, #65a30d 55%, #bef264); }

.cover-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.65;
}

.app-icon {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    border-radius: 17px;
    object-fit: cover;
    background: #fff;
    padding: 5px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.app-icon-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.96);
    color: #5b21b6;
    font-size: 30px;
    font-weight: 800;
}

.badge {
    position: absolute;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-free {
    left: 12px;
    top: 12px;
    color: #065f46;
    background: #d1fae5;
}

.badge-version {
    right: 12px;
    top: 12px;
    color: #fff;
    background: rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(6px);
}

.app-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 19px 19px;
}

.app-body h3 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.app-body h3 a:hover {
    color: var(--brand);
}

.app-desc {
    margin-top: 7px;
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
    min-height: 24px;
}

.app-tags span {
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
}

.app-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
}

.app-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.app-price small {
    color: #9ca3af;
    font-size: 11px;
}

.app-price strong {
    color: var(--accent);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.price-free {
    color: var(--success) !important;
    font-size: 18px !important;
}

.price-consult {
    color: #9ca3af !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-card:hover {
    background: var(--brand);
    color: #fff;
}

.btn-card i {
    font-size: 11px;
}

/* ============ Empty ============ */
.empty-state {
    padding: 76px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ddd6fe;
    border-radius: var(--radius);
}

.empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-2);
    font-size: 30px;
}

.empty-state h3 {
    font-size: 20px;
}

.empty-state p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.empty-state .btn {
    margin-top: 20px;
}

/* ============ Features ============ */
.features {
    padding: 46px 0 64px;
}

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

.feature-item {
    padding: 24px 22px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 17px;
}

.feature-item h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.feature-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

/* ============ Detail page ============ */
.detail-page {
    padding-bottom: 60px;
}

.detail-top {
    background: linear-gradient(120deg, #f5f3ff, #ede9fe 55%, #e0e7ff);
    border-bottom: 1px solid #ede9fe;
    padding: 18px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7c3aed;
    font-size: 13px;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb i {
    font-size: 9px;
    color: #c4b5fd;
}

.breadcrumb span {
    color: #4b5563;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    margin-top: 28px;
}

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

.detail-card {
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.detail-app-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-icon {
    width: 86px;
    height: 86px;
    border-radius: 21px;
    object-fit: cover;
    background: #f3f4f6;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    flex-shrink: 0;
}

.detail-icon-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #4c1d95, #7c3aed 60%, #a855f7);
}

.detail-app-info {
    flex: 1;
    min-width: 0;
}

.detail-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-title-row h1 {
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.version-pill {
    padding: 3px 9px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.version-free {
    background: #d1fae5;
    color: #065f46;
}

.detail-sub {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.detail-app-info .app-tags {
    margin-top: 12px;
}

.detail-app-price {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 110px;
}

.detail-app-price small {
    color: #9ca3af;
    font-size: 11px;
}

.detail-app-price strong {
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

.notice-box {
    display: flex;
    gap: 13px;
    margin-top: 22px;
    padding: 15px 17px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    line-height: 1.7;
}

.notice-box > i {
    margin-top: 3px;
    color: #f59e0b;
    font-size: 16px;
}

.notice-box strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f1f5;
}

.card-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
}

.card-heading h2 i {
    color: var(--brand-2);
    font-size: 15px;
}

.card-heading > span {
    color: #9ca3af;
    font-size: 12px;
}

.package-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.package-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.package-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 10px 26px rgba(109, 40, 217, 0.1);
    transform: translateY(-1px);
}

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

.package-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.pill-hot {
    padding: 2px 7px;
    border-radius: 5px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 10px;
    font-weight: 700;
}

.package-desc {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 9px;
    color: #6b7280;
    font-size: 12px;
}

.package-meta i {
    color: var(--brand-2);
    margin-right: 4px;
}

.package-side {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.package-price {
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    min-width: 74px;
    text-align: right;
}

.package-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--muted);
    background: #fafafa;
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.package-empty i {
    font-size: 26px;
    color: #c4b5fd;
    margin-bottom: 8px;
}

.rich-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.85;
    word-break: break-word;
}

.rich-text p {
    margin-bottom: 10px;
}

.rich-text img {
    border-radius: 10px;
    margin: 8px 0;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin: 16px 0 8px;
    line-height: 1.4;
}

.rich-text ul,
.rich-text ol {
    padding-left: 22px;
    margin-bottom: 10px;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.rich-text th,
.rich-text td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    font-size: 13px;
}

.update-log {
    color: #4b5563;
}

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

/* ============ Sidebar ============ */
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-card {
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.side-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.info-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.info-list dt {
    color: #9ca3af;
}

.info-list dd {
    color: #374151;
    font-weight: 500;
    text-align: right;
}

.side-steps ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-steps li {
    display: flex;
    gap: 11px;
}

.side-steps li > span {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
}

.side-steps strong {
    display: block;
    font-size: 13px;
    line-height: 1.5;
}

.side-steps p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.side-support p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.support-line {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px dashed #eef0f4;
    color: #4b5563;
    font-size: 13px;
}

.support-line i {
    color: var(--brand-2);
    width: 16px;
}

.support-line:hover {
    color: var(--brand);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6d28d9, #7c3aed 60%, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(109, 40, 217, 0.36);
}

.btn-outline {
    border: 1px solid #ddd6fe;
    background: #fff;
    color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand-soft);
}

.btn-block {
    width: 100%;
    margin-top: 16px;
}

/* ============ Footer ============ */
.site-footer {
    margin-top: 20px;
    background: #111827;
    color: #9ca3af;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 46px;
    padding-top: 46px;
    padding-bottom: 40px;
}

.footer-brand .brand-text strong {
    color: #fff;
}

.footer-brand .brand-text small {
    color: #6b7280;
}

.footer-about p {
    margin-top: 16px;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.85;
    color: #8b94a3;
}

.footer-col h4 {
    color: #e5e7eb;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-col a,
.footer-col p {
    display: block;
    color: #8b94a3;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #c4b5fd;
}

.footer-col i {
    width: 18px;
    color: #6d28d9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 17px;
    padding-bottom: 17px;
    font-size: 12px;
    color: #6b7280;
}

.footer-bottom-inner a:hover {
    color: #c4b5fd;
}

/* ============ Floating support ============ */
.floating-support {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.38);
    transition: all 0.2s ease;
}

.floating-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(109, 40, 217, 0.48);
}

.floating-support i {
    font-size: 17px;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
    .app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-inner {
        gap: 16px;
    }

    .site-nav > a {
        padding: 8px 10px;
    }

    .nav-extra .mdl-navigation__link {
        padding: 8px 10px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        height: 66px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
    }

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

    .site-nav > a,
    .nav-extra .mdl-navigation__link {
        padding: 11px 12px;
    }

    .nav-extra {
        display: block;
    }

    .header-link {
        display: none;
    }

    .hero {
        padding: 56px 0 64px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .section-head {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .store-toolbar {
        align-items: stretch;
    }

    .filter-chips {
        justify-content: flex-start;
    }

    .store-search {
        width: 100%;
    }

    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .hero {
        padding: 44px 0 52px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero,
    .btn-hero-ghost {
        justify-content: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 14px 0;
        padding: 16px 4px;
    }

    .hero-stat {
        min-width: 0;
        padding: 0 10px;
        border-right: none;
    }

    .hero-stat:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 25px;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-app-head {
        flex-wrap: wrap;
    }

    .detail-icon {
        width: 68px;
        height: 68px;
        border-radius: 17px;
    }

    .detail-title-row h1 {
        font-size: 22px;
    }

    .detail-app-price {
        align-items: flex-start;
        margin-left: 88px;
        margin-top: -8px;
    }

    .package-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .package-side {
        justify-content: space-between;
    }

    .package-price {
        text-align: left;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .floating-support {
        right: 16px;
        bottom: 18px;
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .floating-support span {
        display: none;
    }
}
