/* ========================================
   imwenzi.com — 样式表
   温暖 · 有个性 · 可读性优先
   ======================================== */

/* ----- CSS 变量 ----- */
:root {
  --bg: #fdf8f3;
  --text: #3b2d2a;
  --text-light: #6b5e5a;
  --text-muted: #9b8e88;
  --accent: #c4876b;
  --accent-hover: #b0705a;
  --green: #8a9e7e;
  --green-light: #e8efe3;
  --card-bg: #ffffff;
  --border: #e8ddd3;
  --shadow-sm: 0 1px 3px rgba(61, 44, 44, 0.05);
  --shadow: 0 2px 20px rgba(61, 44, 44, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --max-width: 700px;
  --nav-height: 60px;
}

/* ----- 全局重置 ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ----- 排版 ----- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1em; color: var(--text-light); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ----- 布局 ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- 导航 ----- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(253, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: none;
}
.nav-brand:hover {
  color: var(--accent);
  border-bottom: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-light);
  border-bottom: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom: none;
}

/* ----- Hero ----- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.3em;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ----- 关于我 ----- */
.about {
  padding: 0 0 48px;
}

.about p {
  font-size: 1.05rem;
}

/* ----- 价值卡片 ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 0 48px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ----- CTA ----- */
.cta {
  text-align: center;
  padding: 48px 0 64px;
}

.cta h2 {
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  border-bottom: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  margin-left: 12px;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ----- 分隔线 ----- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ----- 区域通用 ----- */
.section {
  padding: 48px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ----- 服务详情列表 ----- */
.service-list {
  list-style: none;
  padding: 0;
}

.service-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.service-item h3 {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-sans);
}

/* ----- 页脚 ----- */
.footer {
  text-align: center;
  padding: 32px 0 48px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  border-bottom: 1px dotted var(--border);
}
.footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ----- 响应式 ----- */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 2.2rem; }
  .cards { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .btn-outline { margin-left: 0; margin-top: 10px; display: block; }
}
