/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e6b800;
    --primary-dark: #cc9a00;
    --orange: #DA4912;
    --orange-light: #e8772e;
    --teal: #008b78;
    --teal-light: #1a8a78;
    --bg: #e8e0d4;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f5f0;
    --text: #1a1816;
    --text-secondary: #1a1816;
    --border: #dcd3c5;
    --card-bg: #ffffff;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --nav-height: 65px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ==================== Fixed Top Area ==================== */
.fixed-top-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.fixed-top-area::-webkit-scrollbar { display: none; }

/* ==================== Scrollable Content ==================== */
.scrollable-content {
    padding-top: 250px; /* Fallback, JS auto-adjusts on load */
}

/* ==================== Homepage Header ==================== */
.home-header {
    background: var(--orange);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 101;
}

.home-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-logo {
    font-size: 18px;
}

.home-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.home-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-chances {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.home-chances strong {
    color: #fff;
    font-size: 15px;
}

.home-ad-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.home-ad-btn:active {
    background: rgba(255,255,255,0.35);
}

.home-admin-link {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
}

.home-login-btn {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    background: rgba(255,255,255,0.15);
}

.home-reg-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #DA4912;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ==================== Announcement Bar ==================== */
.announcement-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin: 4px 10px;
    background: #fceee8;
    border: 1px solid var(--orange);
    border-radius: 6px;
}

.announcement-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.announcement-scroll { flex: 1; }
.announcement-item {
    display: block;
    font-size: 13px;
    color: #8b4513;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== Major Category Tabs ==================== */
.major-tabs {
    display: flex;
    background: #ffffff;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    margin: 4px 10px;
    overflow: hidden;
}
.major-tab {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1816;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border-right: 1px solid #e0d8cc;
}
.major-tab:last-child { border-right: none; }
.major-tab.active { color: #fff; background: var(--orange); font-weight: 600; }

/* ==================== 本数筛选 (th-filter) ==================== */
.th-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    background: #faf8f5;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    overflow-x: auto;
    scrollbar-width: none;
}
.th-filter::-webkit-scrollbar { display: none; }
.th-filter-label { font-size: 12px; color: #1a1816; white-space: nowrap; flex-shrink: 0; }
.th-pill {
    padding: 3px 10px; border-radius: 20px; font-size: 12px;
    background: #e8e2d8; color: #1a1816;
    text-decoration: none; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.th-pill.active { background: var(--orange); color: #fff; font-weight: 600; }

/* ==================== Sort Bar ==================== */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    background: #faf8f5;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    overflow-x: auto;
    scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }

.search-bar {
    padding: 6px 16px;
    background: #faf8f5;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sort-label { font-size: 13px; color: #1a1816; white-space: nowrap; flex-shrink: 0; }
.sort-pill {
    padding: 3px 10px; border-radius: 20px; font-size: 13px;
    background: #e8e2d8; color: #1a1816;
    text-decoration: none; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
    cursor: pointer;
}
.sort-pill.active { background: var(--orange); color: #fff; font-weight: 600; }
.sort-arrow { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; margin-left: 4px; vertical-align: middle; gap:0; }
.sort-up, .sort-down { font-size: 8px; color: #c0b8aa; line-height: 1; }
.sort-up.on, .sort-down.on { color: var(--orange); }

/* ==================== Feed Cards ==================== */
.feed-list {
    padding: 8px 12px 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.feed-info {
    padding: 8px 14px 6px;
}

.feed-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    max-width: 100%;
}

.feed-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.feed-tag {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e8e2d8;
    color: #787166;
    white-space: nowrap;
}

.feed-tag.feed-th { background: rgba(218,73,18,0.12); color: var(--orange); }
.feed-tag.feed-cat { background: rgba(230,184,0,0.1); color: var(--primary); }
.feed-time-tag { background: #e8e2d8 !important; color: #a09688 !important; font-size: 11px !important; }

.feed-desc {
    font-size: 12px;
    color: #9a9082;
    line-height: 1.3;
    margin: 2px 0 2px;
}

.feed-img {
    width: 100%;
    aspect-ratio: 19 / 9;
    background: #ddd6c8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

/* Carousel */
.img-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s;
}

.dot.active {
    background: var(--orange);
    width: 20px;
    border-radius: 4px;
}

/* 图片右下角覆盖统计 */
.feed-img-stats {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.fis-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.8);
}

.fis-like { border-left: 3px solid #ff4757; }
.fis-copy { border-left: 3px solid var(--orange); }
.fis-item b { font-weight: 700; color: #fff; font-size: 13px; }

.feed-actions {
    display: flex;
    gap: 0;
    border-top: 1px solid #e0d8cc;
}

.feed-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: #787166;
    font-size: 13px;
}
.feed-btn .heart { font-size: 16px; }
.feed-btn.liked { color: #ff4757; }
.feed-btn.liked .heart { color: #ff4757; }
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.feed-btn:active { background: #e8e2d8; }
.feed-btn + .feed-btn { border-left: 1px solid #e0d8cc; }
.feed-copy { color: var(--orange); font-weight: 500; }

/* ==================== Pagination ==================== */
.home-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px 80px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-info { color: var(--text-secondary); font-size: 13px; }

.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #dcd3c5;
    margin: 12px;
}
.profile-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(218,73,18,0.3);
}
.profile-info {
    min-width: 0;
    flex: 1;
}
.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.profile-id {
    font-size: 12px;
    color: #1a1816;
}
.jump-input {
    width: 50px;
    padding: 4px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.jump-input:focus { border-color: var(--orange); }
.jump-input::-webkit-inner-spin-button,
.jump-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.jump-input[type="number"] { -moz-appearance: textfield; }

.feed-report-text {
    color: #1a1816 !important;
    font-size: 12px !important;
    flex: 0.7 !important;
}
.feed-report-text:hover { color: #ff4757 !important; background: rgba(255,71,87,0.06) !important; }
.feed-card { position: relative; }

/* 看大图按钮 */
.feed-img-zoomin {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0,0,0,0.65);
    color: #fff;
    cursor: pointer;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
    white-space: nowrap;
    letter-spacing: 1px;
}
.feed-img-zoomin:hover { background: rgba(0,0,0,0.85); color: #fff; }

.jump-btn {
    padding: 4px 10px;
    background: var(--orange);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 16px; }
.close-btn { background: none; border: none; color: var(--text-secondary); font-size: 18px; cursor: pointer; padding: 4px; }
.modal-body { padding: 16px; }
.modal-body p { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }

/* Modal carousel */
.modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s;
}
.modal-dot.active { background: var(--orange); width: 20px; border-radius: 4px; }

/* ==================== Floating Upload Button ==================== */
.fab-upload {
    position: fixed;
    right: 18px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(218, 73, 18, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fab-upload:active { transform: scale(0.92); }
.fab-icon { font-size: 28px; font-weight: 300; color: #fff; line-height: 1; }

/* ==================== Bottom Navigation ==================== */
.home-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid #e0d8cc;
    border-top: 1px solid var(--border);
}

.bottom-nav-inner {
    display: flex;
    height: 60px;
    align-items: center;
}

.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #a09688;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
    position: relative;
}

.bnav-item.active { color: #2d2a24; }
.bnav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--orange);
    border-radius: 0 0 3px 3px;
}

.bnav-icon-wrap { font-size: 22px; line-height: 1; }
.bnav-label { font-size: 13px; }

/* ==================== Upload Page ==================== */
.upload-container, .feedback-container {
    padding: 16px;
    padding-bottom: calc(var(--nav-height) + 20px);
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.required { color: var(--danger); }

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Upload Area */
.upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-area:hover { border-color: var(--primary); background: rgba(230, 184, 0, 0.05); }

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder { pointer-events: none; }
.upload-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.upload-placeholder p { color: var(--text); font-size: 15px; }
.upload-hint { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { color: var(--text); font-size: 15px; }
.empty-sub { color: var(--text-secondary); font-size: 13px; margin-top: 6px; }

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    text-align: center;
    max-width: 80vw;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #1a1a1a; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

/* ==================== Step Label ==================== */
.step-label { display:flex; align-items:center; gap:6px; font-size:14px; }
.step-num { display:inline-flex; width:20px; height:20px; border-radius:50%; background:var(--orange); color:#fff; font-size:11px; font-weight:700; align-items:center; justify-content:center; }

/* ==================== Type Cards ==================== */
.type-cards { display:flex; gap:10px; }
.type-card {
    flex:1; display:flex; flex-direction:column; align-items:center; gap:6px;
    padding:16px 10px; border-radius:12px;
    background:var(--bg-card); border:2px solid var(--border);
    cursor:pointer; transition:all 0.2s; text-align:center;
}
.type-card:active { transform:scale(0.96); }
.type-card.active { border-color:var(--orange); background:rgba(218,73,18,0.1); }
.type-card-icon { font-size:22px; }
.type-card-name { font-size:14px; font-weight:600; color:var(--text); }

/* ==================== Region Cards ==================== */
.region-cards { display:flex; gap:10px; }
.region-card {
    flex:1; display:flex; align-items:center; justify-content:center; gap:6px;
    padding:14px; border-radius:12px;
    background:var(--bg-card); border:2px solid var(--border);
    cursor:pointer; transition:all 0.2s;
}
.region-card.active { border-color:var(--orange); background:rgba(218,73,18,0.1); }
.region-flag { font-size:22px; }
.region-name { font-size:15px; font-weight:600; color:var(--text); }

/* ==================== Form styles ==================== */
.form-error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 13px;
}

.form-success {
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 13px;
}

/* ==================== Page Header (detail, upload etc) ==================== */
.page-header {
    background: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.back-btn { font-size: 15px; color: #1a1816; flex-shrink: 0; text-decoration: none; padding: 4px 10px; border-radius: 6px; background: #f0ebe2; transition: background 0.15s; }
.back-btn:hover { background: #e0d8cc; }
.page-header h1 { font-size: 16px; font-weight: 600; color: #1a1816; }

/* ==================== Admin ==================== */
.admin-header {
    background: linear-gradient(135deg, #e2e8f0, #f0f4f8);
    border-bottom: 2px solid var(--primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-header h1 { font-size: 16px; color: var(--primary); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; text-align: center; border: 1px solid var(--border); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.admin-tabs { display: flex; padding: 0 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.tab-btn { flex: 1; padding: 10px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-secondary); font-size: 15px; cursor: pointer; transition: all 0.2s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-section { padding: 16px; }
.admin-section h2 { font-size: 15px; margin-bottom: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
.admin-table th { background: var(--bg-card); padding: 8px 10px; text-align: left; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-thumb { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; display: block; }
.tag-mini { display:inline-block; padding:1px 6px; border-radius:3px; font-size:10px; font-weight:600; }
.status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.status.visible { background: rgba(46, 213, 115, 0.2); color: var(--success); }
.status.hidden { background: rgba(255, 71, 87, 0.2); color: var(--danger); }

/* ==================== Login/Register ==================== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #ede8df 0%, #e0d8cc 100%); }
.login-container { width: 100%; max-width: 360px; background: #ffffff; border-radius: 16px; padding: 32px 24px; border: 1px solid #e0d8cc; }
.login-logo { text-align: center; margin-bottom: 16px; }
.login-container h1 { text-align: center; font-size: 22px; color: var(--primary); margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--text-secondary); font-size: 13px; margin-bottom: 24px; }
.form-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-secondary); }

/* ==================== Detail Page ==================== */
.layout-detail { padding-bottom: calc(var(--nav-height) + 20px); }
.detail-image { width: 100%; background: #000; }
.detail-image img { width: 100%; display: block; }
.detail-info { padding: 16px; }
.detail-info h2 { font-size: 18px; margin-bottom: 8px; }
.detail-desc { color: var(--text-secondary); font-size: 15px; margin: 10px 0; line-height: 1.6; }

/* ==================== Layout Grid (mylayouts, etc) ==================== */
.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 12px;
    padding-bottom: calc(var(--nav-height) + 20px);
}
.layout-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--border); }
.layout-img-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.layout-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ==================== Feedback ==================== */
.feedback-intro { background: var(--bg-card); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; border-left: 3px solid var(--primary); font-size: 13px; color: var(--text-secondary); }
.feedback-list { display: flex; flex-direction: column; gap: 10px; }
.feedback-card { background: var(--bg-card); border-radius: var(--radius); padding: 12px; border: 1px solid var(--border); }
.feedback-card.unread { border-left: 3px solid var(--primary); }

/* ==================== Responsive ==================== */
/* 电脑端：一行三个，卡片1.44倍（1.2x再1.2倍） */
@media (min-width: 768px) {
    .feed-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 22px 28px 80px;
        max-width: 1400px;
        margin: 0 auto;
    }
    .feed-card {
        break-inside: avoid;
        border-radius: 18px;
    }
    .feed-info { padding: 12px 20px 8px; }
    .feed-title { font-size: 20px; }
    .feed-tag { font-size: 14px; padding: 4px 12px; }
    .feed-time-tag { font-size: 13px !important; }
    .feed-img { border-radius: 0; }
    .fis-item { font-size: 14px; padding: 4px 12px; }
    .feed-btn { font-size: 15px; padding: 16px 12px; }
    .feed-report-text { font-size: 13px !important; }
    .fab-upload { bottom: 30px; right: 30px; width: 64px; height: 64px; }
    .fab-icon { font-size: 34px; }
    .home-pagination { max-width: 1400px; margin: 0 auto; padding: 20px 28px 80px; }
    
    .scrollable-content { padding-top: 260px; }
}

@media (min-width: 1200px) {
    .feed-list {
        max-width: 1400px;
    }
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
