﻿/* ============================================
   智慧社区管理系统 - 大气现代版样式表
   ============================================ */

/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-bg: #eef2ff;
    --success: #059669;
    --success-light: #d1fae5;
    --success-dark: #047857;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --danger-dark: #b91c1c;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --neutral: #6b7280;
    --neutral-light: #f3f4f6;
    --bg: #f0f2f5;
    --bg-alt: #f8fafc;
    --surface: #ffffff;
    --text: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.04);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ========== Navbar ========== */
.navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-links a.active-link {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--border);
}

.nav-user .user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.nav-user span {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.nav-user a {
    font-size: 13px;
    padding: 0.25rem 0.6rem;
}

/* ========== Main Content ========== */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 60px - 70px);
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 1.25rem;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: var(--success-dark); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-dark); color: #fff; }

.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover { background: var(--neutral-light); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--neutral-light); box-shadow: none; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 13px; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 16px; border-radius: var(--radius); }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ========== Alerts ========== */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.alert-success { background: var(--success-light); color: var(--success-dark); border-color: #a7f3d0; }
.alert-error { background: var(--danger-light); color: var(--danger-dark); border-color: #fecaca; }

/* ========== Badges ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-secondary { background: var(--neutral-light); color: var(--neutral); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-primary { background: var(--primary-bg); color: var(--primary); }

/* ========== Forms ========== */
.form-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
    max-width: 800px;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

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

input[type="text"], input[type="email"], input[type="password"],
input[type="datetime-local"], input[type="number"], textarea, select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ========== Page Header ========== */
.page-container { animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-header-actions h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}

/* ========== Tabs ========== */
.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    background: var(--neutral-light);
    border-radius: var(--radius);
    padding: 0.3rem;
}

.tab {
    padding: 0.5rem 1.25rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.tab:hover { color: var(--text); }
.tab.active {
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ========== Empty / Loading ========== */
.empty-text {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 15px;
}

.empty-icon { font-size: 48px; margin-bottom: 0.75rem; opacity: 0.5; }

/* ========== Vote List Cards ========== */
.vote-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.vote-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.vote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 0.5rem;
}

.vote-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.vote-card-header h3 a { color: var(--text); }
.vote-card-header h3 a:hover { color: var(--primary); }

.vote-card-body { padding: 0.5rem 1.5rem; }

.vote-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.vote-card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-alt);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.vote-card-footer .footer-separator {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.vote-card-footer .btn { margin-left: auto; }

.voted-tag {
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
    margin-left: auto;
}

/* ========== Vote Detail ========== */
.vote-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.vote-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vote-meta-item .meta-icon { font-size: 16px; }
.vote-meta-item .meta-label { color: var(--text-muted); font-size: 13px; }
.vote-meta-item .meta-value { font-weight: 600; }

.vote-description {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.vote-description h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.vote-description p { color: var(--text-secondary); line-height: 1.7; font-size: 14px; }

/* --- Topic Cards --- */
.topic-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.topic-card:hover { box-shadow: var(--shadow-md); }

.topic-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-bg), #e8f0fe);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topic-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.topic-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.topic-card-body {
    padding: 1.25rem 1.5rem;
}

.topic-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* --- Voting Buttons (赞同/反对/弃权) --- */
.vote-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.vote-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    gap: 0.3rem;
}

.vote-btn .vote-icon { font-size: 24px; }
.vote-btn .vote-label { font-size: 14px; font-weight: 600; }
.vote-btn .vote-sub { font-size: 11px; color: var(--text-muted); }

.vote-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.vote-btn.approve { border-color: #a7f3d0; }
.vote-btn.approve:hover, .vote-btn.approve.selected {
    background: var(--success-light);
    border-color: var(--success);
    color: var(--success-dark);
}

.vote-btn.oppose { border-color: #fecaca; }
.vote-btn.oppose:hover, .vote-btn.oppose.selected {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger-dark);
}

.vote-btn.abstain { border-color: #e5e7eb; }
.vote-btn.abstain:hover, .vote-btn.abstain.selected {
    background: var(--neutral-light);
    border-color: var(--neutral);
    color: var(--neutral);
}

/* --- Results Bars --- */
.vote-results {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
    border: 1px solid var(--border-light);
}

.vote-results h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-summary {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.result-topic {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.result-topic:last-child { border-bottom: none; margin-bottom: 0; }

.result-topic-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.result-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 13px;
}

.result-emoji { width: 28px; text-align: center; font-size: 16px; flex-shrink: 0; }

.result-label {
    min-width: 48px;
    font-weight: 600;
    flex-shrink: 0;
}

.result-bar-track {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-bar-fill.approve { background: linear-gradient(90deg, #34d399, #059669); }
.result-bar-fill.oppose { background: linear-gradient(90deg, #f87171, #dc2626); }
.result-bar-fill.abstain { background: linear-gradient(90deg, #9ca3af, #6b7280); }

.result-count {
    min-width: 80px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

/* ========== Vote Area ========== */
.vote-section-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ========== Topic Create ========== */
.topic-create-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}

.topic-create-card .topic-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.topic-create-card .topic-header-row .topic-number-create {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.topic-create-card .topic-header-row span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.topic-create-card .btn-remove-topic {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition);
}

.topic-create-card .btn-remove-topic:hover {
    background: var(--danger);
    color: #fff;
}

/* ========== Stats Cards ========== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon { font-size: 32px; margin-bottom: 0.5rem; }

.stat-num {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 0.3rem; font-weight: 500; }

/* ========== Admin Table ========== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14px;
    border: 1px solid var(--border-light);
}

.data-table thead { background: var(--bg-alt); }

.data-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: #f8faff; }
.data-table tbody tr:last-child td { border-bottom: none; }

.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-content { padding: 1rem; }
    .nav-container { height: auto; padding: 0.75rem 0; flex-direction: column; gap: 0.5rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .nav-user { border-left: none; padding-left: 0; margin-left: 0; }
    .page-header-actions h1 { font-size: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .stats-cards { grid-template-columns: 1fr; }
    .vote-actions { flex-direction: column; }
    .vote-card-footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 0.5rem 0.6rem; }
}
/* ========== Hero (Index) ========== */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

.hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 0.5rem; position: relative; letter-spacing: -0.5px; }
.hero p { font-size: 16px; opacity: 0.9; position: relative; }

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
}

.hero .btn-primary { background: #fff; color: var(--primary); font-weight: 600; }
.hero .btn-primary:hover { background: #f0f0ff; }
.hero .btn-secondary { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.35); }

/* ========== Stats Bar (Index) ========== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--surface);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.stat-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-item .stat-num {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* ========== Home Grid ========== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.home-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-alt);
}

.section-header h2 { font-size: 16px; font-weight: 700; }
.section-header a { font-size: 13px; font-weight: 500; }

/* ========== Lists ========== */
.list { padding: 0.5rem 0; }

.list-item {
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-alt); }

.list-item-title { font-size: 14px; font-weight: 500; color: var(--text); }
.list-item-title a { color: var(--text); }
.list-item-title a:hover { color: var(--primary); }

.list-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.list-item.pinned { background: #fffbeb; }

/* ========== Dashboard ========== */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 0.3rem; }
.page-header p { color: var(--text-secondary); font-size: 14px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.dash-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-light);
}

.dash-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.dash-card .btn { margin-top: 0.75rem; }

.info-list { font-size: 14px; }
.info-row { padding: 0.35rem 0; }
.info-row span { color: var(--text-muted); }

.stat { text-align: center; padding: 1rem; }
.stat .stat-num { font-size: 36px; }
.stat .stat-label { font-size: 13px; color: var(--text-muted); }

/* ========== Badge Pin ========== */
.badge-pin { background: var(--warning-light); color: var(--warning); font-size: 11px; margin-right: 0.25rem; }

/* ========== Announcements ========== */
.announcement-list { display: flex; flex-direction: column; gap: 1rem; }

.announcement-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.announcement-card.pinned {
    border-left: 4px solid var(--warning);
    background: #fffbeb;
}

.announcement-header { margin-bottom: 0.5rem; }
.announcement-header h3 { font-size: 15px; font-weight: 700; }
.announcement-meta { font-size: 12px; color: var(--text-muted); }
.announcement-body { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* ========== Pagination ========== */
.pagination {
    display: flex;
    gap: 0.25rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.page-link {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    transition: all var(--transition);
}

.page-link:hover { background: var(--bg-alt); text-decoration: none; }
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

/* ========== Feedback ========== */
.feedback-item { display: block !important; }

.feedback-reply {
    margin-top: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--success-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--success-dark);
}

.feedback-admin-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-light);
}

.feedback-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.feedback-admin-meta {
    display: flex;
    gap: 1rem;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.feedback-admin-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.reply-form { flex: 1; }
.reply-form .form-group { margin-bottom: 0.5rem; }

/* ========== Admin ========== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: var(--surface);
    padding: 1.25rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.admin-stat-num {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 0.25rem; font-weight: 500; }

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.admin-panel-header h3 { font-size: 15px; font-weight: 700; }
.admin-panel-header a { font-size: 13px; }

.admin-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========== Misc ========== */
.muted { color: var(--text-muted); font-size: 12px; }

/* ========== Responsive Additions ========== */
@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    .hero { padding: 2rem 1rem; }
    .home-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Option Card (Vote Create) ========== */
.option-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    position: relative;
}

.option-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.option-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.btn-remove-option {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}

.btn-remove-option:hover { background: var(--danger); color: #fff; }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ========== Topic Card (Create) ========== */
.topic-card-create {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    position: relative;
}
.topic-card-create-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem;
}
.topic-num {
    font-size: 13px; font-weight: 700; color: var(--primary);
}
.btn-remove-option {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--danger-light); color: var(--danger);
    border: none; cursor: pointer; font-size: 14px; transition: all var(--transition);
}
.btn-remove-option:hover { background: var(--danger); color: #fff; }
.btn-outline-primary {
    background: transparent; color: var(--primary); border: 1.5px solid var(--primary);
    padding: 0.4rem 1rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 500; transition: all var(--transition);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ========== Topic Card (Vote Detail) ========== */
.topic-card-vote {
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    margin-bottom: 1.25rem; overflow: hidden; border: 1px solid var(--border-light); transition: all var(--transition);
}
.topic-card-vote:hover { box-shadow: var(--shadow-md); }
.topic-card-vote-header {
    padding: 1rem 1.25rem; background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 0.75rem;
}
.topic-num-badge {
    width: 30px; height: 30px; background: var(--primary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.topic-card-vote-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.topic-card-vote-body {
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light);
}
.topic-card-vote-body .topic-content {
    color: var(--text-secondary); font-size: 14px; line-height: 1.8; white-space: pre-wrap; margin-bottom: 0.75rem;
}
.topic-file { margin-top: 0.5rem; }
.file-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.75rem; background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--primary); transition: all var(--transition);
}
.file-link:hover { background: #dbeafe; border-color: var(--primary); }

.topic-card-vote-actions { padding: 0.85rem 1.25rem; }

.vote-actions-row {
    display: flex; gap: 0.75rem;
}

.vote-btn-v2 {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.7rem 0.5rem; border-radius: var(--radius); border: 2px solid var(--border);
    background: var(--surface); cursor: pointer; transition: all var(--transition); font-family: inherit; gap: 0.2rem;
}
.vote-btn-v2 .v2-icon { font-size: 22px; }
.vote-btn-v2 .v2-label { font-size: 14px; font-weight: 600; }
.vote-btn-v2:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.vote-btn-v2.agree { border-color: #bbf7d0; }
.vote-btn-v2.agree:hover, .vote-btn-v2.agree.selected { background: #f0fdf4; border-color: #22c55e; color: #166534; }

.vote-btn-v2.oppose { border-color: #fecaca; }
.vote-btn-v2.oppose:hover, .vote-btn-v2.oppose.selected { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

.vote-btn-v2.abstain { border-color: #e5e7eb; }
.vote-btn-v2.abstain:hover, .vote-btn-v2.abstain.selected { background: #f9fafb; border-color: #9ca3af; color: #4b5563; }

/* ========== Result Blocks ========== */
.result-topic-block {
    margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light);
}
.result-topic-block:last-child { border-bottom: none; margin-bottom: 0; }
.result-topic-label {
    font-size: 15px; font-weight: 700; margin-bottom: 0.75rem; color: var(--text);
}
.agree-bar { background: linear-gradient(90deg, #86efac, #22c55e); }
.oppose-bar { background: linear-gradient(90deg, #fca5a5, #ef4444); }
.abstain-bar { background: linear-gradient(90deg, #d1d5db, #9ca3af); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .vote-actions-row { flex-direction: column; }
    .vote-btn-v2 { flex-direction: row; gap: 0.5rem; padding: 0.5rem 0.75rem; }
}

/* ============================================
   首页样式
   ============================================ */

/* ----- Hero ----- */
.home-hero {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 30%, #4f46e5 70%, #6366f1 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    min-height: 280px;
}
.home-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99,102,241,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168,85,247,0.2) 0%, transparent 50%);
}
.home-hero-content {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 2rem;
}
.home-hero-text { flex: 1; }
.home-hero-text h1 {
    font-size: 34px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 0.75rem; letter-spacing: -0.5px;
}
.hero-highlight { background: linear-gradient(90deg, #a5b4fc, #c4b5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.home-hero-text p {
    font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 500px; margin-bottom: 1.5rem;
}
.home-hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Hero visual */
.home-hero-visual {
    position: relative; width: 180px; height: 180px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.hero-icon-big { font-size: 72px; position: relative; z-index: 2; animation: heroFloat 3s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-circle {
    position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15);
}
.hero-circle-1 { width: 160px; height: 160px; animation: spin 20s linear infinite; }
.hero-circle-2 { width: 120px; height: 120px; border-style: dashed; animation: spin 15s linear infinite reverse; }
.hero-circle-3 { width: 80px; height: 80px; border-color: rgba(255,255,255,0.25); animation: spin 10s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ----- Stats Cards ----- */
.home-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem;
}
.home-stat-card {
    background: #fff; border-radius: 14px; padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}
.home-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.home-stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.home-stat-num { font-size: 24px; font-weight: 800; color: #1e293b; line-height: 1.2; }
.home-stat-label { font-size: 12px; color: #94a3b8; margin-top: 2px; font-weight: 500; }

/* ----- Main Grid ----- */
.home-main-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}

/* ----- Section Card ----- */
.home-section-card {
    background: #fff; border-radius: 14px; padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #f1f5f9;
    margin-bottom: 1.25rem;
}
.home-section-title {
    font-size: 16px; font-weight: 700; color: #1e293b;
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 0.75rem; margin-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.section-more { font-size: 12px; color: #6366f1; font-weight: 500; text-decoration: none; }
.section-more:hover { text-decoration: underline; }

/* ----- Quick Actions ----- */
.home-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-action-item {
    padding: 0.85rem; border-radius: 10px; border: 1px solid #f1f5f9;
    text-decoration: none; transition: all 0.15s ease;
}
.quick-action-item:hover { background: #f8fafc; border-color: #e2e8f0; transform: translateY(-1px); text-decoration: none; }
.quick-action-icon { font-size: 24px; display: block; margin-bottom: 0.35rem; }
.quick-action-label { font-size: 14px; font-weight: 600; color: #1e293b; display: block; }
.quick-action-desc { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ----- Announcement List ----- */
.home-empty { text-align: center; padding: 1.5rem; color: #94a3b8; font-size: 13px; }
.home-announce-list { display: flex; flex-direction: column; }
.home-announce-item {
    padding: 0.65rem 0; border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
}
.home-announce-item:last-child { border-bottom: none; }
.home-announce-item.pinned { background: #fffbeb; margin: 0 -1.5rem; padding: 0.65rem 1.5rem; border-radius: 6px; }
.home-announce-left { display: flex; align-items: flex-start; gap: 0.6rem; }
.home-announce-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1;
    margin-top: 6px; flex-shrink: 0;
}
.home-announce-dot.dot-pinned { background: #f59e0b; }
.home-announce-title { font-size: 14px; color: #334155; line-height: 1.4; }
.home-announce-time { font-size: 11px; color: #94a3b8; margin-top: 3px; }

/* ----- Vote List ----- */
.home-vote-list { display: flex; flex-direction: column; gap: 0.5rem; }
.home-vote-item {
    display: block; padding: 0.75rem 1rem; border-radius: 8px;
    border: 1px solid #f1f5f9; text-decoration: none;
    transition: all 0.15s ease;
}
.home-vote-item:hover { border-color: #e2e8f0; background: #f8fafc; transform: translateX(3px); text-decoration: none; }
.home-vote-item-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem;
}
.home-vote-item-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.home-vote-item-meta {
    display: flex; gap: 1rem; font-size: 11px; color: #94a3b8;
}

/* ----- Overview ----- */
.home-overview { display: flex; align-items: center; }
.overview-item { flex: 1; text-align: center; }
.overview-value { font-size: 22px; font-weight: 800; color: #1e293b; }
.overview-label { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.overview-divider { width: 1px; height: 36px; background: #e2e8f0; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .home-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .home-hero { padding: 2rem 1.25rem; border-radius: 14px; }
    .home-hero-content { flex-direction: column; text-align: center; }
    .home-hero-text h1 { font-size: 24px; }
    .home-hero-text p { max-width: 100%; font-size: 14px; }
    .home-hero-visual { width: 120px; height: 120px; }
    .hero-icon-big { font-size: 48px; }
    .home-stats { grid-template-columns: 1fr 1fr; }
    .home-main-grid { grid-template-columns: 1fr; }
    .home-quick-actions { grid-template-columns: 1fr 1fr; }
}
/* ============================================
   首页 - 简洁现代风
   ============================================ */

.home-page { max-width: 960px; margin: 0 auto; }

/* Banner */
.home-banner {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 16px; padding: 2.5rem 2rem; margin-bottom: 1.25rem; text-align: center; color: #fff;
}
.home-banner-inner h1 { font-size: 28px; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.3px; }
.home-banner-inner p { font-size: 15px; opacity: 0.85; margin-bottom: 1rem; }
.home-banner-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.home-banner .btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); font-weight: 600; padding: 0.6rem 1.5rem; border-radius: 10px; font-size: 15px; text-decoration: none; }
.home-banner .btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.home-my-community { margin-top: 0.75rem; font-size: 13px; opacity: 0.8; background: rgba(255,255,255,0.12); display: inline-block; padding: 0.3rem 1rem; border-radius: 20px; }

/* 数据行 */
.home-data-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem;
}
.home-data-item {
    background: #fff; border-radius: 12px; padding: 1rem; text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04); border: 1px solid #f1f5f9;
}
.home-data-num { font-size: 26px; font-weight: 800; color: #4f46e5; }
.home-data-txt { font-size: 13px; color: #94a3b8; margin-top: 4px; }

/* 双栏 */
.home-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

/* 区块卡片 */
.home-block {
    background: #fff; border-radius: 14px; padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04); border: 1px solid #f1f5f9;
}
.home-block-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid #f1f5f9;
}
.home-block-head h2 { font-size: 16px; font-weight: 700; color: #1e293b; }
.home-block-head a { font-size: 13px; color: #6366f1; text-decoration: none; }
.home-block-head a:hover { text-decoration: underline; }
.home-none { text-align: center; padding: 1.5rem 0; font-size: 13px; color: #cbd5e1; }

/* 投票行 */
.home-vote-row {
    display: flex; flex-direction: column; padding: 0.6rem 0; border-bottom: 1px solid #f8fafc;
    text-decoration: none; transition: background 0.15s;
}
.home-vote-row:last-child { border-bottom: none; }
.home-vote-row:hover { background: #f8fafc; margin: 0 -1.25rem; padding: 0.6rem 1.25rem; border-radius: 6px; text-decoration: none; }
.hv-title { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 3px; }
.hv-meta { font-size: 12px; color: #94a3b8; }

/* 公告行 */
.home-ann-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 0; border-bottom: 1px solid #f8fafc;
}
.home-ann-row:last-child { border-bottom: none; }
.home-ann-row.is-pinned { background: #fffbeb; margin: 0 -1.25rem; padding: 0.55rem 1.25rem; border-radius: 4px; }
.ha-title { font-size: 14px; color: #334155; flex: 1; min-width: 0; }
.ha-time { font-size: 11px; color: #94a3b8; white-space: nowrap; margin-left: 0.75rem; }
.pinned-tag { display: inline-block; background: #fef3c7; color: #b45309; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; font-weight: 600; }

/* 快捷入口 */
.home-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.ha-card {
    background: #fff; border-radius: 12px; padding: 1rem 0.75rem; text-align: center;
    text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,0.04); border: 1px solid #f1f5f9;
    transition: all 0.15s; font-size: 14px; font-weight: 600; color: #334155; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.ha-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #e2e8f0; text-decoration: none; }
.ha-icon { font-size: 24px; }

/* ===== 手机 ===== */
@media (max-width: 640px) {
    .home-banner { border-radius: 0; margin-left: -1rem; margin-right: -1rem; padding: 2rem 1rem; }
    .home-banner-inner h1 { font-size: 22px; }
    .home-sections { grid-template-columns: 1fr; }
    .home-actions { grid-template-columns: repeat(2, 1fr); }
    .home-data-row { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .home-data-item { padding: 0.75rem 0.5rem; }
    .home-data-num { font-size: 20px; }
    .home-vote-row:hover { margin: 0 -1rem; padding: 0.6rem 1rem; }
    .home-ann-row.is-pinned { margin: 0 -1rem; padding: 0.55rem 1rem; }
}

/* ========== Committee Members ========== */
.committee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.committee-member-card {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    background: #f8fafc; border-radius: 10px; border: 1px solid #f1f5f9;
}
.cm-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.cm-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.cm-role { font-size: 12px; color: #6366f1; font-weight: 600; }
.cm-detail { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* ========== Property Info ========== */
.property-info { display: flex; flex-direction: column; gap: 0.6rem; }
.pi-row { display: flex; align-items: center; gap: 0.75rem; }
.pi-label { font-size: 13px; color: #94a3b8; min-width: 70px; font-weight: 500; }
.pi-value { font-size: 14px; color: #334155; font-weight: 600; }

@media (max-width: 640px) {
    .committee-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }
    .committee-member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cm-name {
        justify-content: center;
    }
}/* ========== Committee Page Banner ========== */
.committee-banner {
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}

.committee-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 25%, #3b82b9 50%, #4f46e5 100%);
    z-index: 0;
}

.committee-banner-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.committee-banner-content { position: relative; z-index: 1; }

.committee-banner-icon {
    font-size: 56px;
    margin-bottom: 0.75rem;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    width: 88px; height: 88px;
    line-height: 88px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
}

.committee-banner h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.committee-banner-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* ========== Tabs ========== */
.committee-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.committee-tab {
    flex: 1;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
}

.committee-tab:hover { color: var(--primary); background: var(--bg-alt); }

.committee-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-bg);
}

/* ====== Panels ====== */
.committee-panel { display: none; }
.committee-panel.active { display: block; }

.committee-page { max-width: 1100px; }

/* ====== Empty State ====== */
.committee-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.committee-empty-icon {
    font-size: 56px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.committee-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.committee-empty p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== Committee Grid V2 ========== */
.committee-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ========== Member Card V2 ========== */
.cm-card-v2 {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.25s ease;
}

.cm-card-v2:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.cm-card-v2-avatar {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cm-card-v2-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cm-card-v2:hover .cm-card-v2-avatar img {
    transform: scale(1.05);
}

.cm-card-v2-avatar-fb {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(79,70,229,0.35);
}

.cm-card-v2-party {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(220,38,38,0.4);
}

.cm-card-v2-body {
    padding: 1.25rem 1.25rem 1rem;
}

.cm-card-v2-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.cm-card-v2-role {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.cm-card-v2-info {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.cm-card-v2-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: var(--text-secondary);
}

.cm-card-v2-icon {
    font-size: 15px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

/* ====== Resume Toggle ====== */
.cm-card-v2-resume {
    margin-top: 0.5rem;
    border-top: 1px dashed var(--border);
    padding-top: 0.5rem;
}

.cm-card-v2-resume-toggle {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
    padding: 0.3rem 0;
}

.cm-card-v2-resume-toggle:hover { color: var(--primary-dark); }

.cm-card-v2-arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.cm-card-v2-resume-toggle.expanded .cm-card-v2-arrow {
    transform: rotate(180deg);
}

.cm-card-v2-resume-content {
    display: none;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0.5rem 0 0;
}

.cm-card-v2-resume-content.open { display: block; }

/* ========== Property Card V2 ========== */
.property-card-v2 {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.property-card-v2-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-bottom: 1px solid #bbf7d0;
}

.property-card-v2-icon {
    font-size: 44px;
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}

.property-card-v2-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #065f46;
}

.property-card-v2-hours {
    font-size: 13px;
    color: #047857;
    font-weight: 500;
}

.property-card-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 1.25rem 1.5rem;
}

.property-card-v2-item {
    padding: 0.75rem 0;
}

.property-card-v2-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.property-card-v2-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.property-phone {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.property-card-v2-desc {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.property-card-v2-desc .property-card-v2-value {
    margin-top: 0.3rem;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .committee-banner { padding: 2rem 1rem; border-radius: var(--radius); }
    .committee-banner h1 { font-size: 24px; }
    .committee-banner-icon { width: 64px; height: 64px; line-height: 64px; font-size: 40px; }
    .committee-grid-v2 { grid-template-columns: 1fr; }
    .cm-card-v2-avatar { height: 140px; }
    .property-card-v2-grid { grid-template-columns: 1fr; }
    .property-card-v2-header { flex-direction: column; text-align: center; }
}
/* ========== Extra Badges & Buttons ========== */
.badge-info { background: #dbeafe; color: #1d4ed8; }

.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; padding: 0.35rem 0.5rem; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }

.btn-outline-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-outline-danger:hover { background: var(--danger-light); }

.btn-info { background: #3b82f6; color: #fff; }
.btn-info:hover { background: #2563eb; }

/* ========== Vote Intro Banner ========== */
.vote-intro-banner {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 14px;
    line-height: 1.7;
    color: #1e40af;
}

/* ========== Topic Card Create ========== */
.topic-card-create {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.topic-card-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.topic-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
}

.btn-remove-option {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}

.btn-remove-option:hover { color: var(--danger-dark); }

/* ========== Form Row ========== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}
/* ========== Mall Styles ========== */
.mall-header { margin-bottom: 1rem; }
.mall-search { display: flex; gap: 0.5rem; }
.mall-search-input { flex: 1; padding: 0.65rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); font-size: 14px; outline: none; }
.mall-search-input:focus { border-color: var(--primary); }
.mall-search-btn { padding: 0.65rem 1.5rem; }

.mall-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.mall-cat { padding: 0.4rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: all var(--transition); }
.mall-cat:hover, .mall-cat.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.mall-empty { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--text-muted); }

.mall-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); text-decoration: none; color: inherit; transition: all var(--transition); display: block; }
.mall-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.mall-card-img { width: 100%; height: 180px; overflow: hidden; background: var(--bg-alt); }
.mall-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mall-card:hover .mall-card-img img { transform: scale(1.05); }
.mall-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--text-muted); }

.mall-card-body { padding: 0.75rem; }
.mall-card-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 0.25rem; }
.mall-card-store { font-size: 11px; color: var(--text-muted); margin-bottom: 0.35rem; }
.mall-card-price { font-size: 18px; font-weight: 800; color: var(--danger); }
.mall-card-orig { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-left: 0.5rem; font-weight: 400; }
.mall-card-sales { font-size: 11px; color: var(--text-muted); margin-top: 0.2rem; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.product-gallery-main { width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 22px; font-weight: 800; margin-bottom: 0.5rem; }
.product-merchant { font-size: 13px; color: var(--text-muted); margin-bottom: 0.75rem; }
.product-price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
.product-price { font-size: 32px; font-weight: 800; color: var(--danger); }
.product-orig-price { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.product-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 1rem; }
.product-desc { font-size: 14px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-alt); border-radius: var(--radius); }
.product-form { display: flex; gap: 1rem; align-items: flex-end; }

/* Cart */
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); }
.cart-item-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 13px; color: var(--text-muted); }
.cart-item-qty { width: 60px; }
.cart-item-sub { font-size: 16px; font-weight: 700; color: var(--danger); min-width: 80px; text-align: right; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; margin-top: 1rem; }

/* Mall navigation in merchant */
.merchant-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 768px) {
    .mall-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
}
/* ============================================
   移动端首页 - 小区治理/业主投票
   ============================================ */

/* --- 基础重置 --- */
.mobile-home {
    background: #f0f4f8;
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
.mobile-home .navbar,
.mobile-home .main-content,
.mobile-home .footer { display: none; }

/* --- 顶部导航栏 --- */
.mh-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    padding: 0 16px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8ecf1;
}
.mh-header-left {
    display: flex; align-items: baseline; gap: 6px;
}
.mh-title {
    font-size: 17px; font-weight: 700; color: #1a1a2e;
}
.mh-subtitle {
    font-size: 12px; color: #94a3b8; font-weight: 400;
}
.mh-header-right {
    display: flex; align-items: center; gap: 12px;
}
.mh-dot-btn {
    font-size: 16px; color: #64748b; font-weight: 700; letter-spacing: 1px;
}
.mh-circle-btn {
    font-size: 18px; color: #64748b;
}

/* --- 主内容区 --- */
.mh-page {
    padding: 12px 14px;
    padding-bottom: 0;
}

/* --- 顶部引导Banner --- */

/* --- 登录模块 --- */
.mh-login-card {
    background: #fff; border-radius: 12px;
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mh-login-text {
    font-size: 15px; color: #334155; font-weight: 500;
}
.mh-login-btn {
    background: #1e293b; color: #fff;
    font-size: 13px; font-weight: 600;
    padding: 7px 22px; border-radius: 18px;
    text-decoration: none;
}
.mh-login-btn:hover { background: #334155; color: #fff; text-decoration: none; }

/* --- 核心功能区标题 --- */
.mh-core-title {
    font-size: 16px; font-weight: 700; color: #1a1a2e;
    margin-bottom: 12px;
    padding-left: 2px;
}

/* --- 核心功能四宫格 --- */
.mh-core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

/* 大卡片 */
.mh-big-card {
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.15s;
    min-height: 115px;
}
.mh-big-card:active { transform: scale(0.97); }
.mh-big-card-yellow { background: #fef9e7; }
.mh-big-card-blue   { background: #e8f4fd; }

.mh-big-card-text { flex: 1; display: flex; flex-direction: column; }
.mh-big-card-text h3 {
    font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px 0;
}
.mh-big-card-text p {
    font-size: 12px; color: #64748b; margin: 0 0 10px 0;
}
.mh-big-card-btn {
    display: inline-block; align-self: flex-start;
    font-size: 12px; font-weight: 600;
    padding: 5px 14px; border-radius: 14px;
    border: 1.5px solid;
}
.mh-big-card-btn-orange {
    color: #e8832a; border-color: #e8832a;
}
.mh-big-card-btn-blue {
    color: #3b82f6; border-color: #3b82f6;
}
.mh-big-card-img {
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* 小图标卡片 */
.mh-small-card {
    background: #fff; border-radius: 12px;
    padding: 14px 10px;
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s;
}
.mh-small-card:active { transform: scale(0.96); }
.mh-small-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.mh-small-icon-orange { background: #fff3e0; }
.mh-small-icon-green  { background: #e8f5e9; }
.mh-small-icon-blue   { background: #e3f2fd; }
.mh-small-icon-red    { background: #fce4ec; }
.mh-small-label {
    font-size: 12px; color: #334155; font-weight: 500;
}

/* --- 招商Banner --- */
.mh-recruit-banner {
    background: linear-gradient(135deg, #2b7de9 0%, #1a5fcd 40%, #1e40af 100%);
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.mh-recruit-banner a.mh-recruit-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.mh-recruit-content { flex: 1; z-index: 1; }
.mh-recruit-phone {
    font-size: 10px; color: rgba(255,255,255,0.7); margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}
.mh-recruit-title {
    font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 4px 0;
    letter-spacing: 1px;
}
.mh-recruit-subtitle {
    font-size: 12px; color: rgba(255,255,255,0.8); margin: 0 0 10px 0;
}
.mh-recruit-tags {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.mh-recruit-tags span {
    font-size: 10px; color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    padding: 2px 8px; border-radius: 10px;
}
.mh-recruit-visual {
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative; z-index: 1;
    opacity: 0.9;
}

/* --- 小区公告 --- */
.mh-announce-section {
    background: #fff; border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mh-announce-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.mh-announce-head h3 {
    font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0;
}
.mh-announce-head a {
    font-size: 12px; color: #94a3b8; text-decoration: none;
}
.mh-announce-list {
    display: flex; flex-direction: column; gap: 0;
}
.mh-announce-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
}
.mh-announce-item:last-child { border-bottom: none; padding-bottom: 0; }
.mh-announce-info { flex: 1; min-width: 0; padding-right: 12px; }
.mh-announce-info h4 {
    font-size: 13px; font-weight: 500; color: #1e293b; margin: 0 0 4px 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mh-announce-time {
    font-size: 11px; color: #94a3b8;
}
.mh-announce-thumb {
    flex-shrink: 0;
}
.mh-thumb-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    background: #dc2626; color: #fff;
    font-size: 11px; font-weight: 700;
    border-radius: 6px;
    text-align: center; line-height: 1.3;
}
.mh-announce-empty {
    text-align: center; color: #cbd5e1; font-size: 13px; padding: 12px 0;
}

/* --- 底部留白 --- */
.mh-bottom-spacer { height: 70px; }

/* --- Banner轮播 --- */
.mh-carousel {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #e8f0fa;
}
.mh-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}
.mh-carousel-slide {
    min-width: 100%;
    line-height: 0;
}
.mh-carousel-slide a {
    display: block;
    line-height: 0;
}
.mh-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.mh-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.mh-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
    cursor: pointer;
}
.mh-carousel-dot.active {
    width: 18px;
    border-radius: 3px;
    background: #fff;
}


/* --- 底部导航栏（统一） --- */
.mh-tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px; z-index: 100;
    display: flex; background: #fff;
    border-top: 1px solid #e8ecf1;
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px));
}
.mh-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 4px 0; text-decoration: none;
    color: #94a3b8; font-size: 10px; font-weight: 500; transition: color 0.15s;
}
.mh-tabbar a .tb-icon { font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.mh-tabbar a.active { color: #4f46e5; }
.mh-tabbar a.active .tb-icon svg { stroke: #4f46e5; }

/* --- 响应式 --- */
@media (min-width: 768px) {
    .mobile-home {
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
        min-height: 100vh;
    }
}

/* 首页和移动端页面底部留出 tab 高度 */
.mobile-home { padding-bottom: 60px; }
.mh-body { padding-bottom: 70px; }

/* ===== 补充样式 ===== */

/* ===== 功能卡片行 ===== */
.mh-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.mh-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mh-card:active { transform: scale(0.97); }

.mh-card-blue   { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.mh-card-orange { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); }
.mh-card-green  { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.mh-card-purple { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); }

.mh-card-icon-wrap {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.mh-card-info { flex: 1; min-width: 0; }
.mh-card-info h4 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0 0 3px 0; }
.mh-card-info p  { font-size: 12px; color: #64748b; margin: 0; }

/* ===== 快捷操作区 ===== */
.mh-quick-actions {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    margin-bottom: 12px;
}

.mh-quick-actions .mh-big-card {
    grid-row: 1 / 3;
}

.mh-quick-actions .mh-big-card-text h3 { font-size: 16px; }
.mh-quick-actions .mh-big-card-text p  { font-size: 11px; }

/* ===== 公告通知条 ===== */
.mh-notice-banner {
    background: #fff; border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}
.mh-notice-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
}
.mh-notice-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mh-notice-badge {
    background: #eef2ff; color: #4f46e5;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
    white-space: nowrap; flex-shrink: 0;
}
.mh-notice-text { font-size: 13px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-notice-more { font-size: 12px; color: #94a3b8; text-decoration: none; white-space: nowrap; flex-shrink: 0; padding-left: 8px; }

/* ===== 轮播图 ===== */
.mh-carousel { position: relative; overflow: hidden; border-radius: 14px; margin-bottom: 12px; background: #e2e8f0; }
.mh-carousel-track { display: flex; transition: transform 0.4s ease; }
.mh-carousel-slide { min-width: 100%; flex-shrink: 0; }
.mh-carousel-slide img { width: 100%; height: 180px; object-fit: cover; display: block; }
.mh-carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.mh-carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; }
.mh-carousel-dot.active { background: #fff; width: 18px; border-radius: 3px; }

/* ===== 公告列表 ===== */
.mh-announce-section { margin-bottom: 12px; }
.mh-announce-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mh-announce-head h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.mh-announce-head a { font-size: 13px; color: #64748b; text-decoration: none; }
.mh-announce-list { display: flex; flex-direction: column; gap: 8px; }
.mh-announce-item { background: #fff; border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.mh-announce-info h4 { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.mh-announce-time { font-size: 12px; color: #94a3b8; }
.mh-announce-thumb { width: 44px; height: 44px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mh-thumb-placeholder { font-size: 10px; color: #94a3b8; text-align: center; line-height: 1.3; }
.mh-announce-empty { text-align: center; color: #94a3b8; font-size: 14px; padding: 20px; }

/* ===== 招商Banner ===== */
.mh-recruit-banner { background: linear-gradient(135deg, #1e3a5f, #2d5a87); border-radius: 14px; padding: 18px 16px; margin-bottom: 12px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.mh-recruit-content { flex: 1; }
.mh-recruit-phone { font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.mh-recruit-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.mh-recruit-subtitle { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 10px; }
.mh-recruit-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mh-recruit-tags span { background: rgba(255,255,255,0.15); padding: 3px 10px; border-radius: 10px; font-size: 11px; }
.mh-recruit-visual { flex-shrink: 0; margin-left: 10px; }

/* ===== 底部间距 ===== */
.mh-bottom-spacer { height: 80px; }
