/* 如意堂 - 主样式表 */

:root {
  --ink: #1C1917;
  --ink-light: #2D2A27;
  --paper: #FFFBEB;
  --paper-dark: #FEF3C7;
  --accent: #B45309;
  --accent-light: #D97706;
  --text: #292524;
  --text-muted: #78716C;
  --text-light: #A8A29E;
  --border: #D6D3D1;
  --border-light: #E7E5E4;
  --success: #16A34A;
  --warning: #B45309;
  --gold: #D97706;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "STSong", "SimSun", "Songti SC", serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

img { max-width: 100%; display: block; }

/* 导航栏 */
.nav {
  background: var(--ink);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #FEF3C7;
}

.nav-brand-icon {
  width: 34px;
  height: 34px;
  background: #FEF3C7;
  color: var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: var(--font-serif);
  font-weight: 700;
}

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

.nav-links a {
  color: #A8A29E;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FEF3C7;
}

/* 页面容器 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(180,83,9,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tag {
  background: var(--ink);
  color: #FEF3C7;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-mono);
}

.hero-tag.vip {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}

/* 分区标题 */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 产品网格 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: left;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.tool-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-card-badge {
  display: inline-block;
  background: var(--text-light);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 12px;
}

.tool-card-badge.member {
  background: var(--gold);
}

/* 产品详情页 */
.product-hero {
  padding: 60px 0 40px;
}

.product-hero .breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.product-hero .breadcrumb a { color: var(--accent); }

.product-hero h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 12px;
}

.product-hero .subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding-bottom: 60px;
}

.product-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  margin: 32px 0 12px;
}

.product-body h2:first-child { margin-top: 0; }

.product-body p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.product-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.product-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.product-body code {
  background: var(--paper-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-mono);
}

.product-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.sidebar-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.sidebar-meta dt {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-meta dt:first-child { margin-top: 0; }

.sidebar-meta dd {
  margin-top: 2px;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 特性列表 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 50px 0 60px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 下载区 */
.download-section {
  padding: 60px 0;
}

.download-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.download-card:hover {
  border-color: var(--accent);
}

.download-icon {
  font-size: 36px;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-info { flex: 1; }

.download-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.download-info .meta {
  font-size: 13px;
  color: var(--text-muted);
}

.download-card .btn {
  width: auto;
  flex-shrink: 0;
}

/* 页脚 */
.footer {
  background: var(--ink);
  color: #A8A29E;
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.footer a { color: #FEF3C7; }
.footer a:hover { color: #FFF; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 16px auto;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .tools-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .product-content { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}
