:root {
  --cream: #FBF6EE;
  --card: #FFFFFF;
  --ink: #5C5146;
  --ink-soft: #9A8F84;
  --orange: #F2A05A;
  --orange-deep: #E98B3E;
  --orange-soft: #FBE4CC;
  --morandi-sage: #A8B8A4;
  --morandi-pink: #D9A7A0;
  --border: #EDE3D3;
  --shadow: 0 10px 28px rgba(194, 158, 112, 0.14);
  --shadow-hover: 0 16px 38px rgba(194, 158, 112, 0.24);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-round: "Quicksand", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  zoom: 90%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  font-family: var(--font-round);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 160, 90, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(168, 184, 164, 0.16), transparent 24%),
    radial-gradient(circle at 78% 85%, rgba(217, 167, 160, 0.12), transparent 26%),
    var(--cream);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- 左侧导航栏 ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 40px;
  width: 250px;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.62);
  border-right: 1px solid var(--border);
  box-shadow: 6px 0 24px rgba(194, 158, 112, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.3px;
  color: var(--ink);
  padding: 0 6px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #FFFDF9;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(233, 139, 62, 0.35);
}

.brand:hover .brand-badge {
  transform: rotate(-6deg) scale(1.05);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--orange-deep);
  background: rgba(242, 160, 90, 0.14);
}

.nav a.active {
  color: var(--orange-deep);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1.5px rgba(233, 139, 62, 0.28);
}

/* ---------- 内容区 ---------- */
.layout {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- 主体 ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px clamp(24px, 4vw, 56px) 64px;
}

/* 首页品牌区 */
.hero {
  text-align: center;
  margin: 8vh 0 10vh;
}

.hero .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #FFFDF9;
  font-size: 40px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(233, 139, 62, 0.35);
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.hero h1 .dot {
  color: var(--orange-deep);
}

.hero .slogan {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.8px;
}

.hero .intro {
  display: inline-block;
  margin-top: 32px;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: var(--shadow);
}

/* 子页面标题区 */
.page-header {
  margin: 6px 0 38px;
}

.page-header h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page-header p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- 工具卡片区 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--morandi-pink));
  opacity: 0;
  transition: opacity 0.25s ease;
}

a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

a.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: var(--orange-soft);
  border: 1px solid #F7D9B8;
}

.card:nth-child(2) .card-icon {
  background: #E6EDE2;
  border-color: #C9D6C4;
}

.card h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}

.card-arrow .arr {
  transition: transform 0.25s ease;
}

.card:hover .card-arrow .arr {
  transform: translateX(5px);
}

/* 即将上线占位卡 */
.card.soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 232px;
  background: rgba(255, 255, 255, 0.45);
  border: 2px dashed #D9C9B4;
  box-shadow: none;
}

.card.soon:hover {
  transform: none;
  box-shadow: none;
}

.card.soon::before {
  display: none;
}

.soon-plus {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid #D9C9B4;
  margin-bottom: 14px;
}

.card.soon p {
  flex: none;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 2px;
}

.soon-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--orange-deep);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}

.soon-link:hover {
  border-bottom-color: var(--orange-deep);
}

/* ---------- 文章列表 ---------- */
.article-list {
  max-width: 780px;
  margin: 0 auto;
  list-style: none;
}

.article-list li {
  margin-bottom: 16px;
}

.article-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.article-no {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.article-title {
  flex: 1;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.article-item:hover .article-title {
  color: var(--orange-deep);
}

.article-meta {
  flex: none;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.article-item.placeholder {
  background: rgba(255, 255, 255, 0.45);
  border-style: dashed;
  box-shadow: none;
}

.article-item.placeholder:hover {
  transform: none;
  box-shadow: none;
}

.article-item.placeholder .article-no {
  color: #B9AFA2;
  background: rgba(255, 255, 255, 0.7);
}

.article-item.placeholder .article-title {
  color: #B9AFA2;
  font-weight: 500;
}

/* ---------- 正文排版（关于/隐私/条款） ---------- */
.prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.prose p {
  margin: 10px 0;
}

.prose ul,
.prose ol {
  margin: 10px 0 10px 22px;
}

.prose li {
  margin: 6px 0;
}

.prose strong {
  color: var(--orange-deep);
}

.prose a {
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(233, 139, 62, 0.35);
}

.prose .updated {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 联系我们 ---------- */
.contact-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-box .card-icon {
  margin: 0 auto 20px;
}

.contact-box h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.contact-box p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.contact-email {
  display: inline-block;
  margin-top: 22px;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-deep);
  border-bottom: 2px solid var(--orange-soft);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-bottom-color: var(--orange-deep);
}

.contact-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.contact-copy {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 600;
  color: #FFFDF9;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(233, 139, 62, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(233, 139, 62, 0.35);
}

/* ---------- 页脚 ---------- */
footer {
  text-align: center;
  padding: 26px clamp(20px, 5vw, 56px) 30px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--orange-deep);
}

.footer-copy {
  margin-top: 14px;
  font-size: 12.5px;
  color: #B3A694;
  letter-spacing: 0.4px;
}

@media (max-width: 560px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .nav {
    flex-direction: row;
    justify-content: center;
    width: auto;
    gap: 6px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 15px;
    padding: 9px 14px;
    border-radius: 999px;
  }

  .hero {
    margin: 6vh 0 8vh;
  }

  .hero .intro {
    font-size: 14px;
    padding: 10px 18px;
  }

  .article-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .article-meta {
    width: 100%;
    text-align: right;
  }
}
