/* === 众得园 Community - Main Stylesheet === */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0d3446;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --success: #27ae60;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --bg: #f8f9fa;
    --bg-alt: #eef3f7;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #95a5a6;
    --white: #ffffff;
    --border: #dfe6e9;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-warning { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.py-5 { padding: 5rem 0; }

/* === Navigation === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark) !important;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

.nav-menu li { position: relative; }

.nav-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.92rem;
    color: var(--text);
    border-radius: var(--radius);
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--bg-alt);
    color: var(--primary-dark);
}

.btn-nav {
    background: var(--accent) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

.btn-nav:hover { background: var(--accent-light) !important; }

/* Submenu */
.has-sub .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px 0;
    list-style: none;
    z-index: 100;
}

.has-sub:hover .submenu { display: block; }

.submenu a {
    padding: 8px 20px;
    font-size: 0.88rem;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero .emoji { font-size: 2rem; }

.hero-sub {
    font-size: 1.3rem;
    margin-bottom: 8px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.85;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.98rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}
.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.btn-lg { padding: 14px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* === Stats Bar === */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.stats-grid { display: grid; gap: 24px; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stats-5 { grid-template-columns: repeat(5, 1fr); }

.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.95rem; color: var(--text); margin-top: 4px; }
.stat-note { font-size: 0.82rem; color: var(--text-light); }

/* === Sections === */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 48px; }
.section-header h1 { font-size: 2rem; color: var(--primary-dark); }
.section-header h2 { font-size: 1.8rem; color: var(--primary-dark); }
.section-sub { color: var(--text-light); margin-top: 8px; font-size: 1.0rem; }

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon { font-size: 2.4rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.feature-card p { font-size: 0.93rem; color: var(--text-light); line-height: 1.6; }

/* === Services === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.service-icon { font-size: 2.2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 16px; color: var(--primary-dark); }

.check-list { list-style: none; margin-bottom: 16px; }
.check-list li {
    padding: 4px 0;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
}

/* === Articles === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.article-cover {
    height: 200px;
    overflow: hidden;
    background: var(--bg-alt);
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body { padding: 20px; }
.article-cat {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
}
.article-body h3 {
    font-size: 1.05rem;
    margin: 8px 0;
    line-height: 1.5;
}
.article-body h3 a { color: var(--text); }
.article-body h3 a:hover { color: var(--primary-light); }
.article-body time {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* === Article Detail === */
.article-detail { max-width: 800px; margin: 0 auto; }

.article-header { margin-bottom: 32px; }
.article-header h1 {
    font-size: 1.8rem;
    margin: 12px 0;
    color: var(--primary-dark);
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.article-cover-full {
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 450px;
}
.article-cover-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text);
}

.article-content h1 { font-size: 1.6rem; margin: 32px 0 12px; color: var(--primary-dark); }
.article-content h2 { font-size: 1.35rem; margin: 28px 0 10px; color: var(--primary-dark); }
.article-content h3 { font-size: 1.15rem; margin: 24px 0 8px; color: var(--primary); }
.article-content h4 { font-size: 1.05rem; margin: 20px 0 6px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 12px 0 16px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg-alt);
    color: var(--text-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.article-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--danger);
}
.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.article-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 24px 0;
}
.article-content a {
    color: var(--primary-light);
    text-decoration: underline;
}
.article-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.article-nav { text-align: center; }

/* Signup box */
.signup-box {
    background: linear-gradient(135deg, var(--bg-alt), var(--white));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 32px;
}

.signup-box h3 { color: var(--primary-dark); margin-bottom: 12px; }

.signup-form {
    margin-top: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* === Steps === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--white);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.step-num {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.step-num span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary-dark); }
.step-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 8px; }
.step-card ul { list-style: none; text-align: left; }
.step-card li { font-size: 0.85rem; padding: 2px 0; color: var(--text-light); }

/* === Testimonials === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    quotes: "\201C" "\201D";
}
.testimonial-card blockquote::before { content: open-quote; font-size: 1.5rem; color: var(--accent); }
.testimonial-card blockquote::after { content: close-quote; font-size: 1.5rem; color: var(--accent); }

.testimonial-card cite {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

/* === Spirit === */
.spirit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.spirit-card {
    background: var(--white);
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.spirit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.spirit-icon { font-size: 2.8rem; margin-bottom: 12px; }
.spirit-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.spirit-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* === Promo === */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.promo-card {
    background: var(--white);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.promo-tag {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.promo-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.promo-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

.schedule-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.schedule-item {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
}

/* === CTA === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 72px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 28px;
}

/* === Business Cards === */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.business-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.business-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.business-icon { font-size: 3rem; margin-bottom: 16px; }
.business-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--primary-dark); }
.business-card p { font-size: 0.93rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }

/* === Forms === */
.form-container { max-width: 700px; }

.form-lg { width: 100%; }

.content-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.93rem;
}

.required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    padding: 6px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    cursor: pointer;
}

/* === Flash Messages === */
.flash {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin: 16px 0;
    font-size: 0.93rem;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Pagination === */
.pagination { display: flex; gap: 8px; justify-content: center; }

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-link:hover:not(.active) {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
}

.tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* === Empty State === */
.empty-state { text-align: center; padding: 80px 0; font-size: 1.2rem; color: var(--text-muted); }

/* === Footer === */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.footer-col ul { list-style: none; }

.footer-col li {
    padding: 4px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* === Admin Login === */
.admin-login-page {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container { width: 100%; max-width: 400px; padding: 20px; }

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-card h2 { text-align: center; margin-bottom: 28px; color: var(--primary-dark); }

.login-form { display: flex; flex-direction: column; gap: 16px; }

/* === Admin Layout === */
.admin-page { background: #f0f2f5; }

.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: var(--primary-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.admin-logo {
    padding: 24px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav {
    flex: 1;
    padding: 12px 0;
}

.admin-nav a {
    display: block;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.93rem;
    transition: var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-user {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.btn-logout {
    color: var(--danger);
    font-size: 0.82rem;
}

.admin-main {
    margin-left: 240px;
    flex: 1;
}

.admin-header {
    background: var(--white);
    padding: 20px 32px;
    box-shadow: var(--shadow);
}

.admin-header h1 { font-size: 1.3rem; color: var(--primary-dark); }

.admin-content { padding: 24px 32px; }

/* Admin Stats Dashboard */
.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.action-icon { font-size: 1.8rem; }

/* Admin Table */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.table-header h2 { font-size: 1.2rem; }

.table-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th {
    background: var(--bg-alt);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 10px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #fafbfc; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-secondary { background: #e2e3e5; color: #383d41; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* Check list large */
.check-list-lg {
    list-style: none;
    margin-bottom: 24px;
}
.check-list-lg li {
    padding: 6px 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.content-body h2 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .spirit-grid { grid-template-columns: repeat(2, 1fr); }
    .action-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 48px 0 36px; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1.1rem; }

    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.open { display: flex; }

    .has-sub .submenu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }
    .has-sub:hover .submenu { display: none; }

    .features-grid, .testimonials-grid, .stats-4, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .articles-grid, .business-grid { grid-template-columns: 1fr; }
    .steps-grid, .promo-grid, .spirit-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .form-row, .form-row-2 { grid-template-columns: 1fr; }

    .admin-sidebar {
        width: 60px;
        overflow: hidden;
    }
    .admin-sidebar .admin-logo { font-size: 0; padding: 20px 8px; }
    .admin-sidebar .admin-nav a { padding: 12px 8px; font-size: 0; }
    .admin-sidebar .admin-nav a::first-letter { font-size: 1.2rem; }
    .admin-main { margin-left: 60px; }
    .admin-content { padding: 16px; }
    .admin-header { padding: 16px; }

    .content-card { padding: 24px; }
}

/* === Admin Article Form === */
.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
}
.form-group .required {
    color: var(--danger);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(42, 128, 185, 0.2);
}
select.form-control {
    appearance: auto;
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* === Admin Detail Card === */
.content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}
.content-card h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

/* === Badge variants === */
.badge-warning { background: var(--warning); color: #333; }
.badge-muted { background: #bdc3c7; color: #fff; }
.badge-secondary { background: #95a5a6; color: #fff; }

/* === Admin Form/Card sections === */
.admin-form-section { padding: 24px 0; }
.card-warning {
    background: var(--white);
    border: 2px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.card-warning p { margin: 0 0 16px; }

/* === Pagination === */
.pagination { display: flex; gap: 6px; }
.page-link {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}
.page-link:hover { background: var(--bg-alt); }
.page-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* === Badge danger variant (if not already present) === */
.badge-danger { background: var(--danger); color: #fff; }

/* === Form Hints & Visibility Toggle === */
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 3px; }
.vis-toggle { font-size: 0.78rem; display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; white-space: nowrap; cursor: pointer; }
.mt-1 { margin-top: 6px; }

/* === Print Styles (A4签到表) === */
@media print {
  .no-print, .admin-sidebar, .admin-header { display: none !important; }
  body { background: #fff !important; }
}

