/* Autumn Dragon 暖棕低饱和配色体系 */
:root {
  --bg-main: #F8F5F0;
  --bg-card: #FFFFFF;
  --text-dark: #4A3F35;
  --text-light: #7a6e62;
  --primary: #A67C52;
  --primary-light: #D4B996;
  --primary-dark: #8B6643;
  --border: #E5DFD5;
  --tag: #C1A586;
  --shadow: 0 4px 16px rgba(166,124,82,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 导航栏 */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
}
.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  margin-left: 24px;
  transition: 0.3s;
}
.nav-menu a:hover {
  color: var(--primary);
}
.lang-btn {
  padding: 6px 14px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: 0.3s;
}
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* 分区标题 */
.section-title {
  text-align: center;
  margin: 60px 0 40px;
  font-size: 28px;
  color: var(--primary-dark);
}

/* 按钮 */
.btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-taobao {
  background: #ff4400;
  color: #fff;
}
.btn-pdd {
  background: #e02020;
  color: #fff;
}

/* 爆款产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.product-info {
  padding: 20px;
}
.product-name {
  font-size: 18px;
  margin-bottom: 8px;
}
.product-price {
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.btn-group {
  display: flex;
  gap: 10px;
}

/* 文章列表 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.article-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-info {
  padding: 20px;
}
.article-title {
  font-size: 17px;
  margin-bottom: 8px;
}
.article-desc {
  color: var(--text-light);
  font-size: 14px;
}

/* 产品详情页样式 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 60px 0;
}
.product-detail-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-detail-name {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-dark);
}
.product-detail-price {
  font-size: 28px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 30px;
}
.product-detail-desc {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
}
.product-detail-desc p {
  margin-bottom: 15px;
}
.product-detail-buttons {
  display: flex;
  gap: 15px;
}
.product-detail-btn {
  flex: 1;
  padding: 14px 0;
  font-size: 16px;
}

/* 文章详情页样式 */
.article-detail {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}
.article-detail-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-dark);
}
.article-detail-meta {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}
.article-detail-content {
  line-height: 1.8;
  color: var(--text-dark);
}
.article-detail-content p {
  margin-bottom: 20px;
}
.article-detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 30px 0;
}
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover {
  color: var(--primary-dark);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
}

/* 双语隐藏类 */
.en { display: none; }
.zh { display: block; }
body.lang-en .en { display: block; }
body.lang-en .zh { display: none; }

/* 响应式手机适配 */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .section-title { font-size: 22px; }
  .product-grid, .article-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-name { font-size: 24px; }
  .product-detail-price { font-size: 22px; }
  .article-detail-title { font-size: 24px; }
}