/* ===== 重置 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;
    background: #f5f5f7;
    color: #222;
}

/* 去掉黄色焦点框 */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid rgba(58, 88, 199, 0.4);
    outline-offset: 2px;
}

/* ===== 主题色 ===== */
:root {
    --c-primary: #3a58c7;
    --c-primary-soft: rgba(58, 88, 199, 0.09);
    --c-accent: #d6336c;
    --c-accent-soft: rgba(214, 51, 108, 0.1);
    --c-bg-header: #1c2b4a;
    --c-bg-header-text: #f7f9ff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.09);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --ease-out: cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* ===== 顶栏 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-bg-header);
    color: var(--c-bg-header-text);
}

.header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    padding: 13px 20px;
}

.header__title {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 15px;
    text-transform: uppercase;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== 语言切换 ===== */
.lang-switch {
    position: relative;
}

.lang-switch__btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--c-bg-header-text);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.lang-switch__btn .icon {
    width: 16px;
    height: 16px;
}

.icon--xs {
    width: 12px !important;
    height: 12px !important;
    opacity: 0.5;
}

.lang-switch__btn:hover {
    background: rgba(255, 255, 255, 0.13);
}

.lang-switch__menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    right: 0;
    min-width: 120px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.lang-switch__menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switch__option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s ease;
}

.lang-switch__option:hover {
    background: #f1f5f9;
}

.lang-switch__option.active {
    color: var(--c-primary);
    font-weight: 600;
    background: var(--c-primary-soft);
}

/* ===== 关于按钮 ===== */
.header__about {
    margin: 0;
    padding: 6px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--c-bg-header-text);
    cursor: pointer;
}

.header__about .icon {
    width: 18px;
    height: 18px;
}

.header__about:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* ===== Tab ===== */
.tabs {
    position: relative;
    display: flex;
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tabs__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 8px 9px;
    border: none;
    background: transparent;
    color: rgba(247, 249, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.tabs__item .icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.tabs__item.active {
    color: #fff;
}

.tabs__item.active .icon {
    opacity: 1;
}

.tabs__item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tabs__indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: var(--c-accent);
    border-radius: 999px;
    transition: left 0.25s var(--ease-out), width 0.25s var(--ease-out);
}

/* ===== 容器 ===== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.pane {
    display: none;
    animation: paneEnter 0.22s ease;
}

.pane.active {
    display: block;
}

@keyframes paneEnter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 卡片网格 ===== */
.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

@media (min-width: 540px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 860px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card__media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(58, 88, 199, 0.06), rgba(214, 51, 108, 0.06));
    padding: 14px;
}

.card__media img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.card__share {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    color: var(--c-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.card__share .icon {
    width: 15px;
    height: 15px;
}

.card__share:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.card__header {
    padding: 14px 16px 0;
}

.card__title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    margin: 0 0 2px;
}

.card__subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.card__body {
    padding: 8px 16px 0;
    font-size: 13px;
    color: #334155;
}

.card__actions {
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    padding: 9px 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn--primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(58, 88, 199, 0.22);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(58, 88, 199, 0.28);
    filter: brightness(1.04);
}

.btn--accent {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(214, 51, 108, 0.22);
}

.btn--accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(214, 51, 108, 0.28);
    filter: brightness(1.04);
}

/* ===== 表单 ===== */
.upload-form {
    display: block;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    max-width: 480px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #334155;
    margin: 0 0 6px;
    width: 100%;
}

.form-input {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    padding: 9px 12px;
    font-size: 13px;
    background: #fff;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(58, 88, 199, 0.14);
}

.form-input-file {
    border-style: dashed;
    background: #f8fafc;
    cursor: pointer;
}

.form-input-file::file-selector-button {
    border: none;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 13px;
    padding: 6px 14px;
    margin-right: 8px;
    cursor: pointer;
}

.form-input-file:hover {
    border-color: var(--c-primary);
    background: #fff;
}

/* ===== 空状态 ===== */
.empty-hint {
    text-align: center;
    padding: 64px 16px;
    color: #94a3b8;
}

.empty-hint__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-hint p {
    margin: 0;
    font-size: 14px;
}

/* ===== 图标通用 ===== */
.icon {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* ===== 个人中心增强 ===== */
.user-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
}

.status-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #e9ecef;
    color: #495057;
}
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-approved {
    background: #d4edda;
    color: #155724;
}
.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.review-reason {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dc3545;
}
.review-reason pre {
    margin: 4px 0 0;
    font-size: 13px;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-word;
    color: #495057;
}