/* ============================================================
   TAKING DESIGN 泰尔简日用品 - 暖色极简留白风
   主色板：暖白 / 米色 / 原木棕 / 炭灰
   ============================================================ */

:root {
  /* 暖色极简色板 */
  --bg: #FAF7F2;            /* 暖白背景 */
  --bg-alt: #F3EDE4;        /* 米色次背景 */
  --surface: #FFFFFF;       /* 卡片表面 */
  --primary: #A67B5B;       /* 原木棕（主强调色） */
  --primary-dark: #8A6346;  /* 深棕 */
  --text: #3D3A36;          /* 主文字（炭灰） */
  --text-light: #8A857D;    /* 次要文字 */
  --border: #E8E0D5;        /* 边框 */
  --shadow: rgba(61, 58, 54, 0.08);

  /* 字体 */
  --font-serif: "Georgia", "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 间距 */
  --container: none;
  --container-pad: 48px;
  --section-pad: 100px;
}

/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: opacity .3s; }
ul { list-style: none; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { padding: var(--section-pad) 0; }

/* ============ 通用标题 ============ */
.section-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* ============ 顶栏 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 100px; /* LOGO 与网站名称的间隔 */
  line-height: 1;
}

.logo span { color: var(--primary); }

.logo .logo-text {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-list { display: flex; gap: 36px; }

.nav-list a {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-light);
  position: relative;
  padding-bottom: 4px;
}

.nav-list a:hover { color: var(--text); }

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width .3s;
}

.nav-list a:hover::after { width: 100%; }
.nav-list a.active { color: var(--text); }
.nav-list a.active::after { width: 100%; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 24px; cursor: pointer;
  color: var(--text);
}

/* ============ Hero 区 ============ */
.hero {
  padding-top: 120px;
  padding-bottom: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.hero-text .hero-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 460px;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 2px;
  border: 1px solid var(--primary);
  transition: all .3s;
  cursor: pointer;
  background: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #fff; }

/* Hero 操作区：浏览作品 + 前往 AI 网站 */
.hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  flex-wrap: wrap;
}

.hero-ai-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-ai-btn {
  white-space: nowrap;
  padding: 9px 22px;
  font-size: 15px;
}

/* 首页「浏览作品」主按钮：更醒目 */
#hero-button {
  font-size: 18px;
}

.hero-ai-note {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* Hero 图占位 */
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image.placeholder {
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 2px;
  border: 1px dashed var(--border);
  min-height: 55vh;
}

/* ============ 作品工具条（分类 + 搜索） ============ */
.works-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.works-toolbar .category-filter {
  margin-bottom: 0;
}

.works-section {
  padding-top: 0;
}

.search-box {
  flex-shrink: 0;
}

.search-box input {
  width: 240px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
}

.search-box input:focus { border-color: var(--primary); }

/* ============ 作品网格 ============ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}

.work-card {
  background: var(--surface);
  overflow: hidden;
  transition: transform .4s, box-shadow .4s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
}

.work-card .card-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

/* 已售角标（作品卡片） */
.work-card .sold-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
  background: rgba(201, 74, 66, 0.92);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.work-card.is-sold .card-img img {
  filter: saturate(0.55);
}

/* 作品集页「已售 N 件」计数 */
.sold-count {
  margin: -10px 0 22px;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.sold-count b {
  color: var(--primary);
  font-size: 15px;
}

/* 详情页已售提示 */
.detail-sold-notice {
  padding: 42px 24px;
  margin: 8px 0 28px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.detail-sold-notice .sold-badge-lg {
  position: static;
  display: inline-block;
  padding: 8px 26px;
  font-size: 18px;
  letter-spacing: 6px;
  margin-bottom: 18px;
}

.detail-sold-notice p { margin: 8px 0 0; color: var(--text); }
.detail-sold-notice .sold-sub { color: var(--text-light); font-size: 14px; }
.detail-sold-notice .sold-date {
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--primary-dark);
  opacity: .85;
}
.detail-sold-notice .back-link { display: inline-block; margin-top: 14px; }

.work-card .card-img img {
  display: block;
  width: 100%; height: auto;
  transition: transform .6s;
}

.work-card:hover .card-img img { transform: scale(1.05); }

.card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 2px;
  border: 1px dashed var(--border);
  border-bottom: none;
  min-height: 220px;
}

.card-body { padding: 14px 16px 16px; }

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body .category {
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============ 首页简介区 ============ */
.intro-section { background: var(--bg-alt); }

.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-image {
  background: var(--bg);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 2px;
  min-height: 260px;
}

.intro-image img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-text h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 20px;
}

.intro-text p { color: var(--text-light); margin-bottom: 16px; }

/* ============ 页面头部（通用） ============ */
.page-hero {
  padding-top: 110px;
  padding-bottom: 18px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  margin-bottom: 8px;
}

.page-hero .kicker {
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ============ 关于页 ============ */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-block + .about-block { margin-top: 80px; }
.about-block.reverse .about-image { order: 2; }
.about-block.reverse .about-text { order: 1; }

.about-image {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 2px;
  min-height: 260px;
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 20px;
}

.about-text p { color: var(--text-light); margin-bottom: 16px; }

/* ============ 联系页 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-info p { color: var(--text-light); margin-bottom: 32px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item .icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--primary);
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.contact-item .value { font-size: 15px; }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .logo { color: #fff; }
.footer-inner .logo span { color: var(--primary); }

.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; letter-spacing: 1px; }
.footer-links a:hover { color: #fff; }

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
}

/* ============ 作品详情页 ============ */
.detail-section {
  padding-top: 100px;
  padding-bottom: 80px;
}

.detail-section .back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.detail-section .back-link:hover { color: var(--primary); }

.detail-title-wrap {
  text-align: center;
  margin: 28px auto 40px;
  max-width: 760px;
}

.detail-title-wrap .kicker {
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-title-wrap h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 0;
}

.want-btn-wrap {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.want-price {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1;
}

.want-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 40px;
  border-radius: 40px;
  font-size: 15px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.want-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166, 123, 91, 0.35);
}

.want-form {
  white-space: normal;
}

.want-form-row {
  margin-bottom: 10px;
}

.want-form-row label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.want-form-row .req {
  color: #c0392b;
  font-size: 11px;
  margin-left: 4px;
}

.want-form-row .opt {
  color: var(--text-light);
  font-size: 11px;
  margin-left: 4px;
}

.want-form-row input,
.want-form-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.want-form-row input:focus,
.want-form-row textarea:focus {
  border-color: var(--primary);
}

.want-form-row textarea {
  height: 72px;
  resize: none;
  overflow-y: auto;
}

.want-form-tip {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
  text-align: center;
}

.detail-cover {
  position: relative;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 2px;
  margin: 0 auto;
  min-height: 200px;
  max-width: 900px;
}

.detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-body {
  max-width: 760px;
  margin: 0 auto 64px;
}

.detail-body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
}

.detail-body p {
  color: var(--text-light);
  margin-bottom: 16px;
  white-space: pre-line;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 80px;
}

.detail-gallery .g-item {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  min-height: 200px;
}

.detail-gallery .g-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* 有图时隐藏占位虚线框并取消兜底高度，图片撑满宽度、无留白不裁剪 */
.hero-image:has(img),
.intro-image:has(img),
.about-image:has(img),
.detail-cover:has(img),
.detail-gallery .g-item:has(img) {
  border: none;
  min-height: 0;
}

/* 全站图片卡片统一圆角 */
.hero-image,
.intro-image,
.about-image,
.detail-cover,
.detail-gallery .g-item,
.work-card {
  border-radius: 16px;
  overflow: hidden;
}



/* ============ 分类筛选 ============ */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 24px;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-light);
  cursor: pointer;
  transition: all .3s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============ 分页 ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination .page-btn {
  min-width: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .3s;
}

.pagination .page-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pagination .page-dots { color: var(--text-light); }

/* ============ 加载与空状态 ============ */
.loading, .empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 2px;
}

.empty { font-family: var(--font-serif); font-size: 20px; }

/* ============ 移动端适配 ============ */
@media (max-width: 900px) {
  :root { --container-pad: 24px; }

  .nav-toggle { display: block; }

  .nav-list {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .3s;
  }

  .nav-list.open { transform: translateY(0); }

  .hero-inner,
  .intro-inner,
  .about-block,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-block.reverse .about-image { order: 1; }
  .about-block.reverse .about-text { order: 2; }

  .hero { padding-top: 100px; }
  .hero-text h1 { font-size: 40px; }
  .section-title { font-size: 30px; }
  .hero-actions { gap: 24px; }
  .hero-actions .btn { padding: 11px 22px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .detail-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .logo { gap: 20px; }
  .logo-text { font-size: 16px; letter-spacing: 2px; }
  .logo-img { height: 32px; max-width: 160px; }

  .works-toolbar { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .pagination .page-btn { padding: 7px 10px; }

  .seo-link-list { grid-template-columns: 1fr; }

  /* 移动端：作品列表自适应为每行 5 个（双类名保证覆盖主样式） */
  .seo-link-list.seo-work-list { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}

/* ============ 介绍页（SEO 纯文字页） ============ */
.seo-section { padding: 56px 0; }
.seo-section.alt { background: var(--bg-alt); }

.seo-block {
  max-width: 760px;
  margin: 0 auto;
}

.seo-block h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 18px;
}

.seo-block p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}

.seo-tagline {
  color: var(--primary) !important;
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 20px !important;
}

.seo-link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin: 0;
  padding: 0;
}

.seo-link-list li {
  list-style: none;
}

.seo-link-list a {
  display: inline-block;
  padding: 7px 0;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}

.seo-link-list a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 介绍页「全部作品」：每行并排 10 个，标题过长省略号，多出分页浏览 */
.seo-work-list {
  grid-template-columns: repeat(10, 1fr);
  gap: 8px 10px;
}

.seo-work-list li {
  min-width: 0;
}

.seo-work-list a {
  display: block;
  width: 100%;
  padding: 7px 2px;
  text-align: center;
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-work-list a:hover {
  color: var(--primary);
}

/* 介绍页「全部作品」分页按钮 */
.seo-works-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.seo-works-pagination .seo-page-btn {
  min-width: 34px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .3s;
}

.seo-works-pagination .seo-page-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.seo-works-pagination .seo-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.seo-works-pagination .seo-page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.seo-works-pagination .page-dots {
  color: var(--text-light);
}

.seo-contact {
  margin: 0;
  padding: 0;
}

.seo-contact li {
  list-style: none;
  padding: 8px 0;
  color: var(--text-light);
}

.seo-contact a { color: var(--primary); }
.seo-contact a:hover { opacity: .8; }
