:root {
    --primary: #1890ff;
    --primary-deep: #0958d9;
    --accent: #6954f0;
    --dark: #141b2d;
    --text: #2c3e50;
    --muted: #8a94a6;
    --bg: #f6f8fa;
    --border: #e6eaf0;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 27, 45, 0.96);
    color: #fff;
    backdrop-filter: blur(10px);
}

.header-inner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand em {
    font-style: normal;
    color: #70b8ff;
}

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

.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
}

.nav-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 7px 18px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.nav-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
}

.site-main {
    min-height: calc(100vh - 140px);
}

.hero {
    background: linear-gradient(120deg, #101828 0%, #1d2c47 55%, #123b5e 100%);
    color: #fff;
    padding: 72px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 144, 255, 0.45), transparent 65%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: 0;
}

.hero p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 11px 24px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

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

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

.section {
    padding: 46px 0;
}

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

.section-head h2 {
    font-size: 26px;
    margin: 0 0 6px;
}

.section-head p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.section-link {
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

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

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 27, 45, 0.12);
}

.card-cover {
    height: 160px;
    background: linear-gradient(135deg, #2a4b7c, #6954f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
}

.card-body {
    padding: 14px;
}

.card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.price {
    color: #e5484d;
    font-weight: 700;
}

.notice-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.notice-bar .label {
    background: #fff7e6;
    color: #d46b08;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.notice-bar span {
    color: var(--muted);
    font-size: 14px;
}

.toolbar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar input,
.toolbar select {
    height: 38px;
    border: 1px solid #d9dee7;
    border-radius: 6px;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    background: #fff;
}

.toolbar input {
    width: 240px;
}

.detail-hero {
    background: linear-gradient(120deg, #1d2c47, #33445f);
    color: #fff;
    padding: 44px 0;
}

.detail-title {
    font-size: 30px;
    margin: 0 0 12px;
}

.detail-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-top: -24px;
    position: relative;
    z-index: 3;
}

.article-panel {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    border: 1px solid var(--border);
}

.side-panel {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    border: 1px solid var(--border);
    height: fit-content;
}

.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 34px;
}

.auth-card h2 {
    margin: 0 0 8px;
}

.auth-card .tip {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 22px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #555f6e;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 42px;
    border: 1px solid #d9dee7;
    border-radius: 6px;
    padding: 0 12px;
    outline: none;
}

.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
}

.form-btn {
    width: 100%;
    height: 42px;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.auth-switch {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 18px;
}

.auth-switch a {
    color: var(--primary);
    cursor: pointer;
}

.user-top {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

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

.user-info h3 {
    margin: 0 0 6px;
}

.user-info p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.68);
    padding: 34px 0;
    text-align: center;
}

.footer-meta {
    margin-top: 10px;
    font-size: 12px;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 0;
}

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

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

@media (max-width: 640px) {
    .hero h1 {
        font-size: 30px;
    }

    .site-nav a {
        display: none;
    }

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

    .section {
        padding: 34px 0;
    }

    .toolbar input {
        width: 100%;
    }
}
