:root { --bg: #f4f1eb; --surface: #faf8f4; --surface2: #fff; --border: #e0dbd0; --border-dark: #c9c2b4; --text: #1c1a17; --text-secondary: #6b6559; --text-muted: #9c9082; --accent: #3d6b52; --accent-light: #e8f0eb; --accent-warm: #b85c2a; --accent-warm-light: #f5ebe3; --yellow: #c9a227; --yellow-light: #fdf6e3; --tag-bg: #edeae3; --shadow-sm: 0 1px 3px rgba(0,0,0,0.06); --shadow: 0 2px 12px rgba(0,0,0,0.08); --radius: 8px; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); font-family: 'DM Sans', -apple-system, sans-serif; color: var(--text); min-height: 100vh; font-size: 14px; }
.top-nav { background: var(--surface2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 1rem; }
.site-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-family: 'Noto Serif SC', serif; font-size: 14px; font-weight: 700; }
.logo-text { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 1rem; color: var(--text); }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; margin-top: 1px; }
.nav-tabs { display: flex; gap: 0; height: 100%; }
.nav-tab { background: none; border: none; padding: 0 1rem; height: 100%; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; white-space: nowrap; font-family: 'DM Sans', sans-serif; }
.nav-tab:hover { color: var(--text); }
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.contact-badge { font-size: 0.7rem; color: var(--text-muted); background: var(--tag-bg); padding: 0.3rem 0.8rem; border-radius: 4px; font-family: monospace; }
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem; display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.placeholder-page { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border); }
.section-title { font-family: 'Noto Serif SC', serif; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.search-bar-wrap { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.search-input-box { flex: 1; min-width: 180px; position: relative; }
.search-input-box input { width: 100%; padding: 0.45rem 0.8rem 0.45rem 2rem; border: 1px solid var(--border); border-radius: 5px; font-size: 0.82rem; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; outline: none; transition: border 0.15s; }
.search-input-box input:focus { border-color: var(--accent); }
.search-input-box::before { content: '🔍'; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 0.7rem; }
.teacher-list { display: flex; flex-direction: column; gap: 0; }
.teacher-row { background: var(--surface2); border: 1px solid var(--border); border-top: none; padding: 0.9rem 1rem; display: grid; grid-template-columns: 40px 1fr auto; gap: 0.8rem; align-items: start; cursor: pointer; transition: background 0.12s; }
.teacher-row:first-child { border-top: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.teacher-list > div:last-child > .teacher-row { border-radius: 0 0 var(--radius) var(--radius); }
.teacher-row:hover { background: var(--surface); }
.teacher-row.expanded { background: var(--surface); border-left: 3px solid var(--accent); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--accent); font-family: 'Noto Serif SC', serif; flex-shrink: 0; }
.row-top { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.teacher-name-link { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.subj-tag { font-size: 0.68rem; background: var(--tag-bg); color: var(--text-secondary); padding: 0.15rem 0.5rem; border-radius: 3px; font-weight: 500; }
.row-meta { display: flex; align-items: center; gap: 0.8rem; font-size: 0.7rem; color: var(--text-muted); }
.row-stats { text-align: right; flex-shrink: 0; }
.stat-rating { font-size: 0.95rem; font-weight: 700; color: var(--yellow); }
.expand-panel { background: var(--bg); border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 1rem 1rem 1rem 4rem; display: none; }
.expand-panel.show { display: block; border-left: 3px solid var(--accent); padding-left: calc(4rem - 2px); }
.stars-row { display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.8rem; }
.star-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--border-dark); transition: color 0.1s, transform 0.1s; padding: 0; }
.star-btn.lit { color: var(--yellow); }
.star-btn:hover { transform: scale(1.2); }
.comment-thread { border-left: 2px solid var(--border); padding-left: 0.8rem; margin-bottom: 0.8rem; max-height: 220px; overflow-y: auto; }
.comment-bubble { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.7rem; margin-bottom: 0.5rem; font-size: 0.77rem; }
.comment-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.2rem; }
.comment-author { font-weight: 600; color: var(--accent); }
.comment-text { color: var(--text); line-height: 1.45; }
.comment-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.comment-form input { background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 0.4rem 0.7rem; font-size: 0.78rem; font-family: 'DM Sans', sans-serif; color: var(--text); outline: none; }
.comment-form .inp-name { width: 90px; }
.comment-form .inp-text { flex: 1; min-width: 140px; }
.btn-send { background: var(--accent); color: white; border: none; border-radius: 5px; padding: 0.4rem 0.9rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.notice-board { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem; }
.notice-top { background: var(--accent); padding: 1.2rem 1.5rem; color: white; }
.notice-top h2 { font-family: 'Noto Serif SC', serif; font-size: 1.35rem; margin-bottom: 0.3rem; }
.notice-top p { font-size: 0.78rem; opacity: 0.82; }
.notice-body { padding: 1.2rem 1.5rem; }
.notice-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.8; border-left: 3px solid var(--border); padding-left: 1rem; margin-bottom: 0.8rem; }
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.stat-box { flex: 1; min-width: 90px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.8rem; text-align: center; }
.stat-box-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-box-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }
.feature-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-row-item { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.feature-icon2 { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.fi-green { background: var(--accent-light); }
.fi-warm { background: var(--accent-warm-light); }
.fi-gray { background: var(--tag-bg); }
.feature-row-title { font-weight: 600; font-size: 0.88rem; }
.feature-row-desc { font-size: 0.73rem; color: var(--text-muted); }
.canteen-hero { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.canteen-banner { background: linear-gradient(135deg, #5c3d1e, #8a5a32); padding: 1.2rem 1.5rem; color: white; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.big-rating-num { font-size: 2rem; font-weight: 700; color: var(--yellow); }
.canteen-body { padding: 1rem 1.2rem; }
.site-footer { text-align: center; padding: 2rem; font-size: 0.68rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 1rem; }
.modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal-backdrop.show { display: flex; }
.modal { background: white; width: 90%; max-width: 450px; max-height: 90vh; overflow-y: auto; border-radius: var(--radius); padding: 25px; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; font-family: inherit; outline: none; }
.auth-pill { padding: 6px 14px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 0.9rem; }
.auth-pill.active { background: var(--accent); color: white; border-color: var(--accent); }
@media (max-width: 720px) { .page-wrap { grid-template-columns: 1fr; padding: 1rem; } .nav-tab { padding: 0 0.6rem; font-size: 0.78rem; } .contact-badge { display: none; } }
#mainContent { display: block; }