/* shaoxingqiao.com 会员系统样式（兼容原 style.css） */
:root {
    --paper: #f4e9d4;
    --ink: #2a1810;
    --gold: #b8860b;
    --crimson: #8b1a1a;
    --jade: #2d5a3d;
    --line: #c9b88a;
}

body { background: var(--paper); color: var(--ink); font-family: "Noto Serif SC", "Source Han Serif CN", "STSong", "宋体", serif; }

.auth-wrap {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: #fff8e7;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(40,20,10,0.08);
    padding: 2.5rem 2rem;
    max-width: 440px; width: 100%;
}
.auth-card h1 {
    text-align: center; font-size: 1.8rem; margin: 0 0 0.5rem;
    color: var(--ink); letter-spacing: 0.1em;
}
.auth-card .subtitle {
    text-align: center; color: #8a7a5a; font-size: 0.9rem; margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; font-size: 0.9rem; color: #5a4a2a; margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.7rem 0.9rem;
    border: 1px solid var(--line); border-radius: 4px;
    background: #fffdf6; font-size: 1rem;
    transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.btn-primary {
    width: 100%; padding: 0.85rem;
    background: linear-gradient(135deg, var(--crimson), #a82020);
    color: #fff; border: none; border-radius: 4px;
    font-size: 1.05rem; font-weight: 500; letter-spacing: 0.1em;
    cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: linear-gradient(135deg, #a82020, var(--crimson)); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
    display: inline-block; padding: 0.5rem 1.2rem;
    background: transparent; color: var(--ink);
    border: 1px solid var(--line); border-radius: 4px;
    text-decoration: none; font-size: 0.9rem; cursor: pointer;
}
.btn-secondary:hover { background: var(--paper); }

.auth-footer {
    text-align: center; margin-top: 1.5rem;
    font-size: 0.9rem; color: #5a4a2a;
}
.auth-footer a { color: var(--crimson); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.alert { padding: 0.8rem 1rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fce4e4; color: var(--crimson); border: 1px solid #f5b8b8; }
.alert-success { background: #e0f4e8; color: var(--jade); border: 1px solid #b8e0c5; }
.alert-info { background: #e8eef9; color: #1a4a8a; border: 1px solid #b8cce8; }

/* user_center 表格 */
.user-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff8e7; padding: 1.2rem; border-radius: 6px; text-align: center; border: 1px solid var(--line); }
.stat-card .num { font-size: 2rem; font-weight: 700; color: var(--crimson); }
.stat-card .label { font-size: 0.85rem; color: #8a7a5a; margin-top: 0.3rem; }

.submission-list { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.submission-item { padding: 1rem 1.2rem; border-bottom: 1px solid #f0e5cc; display: flex; align-items: center; gap: 1rem; }
.submission-item:last-child { border-bottom: none; }
.submission-item .meta { flex: 1; }
.submission-item .meta h4 { margin: 0 0 0.3rem; font-size: 1rem; }
.submission-item .meta small { color: #8a7a5a; }
.status-badge { padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.status-pending { background: #fff4d4; color: #8a6a10; }
.status-approved { background: #d4f0e0; color: var(--jade); }
.status-rejected { background: #f4d4d4; color: var(--crimson); }

/* admin 表格 */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid #f0e5cc; }
.admin-table th { background: var(--paper); font-weight: 600; }
.admin-table tr:hover { background: #fffaef; }
.action-btn { padding: 0.3rem 0.8rem; margin: 0 0.2rem; border: none; border-radius: 3px; cursor: pointer; font-size: 0.85rem; }
.btn-approve { background: var(--jade); color: #fff; }
.btn-reject { background: var(--crimson); color: #fff; }
.btn-view { background: var(--gold); color: #fff; }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 返回首页链接 */
.user-bar { gap: 1rem; }
.user-bar-home { flex-shrink: 0; }
.user-bar-home a { color: #fff !important; opacity: 0.85; }
.user-bar-home a:hover { opacity: 1; color: #d4b876 !important; }

/* 顶部用户条 */
.user-bar {
    background: #2a1810; color: #f4e9d4;
    padding: 0.5rem 1rem; font-size: 0.9rem;
    display: flex; justify-content: space-between; align-items: center;
}
.user-bar a { color: #d4b876; text-decoration: none; }
.user-bar a:hover { color: #fff; }

/* 投稿引导卡（嵌入桥详情页） */
.contribute-box {
    background: linear-gradient(135deg, #fff8e7, #fdebd0);
    border: 1px dashed var(--gold); border-radius: 6px;
    padding: 1.5rem; margin: 2rem 0; text-align: center;
}
.contribute-box h3 { color: var(--crimson); margin: 0 0 0.5rem; }
.contribute-box p { color: #5a4a2a; font-size: 0.9rem; margin: 0 0 1rem; }
.contribute-box .btn-primary { width: auto; padding: 0.6rem 1.5rem; }

/* 用户故事区（admin 审核后注入） */
.user-story {
    background: #fffdf6; border-left: 4px solid var(--gold);
    padding: 1.2rem 1.5rem; margin: 1.5rem 0; border-radius: 0 6px 6px 0;
}
.user-story h4 { margin: 0 0 0.4rem; color: var(--crimson); }
.user-story .story-meta { color: #8a7a5a; font-size: 0.85rem; margin: 0 0 0.8rem; }
.user-story .story-content { line-height: 1.8; }

/* Swiper 注入样式 */
.user-stories-swiper { margin: 1.5rem 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.user-stories-swiper .swiper-slide img { width: 100%; height: 400px; object-fit: cover; display: block; }
.user-stories-swiper .slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 1.5rem 1rem 0.8rem; font-size: 0.9rem; }

@media (max-width: 768px) {
    .auth-card { padding: 1.5rem 1.2rem; }
    .user-stories-swiper .swiper-slide img { height: 240px; }
}
