/* ============================================================
   英赛教育官网 · shared/base.css
   全站共享样式：CSS 变量 + 排版 + 组件 + 响应式
   各品牌页只需覆盖 :root --primary/--accent 等品牌色
   无构建工具、无框架——纯静态，AI 爬虫抓纯 HTML 可读（GEO 核心）
   ============================================================ */

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- 设计变量（英赛默认深蓝基调；品牌页覆盖 --primary 等） ---- */
:root {
    --primary: #1A3A6B;
    --primary-light: #2E5A9E;
    --primary-dark: #102544;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-tint: #eef4fb;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --container: 1200px;
}

/* ---- 排版 ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; }

/* ---- 布局 ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { max-width: var(--container); margin: 0 auto; padding: 80px 24px; }
.section--tint { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 16px; }
.text-center { text-align: center; }

/* ---- Header / Nav ---- */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.nav {
    max-width: var(--container); margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    position: relative;
}
.logo { font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--accent); }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
    background: var(--primary); color: #fff; padding: 10px 24px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle {
    display: none; background: none; border: none; font-size: 26px;
    color: var(--primary); cursor: pointer; padding: 4px 8px;
}

/* ---- 按钮 ---- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--bg-tint) 0%, var(--bg-light) 100%); padding: 80px 24px; text-align: center; }
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 16px; color: var(--text); letter-spacing: -0.02em; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 20px; color: var(--text-light); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 36px; font-weight: 800; color: var(--primary); }
.hero-stat .num span { font-size: 20px; }
.hero-stat .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ---- 卡片网格（课程 / 品牌 / 通用） ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 56px; height: 56px; border-radius: 12px; background: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 14px; }
.tag { display: inline-block; background: var(--bg-tint); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-top: 12px; }

/* ---- 赛事成绩 · 荣誉条（单列竖排，全站品牌页通用） ---- */
.award-list { display:flex; flex-direction:column; gap:12px; max-width:780px; margin:0 auto; }
.award-item { display:flex; align-items:center; gap:18px; background:var(--bg); border:1px solid var(--border); border-left:5px solid var(--primary); border-radius:var(--radius); padding:18px 22px; transition:transform .2s, box-shadow .2s; }
.award-item:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.award-rank { font-size:17px; font-weight:800; color:var(--primary-dark); white-space:nowrap; min-width:84px; }
.award-level { font-size:12px; font-weight:700; color:var(--primary); background:var(--bg-tint); padding:3px 10px; border-radius:12px; white-space:nowrap; }
.award-name { flex:1; min-width:0; font-size:15px; color:var(--text); line-height:1.4; font-weight:600; }
.award-host { display:block; font-size:12px; font-weight:400; color:#94a3b8; margin-top:2px; }

/* ---- 校区卡 ---- */
.campus-card { background: var(--bg-light); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.campus-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.campus-card .address { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.campus-card .schools { font-size: 13px; color: var(--text-light); }
.campus-card .schools strong { color: var(--text); }

/* ---- 品牌卡（首页品牌矩阵） ---- */
.brand-card { text-align: center; }
.brand-card img.brand-logo { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 16px; }
.brand-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.brand-card p { color: var(--text-light); font-size: 13px; margin-bottom: 12px; }

/* ---- 师资卡 ---- */
.teacher-card { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.teacher-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.teacher-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.teacher-card .title { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.teacher-card p { color: var(--text-light); font-size: 13px; }

/* ---- 师资：三级视觉层次（校长 banner 最突出 / 联合创始人次之 / 教师网格最末） ---- */
.principal-card { display:flex; gap:24px; align-items:center; background:linear-gradient(135deg,var(--bg-tint),#fff); border:2px solid var(--primary); border-radius:18px; padding:28px; margin-bottom:24px; box-shadow:0 6px 20px rgba(0,0,0,.08); }
.principal-photo { width:120px; height:120px; border-radius:20px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:56px; flex-shrink:0; border:4px solid var(--primary); box-shadow:0 4px 12px rgba(0,0,0,.1); overflow:hidden; }
.principal-photo img { width:100%; height:100%; object-fit:cover; }
.principal-body { flex:1; min-width:0; }
.principal-badge { display:inline-block; background:var(--primary); color:#fff; padding:5px 14px; border-radius:20px; font-size:13px; font-weight:700; margin-bottom:10px; }
.principal-name { margin:0 0 4px; font-size:28px; color:var(--primary-dark); font-weight:800; }
.principal-title { margin:0 0 10px; font-size:15px; color:var(--text-light); }
.principal-bio { margin:0 0 14px; font-size:15px; line-height:1.6; color:#555; }
.principal-tags { display:flex; flex-wrap:wrap; gap:8px; }
.ptag { background:#fff; border:1px solid var(--primary-light); color:var(--primary-dark); padding:4px 12px; border-radius:14px; font-size:12px; font-weight:600; }
.featured-teachers { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px; margin-bottom:36px; }
.featured-teacher { display:flex; gap:18px; align-items:center; background:var(--bg); border-radius:14px; padding:22px; box-shadow:0 4px 14px rgba(0,0,0,.07); border-left:5px solid var(--primary); }
.ft-photo { width:84px; height:84px; border-radius:50%; background:var(--bg-tint); display:flex; align-items:center; justify-content:center; font-size:38px; flex-shrink:0; border:3px solid var(--primary-light); overflow:hidden; }
.ft-photo img { width:100%; height:100%; object-fit:cover; }
.ft-info h3 { margin:0 0 2px; font-size:19px; }
.ft-role { display:inline-block; color:var(--primary); font-weight:700; font-size:13px; margin-bottom:6px; }
.ft-info p { margin:0; font-size:14px; color:#666; line-height:1.5; }
.teachers-subtitle { font-size:15px; color:var(--text-light); margin:0 0 16px; padding-bottom:8px; border-bottom:2px solid var(--bg-tint); }
@media (max-width:600px){ .principal-card{ flex-direction:column; text-align:center; } .principal-tags{ justify-content:center; } }

/* ---- FAQ（原生 details，无 JS 依赖，SEO 友好） ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.faq-item summary { padding: 20px 24px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 24px 20px; color: var(--text-light); font-size: 15px; }

/* ---- About ---- */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { color: var(--text-light); font-size: 16px; margin-bottom: 16px; }

/* ---- Viky 产品模块（朗训成长中心） ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.product-item { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 20px; border-radius: 8px; }
.product-item h4 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.product-item p { font-size: 13px; color: var(--text-light); }

/* ---- 面包屑 ---- */
.breadcrumb { max-width: var(--container); margin: 0 auto; padding: 16px 24px; font-size: 14px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---- Footer ---- */
footer { background: #1e293b; color: #94a3b8; padding: 48px 24px 24px; }
.footer-content { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-section h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; font-size: 14px; }
.footer-section a { color: #94a3b8; text-decoration: none; }
.footer-section a:hover { color: #fff; }
.footer-bottom { max-width: var(--container); margin: 32px auto 0; padding-top: 24px; border-top: 1px solid #334155; text-align: center; font-size: 13px; }
.footer-bottom a { color: #94a3b8; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; background: #fff; padding: 8px 24px;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .nav-links.nav-open { display: flex; }
    .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-cta { display: none; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 28px; }
    .section { padding: 56px 24px; }
    .section-title h2 { font-size: 26px; }
}

/* ============================================================
   花语螺品牌环：首页五大品牌环形排列 + 整环慢转（文字始终正立）
   ============================================================ */
.brand-wheel { position: relative; width: 100%; max-width: 540px; height: 460px; margin: 0 auto; }
.brand-wheel-ring { position: absolute; inset: 0; animation: bw-spin 48s linear infinite; }
.brand-wheel-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 3; }
.brand-wheel-center img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; box-shadow: var(--shadow-lg); border: 3px solid #fff; background: #fff; }
.brand-wheel-center strong { display: block; font-size: 18px; color: var(--primary); }
.brand-wheel-center span { font-size: 12px; color: var(--text-light); }
.brand-petal { position: absolute; top: 50%; left: 50%; width: 132px; transform: translate(-50%,-50%) rotate(var(--a)) translateY(-172px) rotate(calc(var(--a) * -1)); }
.brand-petal-inner { animation: bw-spin-rev 48s linear infinite; }
.brand-petal a { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.brand-petal a:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); }
.brand-petal img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 4px; }
.brand-petal strong { display: block; font-size: 13px; color: var(--text); }
.brand-petal small { color: var(--text-light); font-size: 11px; }
@keyframes bw-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes bw-spin-rev { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.brand-wheel:hover .brand-wheel-ring,
.brand-wheel:hover .brand-petal-inner { animation-play-state: paused; }
.brand-grid-mobile { display: none; }
@media (prefers-reduced-motion: reduce) {
    .brand-wheel-ring, .brand-petal-inner { animation: none; }
}
@media (max-width: 600px) {
    .brand-wheel { display: none; }
    .brand-grid-mobile { display: grid; }
}

/* ============================================================
   校区卡可点击 + 校区页（地址/联系/地图导航）
   ============================================================ */
.campus-card-link { display: block; text-decoration: none; color: inherit; }
.campus-card { cursor: pointer; transition: transform .2s, box-shadow .2s; }
.campus-card-link:hover .campus-card { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.campus-card .more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 15px; line-height: 1.6; }
.info-row .ico { font-size: 20px; flex-shrink: 0; }
.info-row .k { color: var(--text-light); min-width: 84px; flex-shrink: 0; }
.info-row .v { color: var(--text); }
.info-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 760px; margin: 0 auto; }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.map-actions a { display: inline-block; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.map-amap { background: #02B3E4; color: #fff; }
.map-baidu { background: #2932E1; color: #fff; }
.map-box { background: var(--bg-light); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--text-light); font-size: 14px; }


/* ---- 顶部导航常驻电话（全站每页可见） ---- */
.nav-phone { color:var(--primary); font-weight:700; font-size:15px; text-decoration:none; white-space:nowrap; font-family:"YouYuan","幼圆","Varela Round","Comfortaa",-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; }
.nav-phone:hover { color:var(--primary-dark); text-decoration:underline; }
@media (max-width:768px){ .nav-phone{ display:none; } }

/* ---- 右侧悬浮咨询按钮（电话+微信，滚到哪都在） ---- */
.float-contact { position:fixed; right:20px; bottom:24px; z-index:200; display:flex; flex-direction:column; gap:12px; align-items:flex-end; }
.fc-btn { width:52px; height:52px; border-radius:50%; border:none; color:#fff; font-size:22px; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.22); display:flex; align-items:center; justify-content:center; text-decoration:none; line-height:1; transition:transform .2s; }
.fc-btn:hover { transform:scale(1.08); }
.fc-phone { background:var(--primary); }
.fc-wechat { background:#07c160; }
.fc-qr { display:none; position:absolute; right:0; bottom:calc(100% + 12px); width:max-content; background:#fff; border:1px solid var(--border); border-radius:14px; padding:14px; box-shadow:0 10px 30px rgba(0,0,0,.25); text-align:center; }
.fc-qr.show { display:block; }
.fc-qr img { width:160px; height:160px; object-fit:cover; border-radius:10px; display:block; }
@media (max-width:600px){ .fc-btn{ width:48px; height:48px; font-size:20px; } .fc-qr{ padding:10px; } .fc-qr img{ width:128px; height:128px; } }
