:root {
    --ink: #0b1b1f;
    --muted: #4c5a5f;
    --accent: #1f7a8c;
    --accent-dark: #14505b;
    --bg-top: #eaf2f6;
    --bg-mid: #f5f7f9;
    --bg-bottom: #ffffff;
    --card: #ffffff;
    --line: rgba(16, 30, 38, 0.12);
    --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    --font-head: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: radial-gradient(circle at top, var(--bg-top), var(--bg-mid) 40%, var(--bg-bottom) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.pc-container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.pc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.brand {
    display: flex;
    flex-direction: column;
    font-family: var(--font-head);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.8;
}

.brand-mark {
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--accent-dark);
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    font-size: 14px;
    color: var(--muted);
    position: relative;
    padding: 4px 2px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-dark);
}

.nav-link.active {
    color: var(--accent-dark);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 122, 140, 0.12);
    color: var(--accent-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31, 122, 140, 0.2);
}

.btn.ghost {
    background: transparent;
    color: var(--accent-dark);
    border-color: rgba(31, 122, 140, 0.3);
    box-shadow: none;
}

.hero {
    padding: 70px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 122, 140, 0.14);
    color: var(--accent-dark);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 44px);
    margin: 16px 0 10px;
}

.hero-sub {
    color: var(--muted);
    margin: 0 0 18px;
}

.hero-card {
    background: var(--card);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(16, 30, 38, 0.08);
}

.hero-card-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-card-meta {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 40px 0 60px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 28px;
    margin: 0 0 6px;
}

.section-sub {
    color: var(--muted);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.plugin-card {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(16, 30, 38, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plugin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(16, 30, 38, 0.12);
}

.card-cover {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.card-cover.placeholder {
    background: linear-gradient(135deg, rgba(31, 122, 140, 0.25), rgba(31, 122, 140, 0.05));
}

.card-body {
    padding: 16px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.card-sub {
    font-size: 13px;
    color: var(--muted);
    min-height: 36px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}

.card-meta .price {
    color: var(--accent-dark);
    font-weight: 600;
}

.empty-card {
    padding: 26px;
    border-radius: 14px;
    border: 1px dashed var(--line);
    color: var(--muted);
    text-align: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.detail-cover {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.detail-cover.placeholder {
    background: linear-gradient(135deg, rgba(31, 122, 140, 0.25), rgba(31, 122, 140, 0.05));
}

.detail-title {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-size: 30px;
}

.detail-summary {
    color: var(--muted);
    margin-bottom: 16px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.detail-section {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 18px;
}

.detail-section h3 {
    margin-top: 0;
}

.detail-text {
    color: var(--muted);
    line-height: 1.8;
}

.detail-side {
    display: grid;
    gap: 16px;
}

.side-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
}

.side-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.side-text {
    color: var(--muted);
}

.version-list {
    display: grid;
    gap: 12px;
}

.version-item {
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
}

.version-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.version-number {
    font-weight: 600;
}

.version-time {
    font-size: 12px;
    color: var(--muted);
}

.version-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.alert {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert.error {
    background: rgba(229, 62, 62, 0.1);
    color: #9b2c2c;
}

.alert.success {
    background: rgba(56, 161, 105, 0.12);
    color: #276749;
}

.auth-section {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(420px, 90vw);
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 28px;
    box-shadow: 0 18px 40px rgba(16, 30, 38, 0.08);
}

.auth-card h2 {
    margin-top: 0;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 14px;
}

.auth-links {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.recharge-card {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 20px;
}

.recharge-info {
    background: linear-gradient(135deg, rgba(31, 122, 140, 0.08), rgba(31, 122, 140, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(31, 122, 140, 0.2);
    padding: 20px;
    color: var(--muted);
}

.recharge-info ul {
    padding-left: 18px;
}

.table-card {
    margin-top: 24px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 18px;
}

.table-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.plain-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.plain-table th,
.plain-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
}

.profile-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
}

.profile-title {
    font-size: 20px;
    font-weight: 600;
}

.profile-sub {
    color: var(--muted);
    margin-top: 6px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--card);
    border-radius: 16px;
    border: 1px dashed var(--line);
}

.pc-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0 40px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-note {
    font-size: 12px;
}
.card-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-category {
    margin: 8px 0 16px;
}

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }
}
