/* template-site.html 专用样式（深色，配合 dark.css） */

.ts-page a { color: inherit; }

/* ---- Split (图文) ---- */
.ts-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ts-copy .dk-sub { max-width: none; }
.ts-media { position: relative; }
.ts-media::before {
  content: ''; position: absolute; left: -16px; top: -16px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(245,197,24,.35), transparent 70%);
  filter: blur(12px); z-index: 0;
}
.ts-media img {
  position: relative; z-index: 1; width: 100%; display: block;
  border-radius: 18px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

/* ---- 列表 ---- */
.ts-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ts-list li { position: relative; padding-left: 30px; font-size: .94rem; color: var(--text); line-height: 1.65; }
.ts-list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e5471d);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

/* ---- 模板卡片 ---- */
.ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ts-card { overflow: hidden; display: flex; flex-direction: column; }
.ts-preview {
  height: 200px; overflow: hidden; position: relative; flex-shrink: 0;
  background: #10151d; color: var(--muted);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.ts-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ts-card:hover .ts-preview img { transform: scale(1.06); }
.ts-preview svg { width: 46px; height: 46px; opacity: .5; }
.ts-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 24px; }
.ts-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--title-color); margin: 0 0 10px; line-height: 1.35; }
.ts-body p { font-size: .89rem; color: var(--body-color); line-height: 1.7; margin: 0 0 14px; flex: 1; }
.ts-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ts-tags .dk-tag { font-size: .74rem; padding: 3px 11px; }
.ts-actions { display: flex; gap: 10px; margin-top: auto; }
.ts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1; padding: 10px 16px; font-size: .85rem; font-weight: 600; text-decoration: none;
  border-radius: 10px; background: linear-gradient(135deg, var(--accent), #e5471d); color: #fff !important;
  transition: all .3s ease;
}
.ts-btn svg { width: 15px; height: 15px; }
.ts-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,92,51,.4); }
.ts-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--accent2) !important; }
.ts-btn-ghost:hover { background: rgba(255,92,51,.1); border-color: rgba(255,92,51,.4); box-shadow: none; }

/* ---- 特色功能 ---- */
.ts-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ts-feat { padding: 30px 26px; }
.ts-ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,92,51,.1); border: 1px solid rgba(255,92,51,.25); color: var(--accent2);
  margin-bottom: 18px; transition: all .35s ease;
}
.ts-ico svg { width: 26px; height: 26px; }
.ts-feat:hover .ts-ico { background: var(--accent); color: #fff; border-color: transparent; }
.ts-feat h3 { font-size: 1.05rem; font-weight: 700; color: var(--title-color); margin: 0 0 10px; }
.ts-feat p { font-size: .9rem; color: var(--body-color); line-height: 1.75; margin: 0; }

/* ---- 套餐 ---- */
.ts-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.ts-price-card { padding: 38px 30px 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ts-price-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--title-color); margin: 0 0 14px; }
.ts-amount { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: var(--accent); line-height: 1.15; }
.ts-amount span { font-size: 1rem; font-weight: 600; color: var(--accent2); margin-left: 4px; }
.ts-unit { font-size: .86rem; color: var(--muted); margin: 6px 0 22px; }
.ts-price-card .ts-list { margin: 0 0 26px; flex: 1; }
.ts-price-card .ts-list li { font-size: .89rem; }
.ts-price-btn { width: 100%; justify-content: center; }
.ts-price-featured {
  border-color: rgba(255,92,51,.5);
  background: linear-gradient(180deg, rgba(255,92,51,.12), var(--card));
  box-shadow: 0 20px 50px rgba(255,92,51,.16);
}
.ts-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #e5471d);
  padding: 5px 12px; border-radius: 999px;
}

/* ---- 响应式 ---- */
@media (max-width: 992px) {
  .ts-split { grid-template-columns: 1fr; gap: 40px; }
  .ts-media { order: -1; }
  .ts-grid { grid-template-columns: repeat(2, 1fr); }
  .ts-grid-3 { grid-template-columns: 1fr; }
  .ts-price { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ts-grid { grid-template-columns: 1fr; }
  .ts-feat { padding: 26px 22px; }
  .ts-price-card { padding: 30px 24px 26px; }
}