@charset "UTF-8";
/* =========================================================================
   大陸新娘婚友社 — 前台設計系統
   單一檔案、無需打包工具（主機未安裝 Node）
   Mobile-first，斷點 640 / 900 / 1200
   ========================================================================= */

/* ---------- 設計變數 ---------- */
:root{
  /* 主色：暖玫瑰。婚友主題需要溫暖可信，避免俗豔的正紅 */
  --rose-900:#6d1f39;
  --rose-800:#872a48;
  --rose-700:#a13455;
  --rose-500:#c26a86;
  --rose-200:#f0d6dd;
  --rose-50:#fbf1f3;

  --gold:#b8912f;
  --gold-soft:#e8d9a8;

  --ink:#2a2320;
  --ink-2:#4d423d;
  --muted:#7a6d67;
  --line:#e8ded9;
  --cream:#fdfaf8;
  --white:#fff;

  --radius:14px;
  --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(42,35,32,.06), 0 2px 8px rgba(42,35,32,.05);
  --shadow-md:0 4px 12px rgba(42,35,32,.08), 0 12px 32px rgba(42,35,32,.07);
  --shadow-lg:0 12px 40px rgba(109,31,57,.14);

  --sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif:"Noto Serif TC","Songti TC",Georgia,serif;

  --wrap:1180px;
  --header-h:68px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  font-size:16px;
  line-height:1.75;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--rose-700);text-decoration:none}
a:hover{color:var(--rose-900);text-decoration:underline}
h1,h2,h3,h4{margin:0 0 .6em;line-height:1.35;font-weight:700}
h1{font-family:var(--serif);font-size:clamp(1.7rem,4.4vw,2.6rem)}
h2{font-family:var(--serif);font-size:clamp(1.35rem,3vw,1.9rem)}
h3{font-size:clamp(1.1rem,2vw,1.3rem)}
p{margin:0 0 1.1em}
ul,ol{margin:0 0 1.1em;padding-left:1.3em}
hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}
:focus-visible{outline:3px solid var(--rose-500);outline-offset:2px;border-radius:4px}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:20px}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--rose-900);color:#fff;padding:.7rem 1.2rem;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0}

/* =========================================================================
   頁首
   ========================================================================= */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(253,250,248,.94);
  backdrop-filter:saturate(150%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  min-height:var(--header-h);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--ink);text-decoration:none}
.brand:hover{text-decoration:none;color:var(--rose-900)}
.brand img{width:40px;height:40px;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand-text strong{font-family:var(--serif);font-size:1.06rem;letter-spacing:.02em}
.brand-text small{font-size:.72rem;color:var(--muted);letter-spacing:.06em}

.nav-toggle{
  display:inline-flex;flex-direction:column;justify-content:center;gap:5px;
  width:44px;height:44px;padding:0 10px;
  background:none;border:1px solid var(--line);border-radius:10px;cursor:pointer;
}
.nav-toggle span{display:block;height:2px;background:var(--ink);border-radius:2px;transition:.25s}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.primary-nav{
  position:absolute;left:0;right:0;top:100%;
  background:var(--white);border-bottom:1px solid var(--line);
  box-shadow:var(--shadow-md);
  max-height:0;overflow:hidden;transition:max-height .28s ease;
}
.primary-nav.is-open{max-height:32rem}
.primary-nav ul{list-style:none;margin:0;padding:.5rem 20px 1rem}
.primary-nav a{
  display:block;padding:.85rem .4rem;color:var(--ink);font-weight:500;
  border-bottom:1px solid var(--line);
}
.primary-nav a:hover,.primary-nav a.is-current{color:var(--rose-700);text-decoration:none}
.nav-cta a{
  margin-top:.8rem;text-align:center;border:0!important;
  background:var(--rose-700);color:#fff!important;border-radius:999px;
}
.nav-cta a:hover{background:var(--rose-900)}

@media (min-width:900px){
  .nav-toggle{display:none}
  .primary-nav{
    position:static;max-height:none;overflow:visible;
    background:none;border:0;box-shadow:none;
  }
  .primary-nav ul{display:flex;align-items:center;gap:.2rem;padding:0}
  .primary-nav a{border:0;padding:.5rem .9rem;border-radius:999px;font-size:.95rem}
  .primary-nav a.is-current{background:var(--rose-50)}
  .nav-cta a{margin:0 0 0 .6rem;padding:.5rem 1.15rem}
}

/* =========================================================================
   Hero / 輪播
   ========================================================================= */
.hero{position:relative;background:var(--rose-900);overflow:hidden}
.hero-slides{position:relative;aspect-ratio:16/9;max-height:560px}
@media (min-width:900px){.hero-slides{aspect-ratio:21/8}}
.hero-slide{
  position:absolute;inset:0;opacity:0;transition:opacity .8s ease;
}
.hero-slide.is-active{opacity:1}
.hero-slide img{width:100%;height:100%;object-fit:cover}
.hero-slide::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(40,12,22,.15) 0%,rgba(40,12,22,.62) 100%);
}
.hero-caption{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:0 0 clamp(1.5rem,5vw,3.5rem);color:#fff;
}
.hero-caption h1{color:#fff;margin-bottom:.35em;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.hero-caption p{
  max-width:44ch;color:rgba(255,255,255,.92);font-size:clamp(.95rem,1.6vw,1.1rem);
  text-shadow:0 1px 12px rgba(0,0,0,.4);
}
.hero-dots{display:flex;gap:.5rem;margin-top:1.2rem}
.hero-dots button{
  width:34px;height:4px;border:0;border-radius:2px;padding:0;cursor:pointer;
  background:rgba(255,255,255,.4);transition:.2s;
}
.hero-dots button.is-active{background:#fff;width:48px}

/* 沒有橫幅圖時的備用 hero */
.hero--plain{
  background:linear-gradient(135deg,var(--rose-900) 0%,var(--rose-700) 55%,#8e4a5e 100%);
  padding:clamp(3rem,9vw,6rem) 0;
}
.hero--plain h1{color:#fff}
.hero--plain p{color:rgba(255,255,255,.9);max-width:46ch}

/* =========================================================================
   通用區塊
   ========================================================================= */
.section{padding:clamp(2.6rem,6vw,4.5rem) 0}
.section--tint{background:var(--white)}
.section--rose{background:var(--rose-50)}

.section-head{max-width:56ch;margin-bottom:2rem}
.section-head .eyebrow{
  display:inline-block;font-size:.78rem;letter-spacing:.18em;
  color:var(--gold);text-transform:uppercase;font-weight:700;margin-bottom:.5rem;
}
.section-head h2{margin-bottom:.4em}
.section-head p{color:var(--muted);margin:0}

.center{text-align:center;margin-inline:auto}

/* 麵包屑 */
.crumbs{font-size:.85rem;color:var(--muted);padding:1rem 0 0}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0}
.crumbs li+li::before{content:"／";margin-right:.4rem;color:var(--line)}

/* 頁面標題區 */
.page-head{
  background:linear-gradient(135deg,var(--rose-900),var(--rose-700));
  color:#fff;padding:clamp(2rem,5vw,3.4rem) 0;
}
.page-head h1{color:#fff;margin-bottom:.2em}
.page-head p{color:rgba(255,255,255,.88);margin:0;max-width:60ch}

/* =========================================================================
   按鈕
   ========================================================================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.8rem 1.6rem;border-radius:999px;border:1px solid transparent;
  font-weight:700;font-size:.97rem;cursor:pointer;transition:.18s;
  text-decoration:none;line-height:1.4;
}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn-primary{background:var(--rose-700);color:#fff}
.btn-primary:hover{background:var(--rose-900);color:#fff;box-shadow:var(--shadow-lg)}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff}
.btn-outline{background:var(--white);color:var(--rose-700);border-color:var(--rose-200)}
.btn-outline:hover{border-color:var(--rose-500);color:var(--rose-900)}
.btn-lg{padding:1rem 2.1rem;font-size:1.03rem}
.btn-block{width:100%}

/* =========================================================================
   卡片格線
   ========================================================================= */
.grid{display:grid;gap:1.4rem}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
.grid-4{grid-template-columns:repeat(2,1fr)}
@media (min-width:640px){
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .grid-4{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:900px){
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}
}

.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;transition:.22s;display:flex;flex-direction:column;
}
.card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);border-color:var(--rose-200)}
.card-media{aspect-ratio:4/3;background:var(--rose-50);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .card-media img{transform:scale(1.05)}
.card-body{padding:1.1rem 1.15rem 1.3rem;flex:1;display:flex;flex-direction:column}
.card-body h3{margin-bottom:.4rem;font-size:1.05rem}
.card-body h3 a{color:var(--ink)}
.card-body h3 a:hover{color:var(--rose-700);text-decoration:none}
.card-meta{font-size:.8rem;color:var(--muted);margin-bottom:.5rem;letter-spacing:.02em}
.card-excerpt{font-size:.92rem;color:var(--ink-2);margin:0 0 .9rem;flex:1}
.card-more{font-size:.88rem;font-weight:700;color:var(--rose-700)}

/* 特色卡（無圖） */
.feature{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.6rem 1.5rem;
}
.feature .num{
  display:inline-flex;align-items:center;justify-content:center;
  width:2.4rem;height:2.4rem;border-radius:50%;margin-bottom:.9rem;
  background:var(--rose-50);color:var(--rose-700);
  font-family:var(--serif);font-weight:700;font-size:1.05rem;
}
.feature h3{font-size:1.06rem;margin-bottom:.4rem}
.feature p{color:var(--ink-2);font-size:.93rem;margin:0}

/* =========================================================================
   佳麗相簿
   ========================================================================= */
.gallery{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr)}
@media (min-width:640px){.gallery{grid-template-columns:repeat(3,1fr)}}
@media (min-width:900px){.gallery{grid-template-columns:repeat(4,1fr);gap:1.2rem}}
.gallery-item{
  position:relative;border-radius:var(--radius);overflow:hidden;
  background:var(--rose-50);aspect-ratio:3/4;border:1px solid var(--line);
}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.gallery-item:hover img{transform:scale(1.06)}
.gallery-item figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:1.6rem .8rem .7rem;color:#fff;font-size:.86rem;font-weight:500;
  background:linear-gradient(180deg,transparent,rgba(30,10,18,.75));
}

/* =========================================================================
   文章
   ========================================================================= */
.article-layout{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media (min-width:900px){.article-layout{grid-template-columns:minmax(0,1fr) 300px;gap:3rem}}

.prose{font-size:1.02rem;line-height:1.95;color:var(--ink-2)}
.prose h2{margin-top:2em;color:var(--ink)}
.prose h3{margin-top:1.6em;color:var(--ink)}
.prose img{border-radius:var(--radius-sm);margin:1.4em 0}
.prose blockquote{
  margin:1.6em 0;padding:.4em 0 .4em 1.3em;
  border-left:3px solid var(--rose-200);color:var(--muted);font-style:italic;
}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:.94rem}
.prose th,.prose td{border:1px solid var(--line);padding:.6rem .8rem;text-align:left}
.prose th{background:var(--rose-50);font-weight:700}

.article-header{margin-bottom:1.8rem;padding-bottom:1.4rem;border-bottom:1px solid var(--line)}
.article-header .card-meta{margin-bottom:.6rem}

.sidebar-box{
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.3rem;margin-bottom:1.4rem;
}
.sidebar-box h2{font-size:1.05rem;font-family:var(--sans);margin-bottom:.9rem}
.sidebar-list{list-style:none;margin:0;padding:0}
.sidebar-list li{padding:.6rem 0;border-bottom:1px solid var(--line)}
.sidebar-list li:last-child{border-bottom:0;padding-bottom:0}
.sidebar-list a{color:var(--ink-2);font-size:.93rem;line-height:1.6}
.sidebar-list a:hover{color:var(--rose-700)}

/* 文章列表（橫式） */
.post-list{list-style:none;margin:0;padding:0;display:grid;gap:1.2rem}
.post-item{
  display:grid;gap:1.1rem;grid-template-columns:1fr;
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;transition:.22s;
}
@media (min-width:640px){.post-item{grid-template-columns:220px 1fr}}
.post-item:hover{box-shadow:var(--shadow-md);border-color:var(--rose-200)}
.post-item .thumb{aspect-ratio:16/10;background:var(--rose-50);overflow:hidden}
@media (min-width:640px){.post-item .thumb{aspect-ratio:auto;height:100%}}
.post-item .thumb img{width:100%;height:100%;object-fit:cover}
.post-item .body{padding:1.2rem 1.3rem 1.3rem}
@media (min-width:640px){.post-item .body{padding:1.3rem 1.4rem}}
.post-item h2{font-family:var(--sans);font-size:1.12rem;margin-bottom:.4rem}
.post-item h2 a{color:var(--ink)}
.post-item h2 a:hover{color:var(--rose-700);text-decoration:none}
.post-item p{font-size:.93rem;color:var(--muted);margin:0}

/* =========================================================================
   表單
   ========================================================================= */
.form-card{
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--radius);padding:clamp(1.4rem,4vw,2.4rem);
  box-shadow:var(--shadow-sm);
}
.field{margin-bottom:1.2rem}
.field label{display:block;font-weight:700;font-size:.92rem;margin-bottom:.4rem}
.field .req{color:var(--rose-700);margin-left:.2em}
.field .hint{display:block;font-size:.82rem;color:var(--muted);margin-top:.35rem;font-weight:400}
.input,.textarea,.select{
  width:100%;padding:.75rem .95rem;font:inherit;font-size:.97rem;color:var(--ink);
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);
  transition:.16s;
}
.input:focus,.textarea:focus,.select:focus{
  outline:0;border-color:var(--rose-500);box-shadow:0 0 0 3px var(--rose-50);
}
.textarea{min-height:9rem;resize:vertical;line-height:1.7}
.field.has-error .input,.field.has-error .textarea{border-color:#c0392b;background:#fdf3f2}
.error-text{color:#c0392b;font-size:.85rem;margin-top:.35rem}

/* honeypot：真人看不到 */
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

.alert{
  padding:.95rem 1.2rem;border-radius:var(--radius-sm);margin-bottom:1.4rem;
  font-size:.94rem;border:1px solid;
}
.alert-success{background:#eefaf2;border-color:#b6e3c8;color:#1c6b3f}
.alert-error{background:#fdf3f2;border-color:#f2c4be;color:#a33125}

/* =========================================================================
   分頁
   ========================================================================= */
.pagination{
  display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;
  list-style:none;margin:2.4rem 0 0;padding:0;
}
.pagination li span,.pagination li a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:2.5rem;height:2.5rem;padding:0 .7rem;
  border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--white);color:var(--ink-2);font-size:.92rem;
}
.pagination li a:hover{border-color:var(--rose-500);color:var(--rose-700);text-decoration:none}
.pagination li.active span{background:var(--rose-700);border-color:var(--rose-700);color:#fff;font-weight:700}
.pagination li.disabled span{opacity:.4}

/* =========================================================================
   CTA 區塊
   ========================================================================= */
.cta{
  background:linear-gradient(135deg,var(--rose-900),var(--rose-700));
  color:#fff;border-radius:var(--radius);
  padding:clamp(2rem,5vw,3.2rem);text-align:center;
}
.cta h2{color:#fff}
.cta p{color:rgba(255,255,255,.9);max-width:52ch;margin-inline:auto}
.cta-actions{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin-top:1.6rem}

/* =========================================================================
   頁尾
   ========================================================================= */
.site-footer{background:#241a1d;color:rgba(255,255,255,.78);margin-top:clamp(3rem,7vw,5rem)}
.footer-grid{
  display:grid;gap:2rem;grid-template-columns:1fr;
  padding-top:clamp(2.4rem,5vw,3.4rem);padding-bottom:2.4rem;
}
@media (min-width:640px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:900px){.footer-grid{grid-template-columns:1.6fr 1fr 1.2fr 1fr;gap:2.6rem}}
.footer-brand{display:flex;align-items:center;gap:.6rem;margin-bottom:.9rem}
.footer-brand strong{font-family:var(--serif);font-size:1.08rem;color:#fff}
.footer-brand img{filter:brightness(0) invert(1);opacity:.9}
.footer-note{font-size:.88rem;line-height:1.8;color:rgba(255,255,255,.62);margin:0}
.footer-title{
  font-family:var(--sans);font-size:.82rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold-soft);margin-bottom:.9rem;
}
.footer-links,.footer-contact{list-style:none;margin:0;padding:0}
.footer-links li,.footer-contact li{margin-bottom:.55rem;font-size:.92rem}
.footer-links a,.footer-contact a{color:rgba(255,255,255,.78)}
.footer-links a:hover,.footer-contact a:hover{color:#fff}
.footer-contact li{display:flex;gap:.6rem;align-items:flex-start}
.footer-contact .ico{color:var(--gold);flex:none;line-height:1.7}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.2rem 0}
.footer-bottom p{margin:0;font-size:.83rem;color:rgba(255,255,255,.5)}
.footer-bottom .legal{margin-top:.4rem;font-size:.79rem;color:rgba(255,255,255,.38)}

/* =========================================================================
   工具類
   ========================================================================= */
.mt-0{margin-top:0}
.mb-0{margin-bottom:0}
.mt-2{margin-top:1.4rem}
.mt-3{margin-top:2.2rem}
.muted{color:var(--muted)}
.small{font-size:.88rem}
.empty{
  text-align:center;padding:3rem 1rem;color:var(--muted);
  background:var(--white);border:1px dashed var(--line);border-radius:var(--radius);
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
