/* 杭州当宏家政 - 主样式文件 */

:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --gold: #d4a017;
  --bg: #f7f7f7;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.top-bar {
  background: #222;
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-icon {
  width: 64px;
  height: 64px;
  background: url(/images/logo.png) no-repeat;
  background-size: cover;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo-text h1 {
  font-size: 26px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
}
.logo-text p {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}
.header-contact {
  text-align: right;
  color: var(--text-light);
  font-size: 13px;
}
.header-contact .phone {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

/* ===== NAV ===== */
nav {
  background: var(--primary);
}
nav .container {
  display: flex;
}
nav ul {
  display: flex;
  width: 100%;
}
nav ul li {
  flex: 1;
  text-align: center;
}
nav ul li a {
  display: block;
  padding: 14px 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--primary-dark);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BANNER / HERO ===== */
.banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #5d0e0e 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.banner h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.banner p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }
.btn-red {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}
.btn-red:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ===== SECTION ===== */
.section {
  padding: 55px 0;
}
.section-alt {
  background: var(--white);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-title .sub {
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 1px;
}
.section-title .divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.stat-box {
  background: var(--white);
  border-radius: 8px;
  text-align: center;
  padding: 30px 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.stat-box .num {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-box .unit { font-size: 16px; font-weight: 600; color: var(--primary); }
.stat-box .label { font-size: 14px; color: var(--text-light); margin-top: 6px; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.card-img {
  height: 180px;
  /* background: linear-gradient(135deg, #e8e8e8, #d0d0d0); */
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.card-body { padding: 18px; }
.card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.card-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.card-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  margin-top: 8px;
}

/* ===== NEWS LIST ===== */
.news-list li {
  border-bottom: 1px dashed var(--border);
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.news-list li:last-child { border-bottom: none; }
.news-date {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  min-width: 58px;
  flex-shrink: 0;
}
.news-date .day { font-size: 20px; font-weight: 700; line-height: 1; }
.news-title { font-size: 14px; color: var(--text); }
.news-title:hover { color: var(--primary); }

/* ===== TWO-COL LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}
.two-col-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar-box {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-box .box-title {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}
.sidebar-box .box-body { padding: 15px 18px; }
.sidebar-link-list li {
  border-bottom: 1px dashed var(--border);
  padding: 9px 0;
}
.sidebar-link-list li:last-child { border-bottom: none; }
.sidebar-link-list li a {
  font-size: 13px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}
.sidebar-link-list li a:hover { color: var(--primary); }
.sidebar-link-list li a span { color: var(--text-light); font-size: 12px; }

/* ===== TEACHER CARD ===== */
.teacher-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding: 24px 16px;
  transition: transform 0.2s;
}
.teacher-card:hover { transform: translateY(-4px); }
.teacher-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  font-weight: 700;
}
.teacher-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.teacher-card .title { color: var(--primary); font-size: 13px; margin-bottom: 10px; }
.teacher-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 0;
}
.page-header h2 { font-size: 28px; font-weight: 700; letter-spacing: 2px; }
.page-header .breadcrumb { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-header .breadcrumb a:hover { color: #fff; }

/* ===== KNOWLEDGE / RESOURCE ===== */
.resource-item {
  background: var(--white);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.resource-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.13); }
.resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.resource-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.resource-info p { font-size: 13px; color: var(--text-light); }
.resource-info .meta { font-size: 12px; color: #aaa; margin-top: 4px; }
.resource-btn {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 13px;
  flex-shrink: 0;
}
.resource-btn:hover { background: var(--primary-dark); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-text h4 { font-size: 14px; color: var(--text-light); margin-bottom: 3px; }
.contact-info-text p { font-size: 16px; font-weight: 600; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 5px; color: var(--text-light); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fafafa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea { height: 110px; resize: vertical; }
.map-placeholder {
  background: #e8e8e8;
  border-radius: 8px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 15px;
  margin-top: 20px;
}

/* ===== ABOUT ===== */
.about-content { line-height: 1.9; color: var(--text); font-size: 15px; }
.about-content p { margin-bottom: 16px; }
.highlight-box {
  background: #fff8f8;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
}
.feature-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-list li::before {
  content: '✦';
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
}
.cert-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.cert-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 18px 10px;
  box-shadow: var(--shadow);
}
.cert-box .icon { font-size: 32px; margin-bottom: 8px; }
.cert-box p { font-size: 13px; color: var(--text-light); }

/* ===== FOOTER ===== */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 40px;
}
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #333; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #aaa; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col .f-contact { font-size: 13px; margin-bottom: 8px; display: flex; gap: 8px; }
.footer-col .f-contact span:first-child { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #2d2d2d;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.footer-bottom a { color: #888; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col-equal { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 12px; text-align: center; }
  .header-contact { text-align: center; }
  .header-contact .phone { justify-content: center; }
  nav ul { flex-wrap: wrap; }
  nav ul li { flex: none; width: 33.33%; }
  .banner h2 { font-size: 24px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
