/*
Theme Name: Houya Austria
Theme URI: https://www.autedu.org/
Author: Houya Education
Version: 1.0
Description: 厚雅奥地利留学网主题 - 红白奥地利视觉风格，含智能选校系统与院校库模板
*/

:root {
  --red: #C41E3A;
  --red-dark: #8B0012;
  --ink: #1f2430;
  --gray: #5b6270;
  --line: #e6e8ec;
  --bg: #f7f8fa;
  --white: #fff;
  --radius: 12px;
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 导航 */
header.site {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand img { height: 38px; width: auto; }
.brand span { line-height: 1.25; }
.brand small { display: block; font-size: 10px; color: var(--gray); font-weight: 400; letter-spacing: 1px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.on { background: #fdecee; color: var(--red); }
.nav-links a.btn {
  background: var(--red); color: #fff; font-weight: 600;
}
.nav-links a.btn:hover { background: var(--red-dark); color: #fff; }
.nav-links a.nav-user { font-size: 13.5px; color: var(--gray); border: 1px dashed var(--line); border-radius: 8px; }
.nav-links a.nav-user:hover { background: #fdecee; color: var(--red); border-color: var(--red); }

/* hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(196,30,58,.16), transparent),
    radial-gradient(600px 300px at 10% 110%, rgba(196,30,58,.10), transparent),
    var(--white);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.25; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.sub { color: var(--gray); margin: 18px 0 30px; font-size: 16.5px; max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .primary {
  background: var(--red); color: #fff; padding: 13px 30px; border-radius: 10px;
  font-weight: 600; box-shadow: 0 8px 24px rgba(196,30,58,.28);
}
.hero-cta .ghost {
  border: 1.5px solid var(--line); background: #fff; padding: 13px 26px;
  border-radius: 10px; font-weight: 600; color: var(--ink);
}
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats b { font-size: 26px; color: var(--red); display: block; }
.hero-stats span { font-size: 13px; color: var(--gray); }

/* hero 卡片 */
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; box-shadow: 0 20px 50px rgba(31,36,48,.08);
}
.hero-card h3 { font-size: 16px; margin-bottom: 14px; }
.qa { display: grid; gap: 10px; }
.qa a {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font-size: 14px; transition: .15s;
}
.qa a:hover { border-color: var(--red); background: #fdecee; }
.qa a::after { content: "→"; color: var(--red); font-weight: 700; }
.hero-card .tel { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--gray); }
.hero-card .tel b { color: var(--ink); font-size: 16px; }

/* 通用 section */
section.block { padding: 64px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.sec-head h2 { font-size: 26px; letter-spacing: .5px; }
.sec-head h2 span { color: var(--red); margin-right: 8px; }
.sec-head .more { font-size: 14px; color: var(--red); font-weight: 600; }
.sec-head .more:hover { text-decoration: underline; }

/* 金牌服务 */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: .18s; position: relative; overflow: hidden;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(31,36,48,.10); border-color: #f0b9c2; }
.svc .ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.svc:nth-child(1) .ico { background: #fdecee; }
.svc:nth-child(2) .ico { background: #e8f0fe; }
.svc:nth-child(3) .ico { background: #f3ecfb; }
.svc:nth-child(4) .ico { background: #fdf3e3; }
.svc h3 { font-size: 17px; margin-bottom: 8px; }
.svc p { font-size: 13.5px; color: var(--gray); }
.svc .tag {
  display: inline-block; margin-top: 14px; font-size: 12px; color: var(--red);
  background: #fdecee; border-radius: 999px; padding: 3px 12px; font-weight: 600;
}

/* 院校卡 */
.schools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.school {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .18s; display: flex; flex-direction: column;
}
.school:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(31,36,48,.10); }
.school .cover { height: 108px; position: relative; display: flex; align-items: center; justify-content: center; }
.school .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.30)); }
.school .cover .abbr { font-size: 26px; font-weight: 800; color: rgba(255,255,255,.95); letter-spacing: 1px; z-index: 1; }
.school .badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px;
  background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 10px; font-weight: 600;
}
.school .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.school h3 { font-size: 15px; margin-bottom: 4px; }
.school p { font-size: 12.5px; color: var(--gray); flex: 1; }
.school .meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.school .meta span {
  font-size: 11px; color: var(--gray); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}

/* 文章列表 */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.art {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: .18s; display: flex; flex-direction: column;
}
.art:hover { border-color: #f0b9c2; box-shadow: 0 10px 26px rgba(31,36,48,.08); }
.art .cat {
  align-self: flex-start; font-size: 11.5px; color: var(--red); background: #fdecee;
  border-radius: 999px; padding: 3px 11px; font-weight: 600; margin-bottom: 12px;
}
.art h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 10px; }
.art h3 a:hover { color: var(--red); }
.art p { font-size: 13.5px; color: var(--gray); flex: 1; }
.art .foot { margin-top: 14px; font-size: 12px; color: #9aa0ab; }

/* 为什么选我们 */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why .item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why b { font-size: 22px; color: var(--red); display: block; margin-bottom: 6px; }
.why p { font-size: 13.5px; color: var(--gray); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  border-radius: 18px; color: #fff; padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 24px; margin-bottom: 8px; }
.cta-band p { opacity: .88; font-size: 14.5px; }
.cta-band a.pill {
  background: #fff; color: var(--red); font-weight: 700; padding: 13px 32px;
  border-radius: 999px; font-size: 15px;
}

/* footer */
footer.site { background: #191d26; color: #aeb4bf; margin-top: 80px; padding: 56px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer.site a { display: block; font-size: 13.5px; padding: 4px 0; }
footer.site a:hover { color: #fff; }
footer.site p { font-size: 13.5px; }
footer.site .qr img { width: 168px; border-radius: 10px; margin-top: 10px; }
footer.site .partner img { height: 34px; margin-top: 14px; }
.copy { border-top: 1px solid #2a2f3a; margin-top: 40px; padding-top: 22px; font-size: 12.5px; text-align: center; color: #767d89; }
.copy a { color: #767d89; display: inline; }
.copy a:hover { color: #fff; }

/* 页面标题带 */
.pagehead { background: var(--white); border-bottom: 1px solid var(--line); padding: 46px 0; }
.pagehead h1 { font-size: 30px; margin-bottom: 8px; }
.pagehead p { color: var(--gray); font-size: 15px; }
.crumb { font-size: 13px; color: #9aa0ab; margin-bottom: 14px; }
.crumb a:hover { color: var(--red); }

/* 筛选器 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button {
  border: 1px solid var(--line); background: var(--white); padding: 8px 20px;
  border-radius: 999px; font-size: 14px; cursor: pointer; color: var(--ink); transition: .15s;
}
.filters button:hover { border-color: var(--red); color: var(--red); }
.filters button.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* 文章页 */
.art-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.art-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 42px; }
.art-main h1 { font-size: 28px; line-height: 1.4; margin-bottom: 14px; }
.art-meta { font-size: 13px; color: #9aa0ab; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.art-main h2 { font-size: 20px; margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--red); }
.art-main h3 { font-size: 16.5px; margin: 24px 0 10px; }
.art-main p { margin: 12px 0; }
.art-main ul { margin: 12px 0 12px 22px; }
.art-main li { margin: 6px 0; }
.art-main table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.art-main th { background: #fdecee; color: var(--red-dark); text-align: left; padding: 11px 14px; font-weight: 600; }
.art-main td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.art-main tr:nth-child(even) td { background: #fafbfc; }
.toc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; position: sticky; top: 88px; margin-bottom: 18px;
}
.toc h4 { font-size: 14.5px; margin-bottom: 12px; }
.toc a { display: block; font-size: 13.5px; color: var(--gray); padding: 6px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.toc a:hover { color: var(--red); border-color: var(--red); }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.side-card h4 { font-size: 14.5px; margin-bottom: 12px; }
.side-card a.side-link { display: block; font-size: 13.5px; padding: 7px 0; color: var(--gray); }
.side-card a.side-link:hover { color: var(--red); }

/* 响应式 */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .services, .schools-grid, .why { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: 1fr; }
  .art-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .brand small { display: none; }
}
@media (max-width: 560px) {
  .services, .schools-grid, .why { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .art-main { padding: 24px 20px; }
}
