/*
Theme Name:   Amber Child
Theme URI:    https://finalamber.com
Description:  定格琥珀 子主题 — 基于 VIMart Minimal Market，仅含品牌样式与结构覆盖
Author:       Final Amber
Template:     vimart-minimal-market
Version:      0.1.7
Text Domain:  amber-child
*/

:root{
  --amber-ink:#141210;
  --amber-bg:#faf7f2;
  --amber-accent:#b7791f;
  --amber-line:#e6ddd0;
  --amber-muted:#6b6257;
  --amber-radius:2px;
  --amber-maxw:1240px;
}

body{ background:var(--amber-bg); color:var(--amber-ink); }

/* 首屏：单张大图，不做轮播 */
.amber-hero{ position:relative; display:grid; place-items:center; min-height:78vh; overflow:hidden; }
.amber-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.amber-hero__inner{ position:relative; text-align:center; color:#fff; padding:2rem; }
.amber-hero__brand{ font-size:clamp(2.4rem,6vw,4.6rem); letter-spacing:.28em; text-transform:uppercase; margin:0; font-weight:400; }
.amber-hero__sub{ margin:.9rem 0 1.6rem; letter-spacing:.12em; font-size:.95rem; opacity:.9; }

/* 分类入口 */
.amber-forms{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; max-width:var(--amber-maxw); margin:4rem auto; padding:0 1rem; }
.amber-forms a{ position:relative; display:block; overflow:hidden; border:1px solid var(--amber-line); }
.amber-forms img{ width:100%; aspect-ratio:4/5; object-fit:cover; transition:transform .5s ease; }
.amber-forms a:hover img{ transform:scale(1.03); }
.amber-forms span{ position:absolute; left:0; right:0; bottom:0; padding:1rem; background:linear-gradient(transparent,rgba(0,0,0,.6)); color:#fff; letter-spacing:.1em; }

/* 单品卡：少字，多图 */
.amber-grid .product{ background:transparent; border:0; }
.amber-grid .product .woocommerce-loop-product__title{ font-size:.95rem; letter-spacing:.02em; }
.amber-grid .price{ color:var(--amber-muted); font-size:.9rem; }

@media (max-width:820px){
  .amber-forms{ grid-template-columns:1fr; }
  .amber-hero{ min-height:62vh; }
}


/* ===== 杂志型首页 ===== */
.amber-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:1240px;margin:56px auto;padding:0 16px}
.amber-tile{position:relative;display:block;overflow:hidden;background:#111}
.amber-tile img{width:100%;height:100%;min-height:280px;object-fit:cover;display:block;transition:transform .6s ease;opacity:.92}
.amber-tile:hover img{transform:scale(1.04)}
.amber-tile span{position:absolute;left:0;right:0;bottom:0;padding:18px 20px;color:#fff;letter-spacing:.14em;font-size:13px;background:linear-gradient(transparent,rgba(0,0,0,.55))}
.amber-rail{display:flex;gap:16px;overflow-x:auto;padding:8px 16px 24px;scroll-snap-type:x mandatory}
.amber-rail > *{flex:0 0 240px;scroll-snap-align:start}
.amber-story{max-width:760px;margin:64px auto;padding:0 20px;line-height:1.85}
.amber-story h2{font-family:Georgia,serif;font-weight:400;font-size:28px;letter-spacing:.04em;margin:0 0 18px}
.amber-story p{color:#3a352e;margin:0 0 16px}
.amber-sect{max-width:1240px;margin:0 auto;padding:0 16px}
.amber-sect h2{font-family:Georgia,serif;font-weight:400;font-size:22px;letter-spacing:.08em;margin:56px 0 20px}
@media(max-width:760px){.amber-tiles{grid-template-columns:1fr}.amber-rail > *{flex-basis:200px}}

/* 法务页脚 */
.amber-legal{background:#141210;color:#b9b2a6;padding:44px 20px 28px;margin-top:60px;font-size:13px}
.amber-legal__inner{max-width:1100px;margin:0 auto;text-align:center}
.amber-legal__name{letter-spacing:.06em;margin:0 0 16px;color:#faf7f2}
.amber-legal nav{display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:center;margin-bottom:18px}
.amber-legal nav a{color:#b9b2a6;text-decoration:none;letter-spacing:.04em}
.amber-legal nav a:hover{color:#b7791f}
.amber-legal__copy{margin:0;color:#6f675c;font-size:12px}


/* ===== 首页（A 美术馆版） ===== */
.ah-hero{position:relative;height:78vh;min-height:520px;overflow:hidden;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw}
.ah-hero img{width:100%;height:100%;object-fit:cover;filter:brightness(.72);display:block}
.ah-hero .ah-in{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#fff}
.ah-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,8vw,86px);letter-spacing:.32em;margin:0;font-weight:400;color:#fff}
.ah-hero p{letter-spacing:.2em;font-size:12px;margin:16px 0 26px;color:#f2ece2}
.ah-hero a{border:1px solid #fff;color:#fff;padding:13px 30px;text-decoration:none;font-size:12px;letter-spacing:.2em;display:inline-block}
.ah-hero a:hover{background:#fff;color:#141210}
.ah-sec{max-width:1240px;margin:0 auto;padding:72px 18px}
.ah-sec h2{font-family:Georgia,serif;font-weight:400;font-size:26px;letter-spacing:.08em;margin:0 0 30px;color:#141210}
.ah-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.ah-card{text-decoration:none;color:#141210;display:block}
.ah-card img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;background:#eee}
.ah-card .ah-n{display:block;font-size:13px;margin:10px 0 3px;line-height:1.4}
.ah-card .ah-p{display:block;font-size:13px;color:#6b6257}
.ah-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.ah-tile{position:relative;display:block;overflow:hidden}
.ah-tile img{width:100%;height:320px;object-fit:cover;display:block;filter:brightness(.85)}
.ah-tile span{position:absolute;left:0;right:0;bottom:0;padding:18px;color:#fff;letter-spacing:.14em;font-size:13px;background:linear-gradient(transparent,rgba(0,0,0,.55))}
.ah-story{background:#141210;color:#faf7f2;padding:90px 20px;text-align:center;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw}
.ah-story h2{color:#faf7f2;font-family:Georgia,serif;font-weight:400;font-size:28px;margin:0 0 18px}
.ah-story p{max-width:640px;margin:0 auto;color:#b9b2a6;line-height:1.85}
@media(max-width:900px){.ah-grid{grid-template-columns:repeat(2,1fr)}.ah-tiles{grid-template-columns:1fr}.ah-hero{height:62vh}}


/* ===== 莫兰迪棕配色覆盖（2026-11-30） ===== */
:root{
  --amber-bg:#f4efe9;
  --amber-ink:#3b332c;
  --amber-soft:#7a6c5f;
  --amber-line:#e3d8cb;
  --amber-deep:#4a3f36;
  --amber-accent:#a97c50;
}
body{background:var(--amber-bg)!important;color:var(--amber-ink)!important}
a{color:#8a6642}
a:hover{color:var(--amber-accent)}

.ah-sec h2{color:var(--amber-ink)}
.ah-card{color:var(--amber-ink)}
.ah-card .ah-p{color:var(--amber-soft)}
.ah-card img{background:#ece4da}

.ah-story{background:var(--amber-deep)!important;color:#f0e8de}
.ah-story h2{color:#f5ede3}
.ah-story p{color:#cbbbad}

.ah-hero a{border-color:#f0e8de;color:#f5ede3}
.ah-hero a:hover{background:#f0e8de;color:var(--amber-deep)}

.amber-legal{background:var(--amber-deep)!important;color:#cbbbad}
.amber-legal__name{color:#f2e9df}
.amber-legal nav a{color:#c9b9a9}
.amber-legal nav a:hover{color:var(--amber-accent)}
.amber-legal__copy{color:#a2937f}

/* 主题默认标题/正文也拉回暖棕 */
h1,h2,h3,h4{color:var(--amber-ink)}
.site-footer,.footer-widgets{background:var(--amber-deep);color:#cbbbad}


/* ===== 链接与底色再调（2026-11-30 v3） ===== */
body{background:#ece3d8 !important}
a, .entry-content a, .woocommerce a, .site-footer a{color:#8a6642 !important}
a:hover, .woocommerce a:hover{color:#a97c50 !important}
.page-numbers, .woocommerce-pagination a{border-color:#d9cbb9 !important;color:#8a6642 !important}
.woocommerce-Price-amount, .price{color:#3b332c !important}
button, .button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button{
  background:#a97c50 !important;color:#fff !important;border-color:#a97c50 !important}
button:hover, .button:hover, .woocommerce a.button:hover{background:#8a6642 !important;color:#fff !important}


/* ===== 首页图片右下轻微阴影（2026-11-30 v4） ===== */
.ah-grid .ah-card img, .ah-tiles .ah-tile img{
  box-shadow: 10px 10px 22px rgba(59,51,44,.14);
  transition: box-shadow .4s ease, transform .4s ease;
}
.ah-grid .ah-card:hover img, .ah-tiles .ah-tile:hover img{
  box-shadow: 14px 14px 30px rgba(59,51,44,.20);
  transform: translateY(-2px);
}


/* v5：阴影加重 */
.ah-grid .ah-card img, .ah-tiles .ah-tile img{
  box-shadow: 16px 16px 34px rgba(59,51,44,.22) !important;
}
.ah-grid .ah-card:hover img, .ah-tiles .ah-tile:hover img{
  box-shadow: 20px 20px 40px rgba(59,51,44,.28) !important;
}


/* ===== 页脚棕色底 + 奶油字（v6） ===== */
.footer, .footer-top, .footer-bottom{
  background:#4a3f36 !important;
  color:#e9e0d4 !important;
}
.footer h1,.footer h2,.footer h3,.footer h4,.footer h5,
.footer .widget-title,.footer .footer-logo{
  color:#f4ece1 !important;
}
.footer a, .footer-sidebar a{color:#e6dac9 !important}
.footer a:hover, .footer-sidebar a:hover{color:#d8bfa0 !important}
.footer p, .footer li, .footer span{color:#d9cbbc !important}
.footer ul{list-style:none;padding:0;margin:0}
.footer li{margin:0 0 8px}
.footer .footer-sidebar h3{font-size:13px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 14px}


/* v7：首页隐藏主题输出的空 h1 */
.home .page-title, .front-page .page-title, .home .entry-title{display:none !important}
