* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fb;
    color: #0f172a;
}

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

img {
    max-width: 100%;
    display: block;
}

.site-body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    min-height: 100vh;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    transition: all 0.2s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-wrap,
.footer-wrap,
.hero-grid,
.section-head,
.group-meta,
.card-actions,
.hero-actions,
.hero-metrics,
.detail-meta {
    display: flex;
    gap: 16px;
}

.header-wrap,
.footer-wrap,
.section-head {
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    opacity: 0.7;
    font-size: 12px;
    margin-top: 4px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #334155;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.76);
}

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

.hero-grid {
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.group-card,
.category-card,
.detail-card,
.side-panel,
.list-card,
.public-form,
.panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    border-radius: 28px;
}

.hero-copy {
    flex: 1.3;
    padding: 40px;
}

.hero-panel {
    flex: 0.7;
    padding: 32px;
    background: linear-gradient(135deg, var(--secondary-color), #1e293b);
    color: #fff;
}

.eyebrow,
.hero-badge,
.group-category,
.detail-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.hero-copy h1,
.page-top h1,
.detail-card h1 {
    margin: 20px 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
}

.hero-copy p,
.section-head p,
.detail-summary,
.detail-content,
.group-card p,
.category-card p,
.list-card p {
    color: #475569;
    line-height: 1.75;
}

.hero-notice {
    margin-top: 20px;
    display: inline-flex;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
}

.hero-metrics {
    margin-top: 32px;
    flex-direction: column;
}

.hero-metrics div {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics strong {
    display: block;
    font-size: 36px;
    margin-bottom: 4px;
}

.section {
    padding: 24px 0 34px;
}

.section.soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.62));
}

.section-head h2,
.section-head h1 {
    margin: 0;
    font-size: 30px;
}

.section-head.compact h2 {
    font-size: 22px;
}

.category-grid,
.group-grid {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.group-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-card,
.group-card {
    overflow: hidden;
}

.category-card {
    padding: 24px;
}

.category-icon {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.09);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
}

.group-cover {
    height: 190px;
    overflow: hidden;
}

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

.group-body {
    padding: 24px;
}

.group-body h3 {
    margin: 14px 0 12px;
    font-size: 22px;
}

.group-meta,
.card-actions,
.detail-meta,
.tag-list,
.pagination,
.footer-actions {
    flex-wrap: wrap;
}

.group-meta,
.detail-meta {
    color: #64748b;
    font-size: 14px;
}

.tag-list {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.tag-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.button.secondary {
    background: var(--secondary-color);
    color: #fff;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.26);
    color: #0f172a;
}

.button.danger {
    background: #ef4444;
    color: #fff;
}

.wide {
    width: 100%;
}

.page-top {
    padding-top: 30px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    gap: 24px;
}

.detail-card,
.side-panel,
.form-section .public-form {
    padding: 30px;
}

.detail-cover {
    margin: 26px 0;
    overflow: hidden;
    border-radius: 22px;
}

.detail-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.group-list {
    display: grid;
    gap: 16px;
}

.list-card {
    padding: 18px;
}

.form-section {
    padding-bottom: 40px;
}

.stack-form {
    display: grid;
    gap: 18px;
}

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

label {
    display: grid;
    gap: 8px;
}

label span {
    font-size: 14px;
    color: #334155;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    min-height: 48px;
    padding: 12px 16px;
    font: inherit;
    color: #0f172a;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 16px 0;
}

.alert.success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.search-bar {
    display: flex;
    gap: 14px;
    margin: 24px 0;
}

.search-bar input {
    flex: 1;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 26px;
}

.pagination a {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
}

.pagination a.active {
    background: var(--primary-color);
    color: #fff;
}

.site-footer {
    padding: 38px 0 56px;
}

.empty-home-card {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    border-radius: 28px;
}

.empty-home-card h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

.empty-home-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.footer-wrap {
    padding: 28px 32px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
}

@media (max-width: 900px) {
    .hero-grid,
    .detail-layout,
    .form-grid,
    .search-bar,
    .header-wrap,
    .footer-wrap,
    .section-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero-copy,
    .hero-panel,
    .detail-card,
    .side-panel,
    .public-form {
        padding: 24px;
    }
}
