/* ============================================================
   画学艺术中心 - 官网样式
   现代 · 国际 · 高级 — 艺术教育品牌
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  background: #fafaf8;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* --- Typography --- */
h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 1.2rem; }
h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
p  { margin-bottom: 1rem; color: #555; }
a  { color: #1a1a1a; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* --- Layout --- */
.container { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Navigation --- */
nav {
  padding: 1.5rem 0;
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
nav .logo {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em;
  color: #1a1a1a;
}
nav .nav-links { display: flex; gap: 2.2rem; }
nav .nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: #888; border: none; letter-spacing: 0.02em;
  transition: color 0.2s;
}
nav .nav-links a:hover, nav .nav-links a.active { color: #1a1a1a; opacity: 1; }

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #fafaf8 0%, #f3f0ea 100%);
  margin: 0 -1.5rem;
  padding-left: 1.5rem; padding-right: 1.5rem;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero .sub { font-size: 1.15rem; color: #888; max-width: 520px; line-height: 1.7; }
.hero .accent-line {
  width: 3rem; height: 3px;
  background: #c2754a;
  margin: 2rem 0;
}

/* --- Section --- */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid #eee; }
.section-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #c2754a;
  margin-bottom: 1rem;
}
.section-intro { color: #888; font-size: 1.05rem; max-width: 560px; margin-bottom: 2rem; }

/* --- Alternating section backgrounds --- */
.section-alt { background: #f3f0ec; margin: 0 -1.5rem; padding: 4rem 1.5rem; }
.section-alt + .section-alt { border-top: none; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.card {
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1px solid #f0ede8;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.05rem; }
.card p  { font-size: 0.9rem; color: #777; margin: 0; }
.card .price { font-size: 1.2rem; font-weight: 700; color: #1a1a1a; margin: 0.5rem 0; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #c2754a;
  background: #fdf5f0;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}

/* --- Large feature card --- */
.card-feature {
  padding: 2.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #f0ede8;
}
.card-feature h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card-feature p  { font-size: 0.95rem; color: #777; }

/* --- Article list --- */
.article-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: baseline;
}
.article-item:last-child { border-bottom: none; }
.article-item h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.article-item .meta { font-size: 0.85rem; color: #aaa; white-space: nowrap; margin-left: 1rem; }
.article-item .meta .tag-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #c2754a; margin-right: 0.5rem; }

/* --- FAQ --- */
.faq-item { padding: 1.8rem 0; border-bottom: 1px solid #eee; }
.faq-item:last-child { border-bottom: none; }
.faq-item .q { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-item .a { color: #555; }

/* --- Feature list --- */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 1.4rem 0;
  border-bottom: 1px solid #eee;
  display: flex; gap: 1.5rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  background: #f3f0ec;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: #c2754a;
}
.feature-list .content h4 { font-size: 1rem; font-weight: 600; margin: 0 0 0.3rem; }
.feature-list .content p  { font-size: 0.9rem; color: #777; margin: 0; }

/* --- Number badge (inline) --- */
.num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  background: #f3f0ec; border-radius: 50%;
  font-size: 0.75rem; font-weight: 700; color: #c2754a;
  margin-right: 0.8rem; flex-shrink: 0;
}

/* --- Community grid --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem; margin-top: 1.5rem;
}
.community-item {
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid #f0ede8;
  border-radius: 6px;
  font-size: 0.88rem; color: #555;
  transition: border-color 0.2s;
}
.community-item:hover { border-color: #c2754a; }

/* --- Price table --- */
.price-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.price-table th, .price-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.price-table th { font-weight: 600; color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.price-table td { font-size: 0.93rem; }
.price-table .highlight { background: #fdfaf6; }

/* --- CTA Buttons --- */
.cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: #1a1a1a;
  color: #fff;
  border: none; border-radius: 6px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.cta:hover { background: #3d3d3d; color: #fff; opacity: 1; transform: translateY(-1px); }
.cta-secondary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  transition: border-color 0.2s;
}
.cta-secondary:hover { border-color: #1a1a1a; opacity: 1; }

/* --- Footer --- */
footer {
  margin-top: 6rem; padding: 3rem 0;
  background: #1a1a1a; color: #999;
  font-size: 0.85rem; line-height: 2;
}
footer .container { }
footer strong { color: #fff; }
footer a { color: #ccc; border: none; }

/* --- Mobile --- */
@media (max-width: 640px) {
  html { font-size: 15px; }
  nav .nav-links { gap: 1.2rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .article-item { flex-direction: column; }
  .article-item .meta { margin-left: 0; margin-top: 0.3rem; }
  .container { padding: 0 1rem; }
}
