/* 拾光官网 · 品牌样式 */
@import url('https://fonts.googleapis.cn/css2?family=Noto+Serif+SC:wght@500;700&family=Noto+Sans+SC:wght@400;500;600&display=swap');

:root {
  --sg-primary: #ff7e5f;
  --sg-primary-dark: #e8623a;
  --sg-primary-light: #ffb99a;
  --sg-paper: #faf7f2;
  --sg-cream: #f5e6d8;
  --sg-text: #1a1a1a;
  --sg-sub: #9e8e84;
  --sg-border: #e8e0d8;
  --sg-radius: 16px;
  --sg-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
}

body {
  background: var(--sg-paper) !important;
  color: var(--sg-text);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

/* Blocksy 品牌色覆盖 */
:root {
  --theme-palette-color-1: #ff7e5f !important;
  --theme-palette-color-2: #e8623a !important;
  --theme-palette-color-3: #5c4f47 !important;
  --theme-palette-color-4: #1a1a1a !important;
  --theme-palette-color-5: #e8e0d8 !important;
  --theme-palette-color-6: #f5e6d8 !important;
  --theme-palette-color-7: #faf7f2 !important;
}

/* 顶栏 */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
  --height: 72px !important;
  background: rgba(250, 247, 242, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sg-border) !important;
}
[data-header*="type-1"] {
  --header-height: 72px !important;
}
[data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
  font-family: "Noto Serif SC", "Songti SC", serif !important;
  font-weight: 700 !important;
  color: var(--sg-text) !important;
  letter-spacing: 0.02em;
}
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  text-transform: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--sg-text) !important;
}
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a {
  color: var(--sg-primary) !important;
}

/* 按钮 */
.wp-block-button__link,
.ct-button,
button[type="submit"] {
  border-radius: 999px !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark)) !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(255, 126, 95, 0.35);
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 126, 95, 0.42);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid var(--sg-primary) !important;
  color: var(--sg-primary) !important;
  background: transparent !important;
}

/* 首页 Hero */
.sg-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 96px 24px 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 183, 154, 0.45), transparent 60%),
    linear-gradient(180deg, #fff8f3 0%, var(--sg-paper) 100%);
}
.sg-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.sg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 126, 95, 0.12);
  color: var(--sg-primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.sg-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-family: "Noto Serif SC", "Songti SC", serif;
}
.sg-hero-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--sg-sub);
  max-width: 34em;
  margin-bottom: 32px;
}
.sg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sg-hero-visual {
  position: relative;
  min-height: 420px;
}
.sg-card {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 280px;
  border-radius: var(--sg-radius);
  box-shadow: 0 20px 50px rgba(232, 98, 58, 0.25);
  transform: rotate(-6deg);
  z-index: 3;
}
.sg-glow {
  position: absolute;
  inset: 10% 5% auto;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 126, 95, 0.25), transparent 70%);
  filter: blur(8px);
}

/* App 手机 Mockup */
.sg-phone-frame {
  position: absolute;
  right: 6%;
  top: 4%;
  width: 240px;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(4deg);
  z-index: 2;
  animation: sg-float 5s ease-in-out infinite;
}
.sg-phone-notch {
  width: 72px;
  height: 6px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #333;
}
.sg-phone-screen {
  background: var(--sg-paper);
  border-radius: 24px;
  overflow: hidden;
  padding: 12px;
  min-height: 360px;
}
.sg-app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}
.sg-app-logo {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: "Noto Serif SC", serif;
}
.sg-app-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sg-border);
  margin-bottom: 12px;
}
.sg-app-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.sg-app-card strong {
  display: block;
  padding: 10px 12px 2px;
  font-size: 13px;
}
.sg-app-card span {
  display: block;
  padding: 0 12px 10px;
  font-size: 11px;
  color: var(--sg-sub);
}
.sg-app-pois {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.sg-app-poi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 10px;
  font-size: 11px;
  border: 1px solid var(--sg-border);
  color: var(--sg-sub);
}
.sg-app-poi.done {
  border-color: rgba(255, 126, 95, 0.35);
  background: rgba(255, 126, 95, 0.06);
  color: var(--sg-text);
}
.sg-app-nfc {
  text-align: center;
  font-size: 10px;
  color: var(--sg-primary-dark);
  padding: 8px;
  background: rgba(255, 126, 95, 0.1);
  border-radius: 999px;
  font-weight: 600;
}
@keyframes sg-float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-8px); }
}
.sg-card {
  animation: sg-float-card 6s ease-in-out infinite;
}
@keyframes sg-float-card {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-6px); }
}

/* 顶栏 CTA */
.sg-nav-cta-item {
  margin-left: 8px !important;
}
.sg-nav-cta {
  display: inline-block !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: 0 6px 18px rgba(255, 126, 95, 0.35);
  transition: transform 0.2s ease;
}
.sg-nav-cta:hover {
  transform: translateY(-1px);
  color: #fff !important;
}

/* 移动端菜单品牌色 */
[data-header*="type-1"] #offcanvas .ct-panel-inner {
  background: var(--sg-paper) !important;
}
[data-header*="type-1"] [data-id="mobile-menu"] {
  --theme-link-initial-color: var(--sg-text) !important;
}
[data-header*="type-1"] [data-id="mobile-menu"] .current-menu-item > a {
  color: var(--sg-primary) !important;
}

/* 通用区块 */
.sg-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 24px;
}
.sg-section-title {
  text-align: center;
  margin-bottom: 12px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.sg-section-sub {
  text-align: center;
  color: var(--sg-sub);
  margin: 0 auto 48px;
  max-width: 640px;
  line-height: 1.7;
}
.sg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sg-feature {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 28px 24px;
  box-shadow: var(--sg-shadow);
}
.sg-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sg-primary-light), var(--sg-cream));
  font-size: 22px;
  margin-bottom: 16px;
}
.sg-feature h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
}
.sg-feature p {
  margin: 0;
  color: var(--sg-sub);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* 步骤 */
.sg-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: sgstep;
}
.sg-step {
  background: #fff;
  border-radius: var(--sg-radius);
  padding: 24px 20px;
  border: 1px solid var(--sg-border);
  position: relative;
}
.sg-step::before {
  counter-increment: sgstep;
  content: counter(sgstep);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sg-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.sg-step h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.sg-step p {
  margin: 0;
  color: var(--sg-sub);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 主题展示 */
.sg-theme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--sg-cream));
  border: 1px solid var(--sg-border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--sg-shadow);
}
.sg-theme img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.sg-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.12);
  color: #1f8a3b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.sg-poi-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.sg-poi {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--sg-border);
  font-size: 13px;
  color: var(--sg-sub);
}

/* 明信片模版画廊 */
.sg-postcard-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.sg-postcard-item {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sg-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sg-postcard-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(232, 98, 58, 0.18);
}
.sg-postcard-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.sg-postcard-item h3 {
  margin: 12px 14px 4px;
  font-family: "Noto Serif SC", serif;
  font-size: 1.05rem;
}
.sg-postcard-item > p {
  margin: 0 14px 8px;
  font-size: 12px;
  color: var(--sg-sub);
  line-height: 1.5;
}
.sg-postcard-item .sg-postcard-desc {
  margin: 0 14px 16px;
  font-size: 13px;
  color: var(--sg-sub);
  line-height: 1.65;
}

/* 产品双卡 */
.sg-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sg-product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow);
}
.sg-product-head {
  padding: 28px 28px 0;
}
.sg-product-head h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", serif;
}
.sg-product-body {
  padding: 16px 28px 28px;
  color: var(--sg-sub);
  line-height: 1.7;
}
.sg-product-desc {
  margin: 8px 0 0;
  color: var(--sg-sub);
  line-height: 1.7;
  font-size: 0.95rem;
}
.sg-product-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 126, 95, 0.12);
  color: var(--sg-primary-dark);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.sg-product-card--featured {
  border-color: rgba(255, 126, 95, 0.35);
}
.sg-product-body h4 {
  margin: 20px 0 10px;
  font-size: 0.9rem;
  color: var(--sg-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sg-product-body h4:first-child {
  margin-top: 0;
}
.sg-product-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.85;
  font-size: 0.95rem;
}
.sg-product-list li {
  margin-bottom: 6px;
}
.sg-product-meta {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.sg-product-meta > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.sg-product-meta dt {
  color: var(--sg-sub);
  margin: 0;
}
.sg-product-meta dd {
  margin: 0;
  color: var(--sg-text);
}
.sg-spec-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.sg-spec-banner > div {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 20px;
  text-align: center;
}
.sg-spec-banner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--sg-text);
}
.sg-spec-banner span {
  font-size: 0.85rem;
  color: var(--sg-sub);
  line-height: 1.6;
}
.sg-compare {
  margin-top: 32px;
  overflow-x: auto;
}
.sg-compare table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  overflow: hidden;
  font-size: 0.9rem;
}
.sg-compare th,
.sg-compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sg-border);
  text-align: left;
  vertical-align: top;
}
.sg-compare th {
  background: var(--sg-cream);
  font-weight: 600;
  color: var(--sg-text);
}
.sg-compare tr:last-child td {
  border-bottom: none;
}
.sg-compare td:first-child {
  color: var(--sg-sub);
  width: 22%;
  font-weight: 500;
}

/* CTA */
.sg-cta {
  text-align: center;
  padding: 64px 24px;
  margin: 0 24px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
  color: #fff;
}
.sg-cta h2 {
  margin: 0 0 12px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.sg-cta p {
  margin: 0 0 24px;
  opacity: 0.92;
}
.sg-cta .wp-block-button__link {
  background: #fff !important;
  color: var(--sg-primary-dark) !important;
  box-shadow: none !important;
}

/* 自定义 HTML 页面隐藏 WP 默认标题（避免与 sg-section-title 重复） */
.page:has(.sg-section) .entry-header,
.page:has(.sg-hero) .entry-header {
  display: none !important;
}
.page:has(.sg-section) .entry-content,
.page:has(.sg-hero) .entry-content {
  padding-top: 0 !important;
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.page:has(.sg-section) .entry-content > *,
.page:has(.sg-hero) .entry-content > * {
  max-width: none !important;
}

/* 首页隐藏 WP 默认标题 */
.page-id-4 .entry-header,
.page-id-4 .hero-section,
.home .entry-header,
.home .hero-section {
  display: none !important;
}
.page-id-4 .entry-content,
.page-id-4 .ct-container-full,
.page-id-4 article.post {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.page-id-4 > .ct-container-full > article,
.page-id-4 .ct-container-full > article {
  padding-top: 0 !important;
}
[data-prefix="single_page"] .page-id-4 .entry-content > *:first-child {
  margin-top: 0 !important;
}

footer.ct-footer {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
footer.ct-footer [data-row="bottom"] {
  display: none !important;
}

/* 自定义页脚 */
.sg-site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 24px 32px;
  margin-top: 0;
}
.sg-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}
.sg-footer-brand {
  margin-bottom: 20px;
}
.sg-footer-brand strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2px;
}
.sg-footer-brand .sg-brand-en {
  display: block;
  font-style: normal;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--sg-primary-light);
  margin-bottom: 8px;
}
.sg-footer-brand span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}
.sg-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.sg-footer-links a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  font-size: 14px;
}
.sg-footer-links a:hover {
  color: var(--sg-primary-light) !important;
}
.sg-footer-legal {
  margin-bottom: 16px;
  font-size: 13px;
}
.sg-footer-legal a {
  color: rgba(255, 255, 255, 0.65) !important;
}
.sg-footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.sg-footer-copy a {
  color: rgba(255, 255, 255, 0.55) !important;
}
.sg-footer-contact {
  margin: 8px 0 0;
  font-size: 13px;
}
.sg-footer-contact a {
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none;
}
.sg-footer-contact a:hover {
  color: var(--sg-primary-light) !important;
}
.sg-footer-contact span {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.35);
}
.sg-footer-icp {
  margin: 8px 0 0;
  font-size: 12px;
}
.sg-footer-icp a {
  color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: none;
}
.sg-footer-icp a:hover {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* 法律文档页 */
.sg-legal {
  max-width: 720px !important;
}
.sg-legal-date {
  text-align: center;
  color: var(--sg-sub);
  font-size: 13px;
  margin: 0 0 8px;
}
.sg-legal-block {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 24px;
  margin-bottom: 16px;
}
.sg-legal-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--sg-text);
}
.sg-legal-block p {
  margin: 0;
  color: var(--sg-sub);
  line-height: 1.8;
  font-size: 0.95rem;
}
.sg-legal-block a {
  color: var(--sg-primary);
  font-weight: 600;
}

/* FAQ */
.sg-faq-item {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.sg-faq-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sg-text);
}
.sg-faq-item span {
  color: var(--sg-sub);
  line-height: 1.7;
  font-size: 0.95rem;
}

[data-header*="type-1"] .site-title a {
  font-family: "Noto Serif SC", "Songti SC", serif !important;
  letter-spacing: 0.01em;
}
/* Logo 点缀 */
[data-header*="type-1"] .site-title a::before {
  content: "拾";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
  color: #fff;
  font-size: 14px;
  vertical-align: middle;
  font-family: "Noto Serif SC", serif;
}

/* 内页 */
.page .entry-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.page .entry-header .page-title {
  text-align: center;
  font-family: "Noto Serif SC", serif;
}

@media (max-width: 900px) {
  .sg-hero-inner,
  .sg-theme,
  .sg-products,
  .sg-grid-3,
  .sg-steps,
  .sg-spec-banner {
    grid-template-columns: 1fr;
  }
  .sg-compare td:first-child {
    width: 30%;
  }
  .sg-product-meta > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .sg-hero {
    min-height: auto;
    padding-top: 72px;
  }
  .sg-hero-visual {
    min-height: 320px;
  }
  .sg-phone-frame {
    right: 10%;
    width: 200px;
  }
  .sg-phone-screen {
    min-height: 300px;
  }
  .sg-card {
    width: 220px;
  }
}
