* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #222;
    background: #fff7fa;
}

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

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

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

.main {
    padding: 20px 0 80px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #ffe1ea;
}

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

.logo {
    font-size: 22px;
    font-weight: 900;
    color: #ff2f6d;
    white-space: nowrap;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.top-nav a {
    font-size: 15px;
    color: #555;
}

.top-nav a:hover {
    color: #ff2f6d;
}

.header-user {
    font-size: 14px;
    color: #ff2f6d;
    font-weight: 700;
}

.site-footer {
    color: #999;
    text-align: center;
    padding: 30px 0 90px;
    font-size: 13px;
}

.page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 18px;
}

.page-title h1 {
    margin: 0;
    font-size: 28px;
}

.page-title p {
    margin: 6px 0 0;
    color: #888;
}

.section {
    margin: 26px 0;
}

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

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

.more {
    color: #ff2f6d;
    font-size: 14px;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

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

.card {
    background: #fff;
    border: 1px solid #ffe1ea;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(255, 47, 109, .08);
}

.card-body {
    padding: 14px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #ff2f6d;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.btn.secondary {
    background: #fff;
    color: #ff2f6d;
    border: 1px solid #ffb8cc;
}

.btn.block {
    width: 100%;
}

.form {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ffe1ea;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(255, 47, 109, .08);
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.input,
.textarea,
.select {
    width: 100%;
    border: 1px solid #ffd3df;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    outline: none;
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: #ff2f6d;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #fff0f4;
    color: #d81b54;
}

.success {
    background: #eefbf2;
    color: #17833d;
}

.empty {
    padding: 42px 16px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ffd3df;
    border-radius: 18px;
    color: #999;
}

.badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: #fff0f4;
    color: #ff2f6d;
}

.meta {
    color: #999;
    font-size: 13px;
}

.detail {
    background: #fff;
    border: 1px solid #ffe1ea;
    border-radius: 20px;
    padding: 20px;
    line-height: 1.85;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ffe1ea;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid #fff0f4;
    text-align: left;
    font-size: 14px;
}

.table th {
    color: #777;
    background: #fff8fa;
}

.mobile-tabbar {
    display: none;
}

@media (max-width: 768px) {
    .top-nav {
        display: none;
    }

    .header-inner {
        height: 56px;
    }

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

    .page-title h1 {
        font-size: 23px;
    }

    .mobile-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: 58px;
        background: rgba(255,255,255,.96);
        border-top: 1px solid #ffe1ea;
        backdrop-filter: blur(12px);
    }

    .mobile-tabbar a {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 13px;
        color: #666;
    }

    .site-footer {
        padding-bottom: 80px;
    }
}
