/* ============================================================
   长沙新东方 · 校区地址专题页样式
   主题色：白色 + 新东方青 #00695F / 深青 #00544C / 橙 #F39800
   响应式断点：≥1024px（桌面网格） / 640-1023px（平板） / <640px（移动）
   ============================================================ */
:root {
    --primary: #00695F;
    --primary-dark: #00544C;
    --accent: #F39800;
    --primary-soft: #E6F2F0;
    --ink: #22272E;
    --ink-2: #5C6470;
    --ink-3: #8A93A0;
    --bg: #F5F6F8;
    --card: #FFFFFF;
    --line: #EAEDF1;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(20, 28, 40, 0.06);
    --shadow-lg: 0 8px 28px rgba(20, 28, 40, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo .logo-text { font-size: 17px; font-weight: 700; color: var(--ink); }
.header-tel {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-size: 18px; font-weight: 700; letter-spacing: .5px;
    white-space: nowrap;
}
.header-tel .ic-phone { margin-top: 0; }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(120deg, #00544C 0%, #00695F 48%, #F39800 100%);
    color: #fff;
    padding: 48px 20px 56px;
    text-align: center;
}
.hero .hero-inner { max-width: 1160px; margin: 0 auto; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.hero .hero-sub { margin-top: 10px; font-size: 16px; opacity: .95; }
.hero .hero-meta {
    margin-top: 18px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hero .hero-pill {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
}
/* ---------------- 校区板块 ---------------- */
.section { max-width: 1160px; margin: 0 auto; padding: 40px 20px 8px; }
.section-title { text-align: center; margin-bottom: 22px; }
.section-title h2 { font-size: 26px; font-weight: 800; position: relative; display: inline-block; }
.section-title h2::after {
    content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent)); margin: 8px auto 0;
}
.section-title p { color: var(--ink-2); margin-top: 6px; font-size: 14px; }

/* 筛选 Tab（学段 / 行政区） */
.filter-group { max-width: 960px; margin: 0 auto 8px; }
.filter-tabs {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: flex-start;
}
.filter-tabs .tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink-2); font-size: 15px; font-weight: 600;
    transition: all .2s ease;
}
.filter-tabs .tab .tab-count {
    background: var(--bg); color: var(--ink-3);
    border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700;
    transition: all .2s ease;
}
.filter-tabs .tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tabs .tab.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(0, 105, 95, .28);
}
.filter-tabs .tab.active .tab-count { background: rgba(255,255,255,.22); color: #fff; }
/* 行首“学段选择 / 地区选择”标签 */
.filter-tabs .tab-label {
    background: none; border: none; color: var(--primary);
    font-weight: 800; font-size: 15px; padding: 9px 6px 9px 0;
}
.filter-tabs .tab-label:hover { border-color: transparent; color: var(--primary); }
.filter-tabs .tab-label.active {
    background: none; border-color: transparent; color: var(--primary); box-shadow: none;
}
.tag-tabs {
    margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

/* 学段说明条 */
.tag-note {
    text-align: center; color: var(--ink-3);
    font-size: 13px; margin: 0 auto 22px; max-width: 900px;
}

/* 校区卡片网格 */
.campus-list {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.campus-list .empty { grid-column: 1/-1; text-align: center; color: var(--ink-3); padding: 40px 0; }

.campus-card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
    transition: transform .22s ease, box-shadow .22s ease;
}
.campus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.campus-media { position: relative; aspect-ratio: 16/8; overflow: hidden; background: #EFF1F4; }
.campus-media img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .5s ease, transform .5s ease;
}
.campus-media img.loaded { opacity: 1; }
.campus-card:hover .campus-media img { transform: scale(1.04); }

/* 无实景图占位 */
.no-img {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(150deg, #F6F9F8, #E8F1EE);
    color: #A8B0BC;
}
.no-img span { font-size: 13px; font-weight: 600; letter-spacing: 1px; }

.campus-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.campus-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.campus-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.campus-tag {
    background: var(--primary-soft); color: var(--primary);
    border-radius: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px;
}
.campus-addr, .campus-tel, .campus-hours {
    display: flex; gap: 6px; align-items: flex-start;
    font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
}
.campus-tel { color: var(--accent); font-weight: 600; }
.ic { font-style: normal; line-height: 1.4; }

.campus-actions { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; }
.btn-tel, .btn-map {
    flex: 1; text-align: center; border-radius: 8px;
    padding: 9px 0; font-size: 14px; font-weight: 600; transition: all .2s ease;
}
.btn-tel { background: var(--primary); color: #fff; }
.btn-tel:hover { background: var(--primary-dark); }
.btn-map { background: #FFF; border: 1px solid var(--primary); color: var(--primary); }
.btn-map:hover { background: var(--primary-soft); }

/* ---------------- 预约咨询 ---------------- */
.appoint {
    max-width: 760px; margin: 40px auto 0; padding: 0 20px;
}
.appoint-box {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 34px 40px; border: 1px solid var(--line);
}
.appoint-box h3 { text-align: center; font-size: 22px; font-weight: 800; }
.appoint-box .appoint-tip { text-align: center; color: var(--ink-2); font-size: 13.5px; margin: 6px 0 22px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row label .req { color: var(--primary); margin-left: 2px; }
.form-input, .form-select {
    width: 100%; padding: 11px 14px; font-size: 15px;
    border: 1px solid #D8DDE3; border-radius: 8px;
    background: #FBFCFD; color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none; -webkit-appearance: none;
}
.form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6470' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}
.form-input:focus, .form-select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 105, 95, .10); background: #fff;
}
.form-row-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
    width: 100%; margin-top: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 2px;
    padding: 13px 0; border: none; border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 105, 95, .28);
    transition: all .2s ease;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 105, 95, .36); }
.form-submit:active { transform: translateY(0); }
.form-note { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 14px; }
.agree {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--ink-2); margin: 4px 0 18px;
}
.agree input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.agree a { color: var(--primary); }
.agree a:hover { text-decoration: underline; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    background: #00544C; color: #C9D8D5;
    margin-top: 48px; padding: 26px 20px; text-align: center; font-size: 13px;
    line-height: 1.9;
}
.site-footer a { color: #F39800; }
.site-footer a:hover { text-decoration: underline; }

/* ---------------- 图标（内联 SVG，避免字体/emoji 依赖） ---------------- */
.ic-phone, .ic-pin, .ic-clock {
    display: inline-block;
    width: 16px; height: 16px;
    background-position: center; background-repeat: no-repeat; background-size: contain;
    flex-shrink: 0; margin-top: 3px;
}
.ic-phone { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300695F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.ic-pin { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A93A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ic-clock { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A93A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }

/* ---------------- 悬浮按钮 ---------------- */
.float-actions {
    position: fixed; right: 18px; bottom: 22px; z-index: 60;
    display: flex; flex-direction: column; gap: 10px;
}
.float-actions a {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 105, 95, .35);
    transition: transform .2s ease, background .2s ease;
}
.float-actions a:hover { transform: translateY(-3px); background: var(--primary-dark); }
.float-actions #back-top {
    background: #fff; color: var(--ink-2); border: 1px solid var(--line);
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.float-actions #back-top.show { opacity: 1; pointer-events: auto; }

/* ---------------- Toast ---------------- */
#form-toast {
    position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 16px);
    background: rgba(20, 28, 40, .92); color: #fff;
    padding: 10px 22px; border-radius: 999px; font-size: 14px;
    opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 90;
    max-width: 86vw; text-align: center;
}
#form-toast.show { opacity: 1; transform: translate(-50%, 0); }
#form-toast.error { background: rgba(0, 105, 95, .94); }

/* ---------------- 响应式：平板 ---------------- */
@media (max-width: 1023px) {
    .hero h1 { font-size: 28px; }
    .campus-list { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ---------------- 响应式：移动 ---------------- */
@media (max-width: 640px) {
    body { font-size: 14px; }
    .site-header .header-inner { padding: 10px 14px; }
    .logo img { height: 34px; }
    .logo .logo-text { font-size: 15px; }
    .header-tel { font-size: 16px; }
    .hero { padding: 34px 14px 40px; }
    .hero h1 { font-size: 23px; }
    .hero .hero-sub { font-size: 14px; }
    .hero .hero-pill { font-size: 12.5px; padding: 4px 12px; }
    .section { padding: 28px 14px 4px; }
    .section-title h2 { font-size: 21px; }
    .filter-group { margin-bottom: 6px; }
    .filter-tabs { gap: 8px; }
    .tag-tabs { margin-bottom: 10px; padding-bottom: 10px; }
    .filter-tabs .tab { padding: 7px 14px; font-size: 13.5px; }
    .filter-tabs .tab-label { padding: 7px 4px 7px 0; font-size: 13.5px; }
    .tag-note { font-size: 12px; margin-bottom: 18px; }
    .campus-list { grid-template-columns: 1fr; gap: 14px; }
    .campus-media { aspect-ratio: 16/9; }
    .campus-body { padding: 13px 15px 15px; }
    .campus-name { font-size: 16.5px; }
    .appoint { margin-top: 30px; }
    .appoint-box { padding: 24px 18px; border-radius: 12px; }
    .appoint-box h3 { font-size: 19px; }
    .form-row-inline { grid-template-columns: 1fr; gap: 0; }
    .float-actions { right: 12px; bottom: 16px; }
    .float-actions a { width: 42px; height: 42px; font-size: 16px; }
}
