/* =========================================================
   攝影圖庫頻道專屬樣式（暗紅·黑色系）
   作用域：body.photoes-theme（僅圖庫目錄下的頁面生效，不影響全站淺色主題）
   設計依據：原站 style.css 主紅 #CC0000、標題欄深紅底+淺黃字 #FFFFCC
   ========================================================= */
body.photoes-theme{
  /* —— 重定義全站變量，讓 style_new.css 的 var(...) 組件自動轉爲紅黑系 —— */
  --terracotta:#CC0000;          /* 原站經典紅 */
  --terracotta-dark:#9e0000;
  --pine:#CC0000;
  --ink:#1a1413;                 /* 近黑 */
  --ink-soft:#2a211f;
  --body:#e9e2da;                /* 暗底上的淺字 */
  --muted:#b3a79c;
  --paper:#1f1816;               /* 暗卡片底 */
  --paper-2:#271f1c;
  --cream:#2a2120;
  --line:#3a2e2b;
  --shadow-sm:0 2px 10px rgba(0,0,0,.45);
  --shadow-md:0 8px 24px rgba(0,0,0,.5);
  --shadow-lg:0 18px 44px rgba(0,0,0,.55);
  background:#14100f;            /* 深黑底 */
  color:#e9e2da;
}

/* ===== 頂部聯繫方式欄（純黑） ===== */
body.photoes-theme .topbar{background:#000;color:#a8b0a9;border-bottom:1px solid rgba(255,255,255,.08);}
body.photoes-theme .topbar a{color:#e7b56a;}
body.photoes-theme .topbar .hide-xs{color:#7a7a7a;}

/* ===== 導航欄（純黑 + 金/紅強調） ===== */
body.photoes-theme .nav{background:#000 !important;backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.08) !important;}
body.photoes-theme .nav.scrolled{background:#000 !important;border-bottom-color:rgba(255,255,255,.12) !important;box-shadow:0 4px 20px rgba(0,0,0,.45) !important;}
body.photoes-theme .nav .nav-links a{color:rgba(255,255,255,.78) !important;}
body.photoes-theme .nav .nav-links a:hover{color:#fff !important;}
body.photoes-theme .nav .nav-links a::after{background:var(--gold) !important;}
body.photoes-theme .nav .nav-cta{background:#fff !important;color:#000 !important;}
body.photoes-theme .nav .nav-cta:hover{background:var(--gold) !important;color:#000 !important;}
body.photoes-theme .nav .menu-toggle span{background:#fff !important;}
/* 移動端展開菜單 */
body.photoes-theme .nav .nav-links.open{
  background:#000 !important;
  border-bottom:1px solid rgba(255,255,255,.1) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.55) !important;
}
body.photoes-theme .nav .nav-links.open a{color:rgba(255,255,255,.85) !important;}
body.photoes-theme .nav .nav-links.open a:hover{color:#fff !important;}

/* ===== 欄目頭 cat-hero（顯示 Banner 大圖，圖片本色 + 僅底部輕壓暗） ===== */
body.photoes-theme .cat-hero{background-size:cover;background-position:center;background-color:#1a1413;}
body.photoes-theme .cat-hero .ov{background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.5) 100%);}
body.photoes-theme .cat-hero h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.45);}
body.photoes-theme .cat-hero .crumb a,
body.photoes-theme .cat-hero .crumb{color:rgba(255,255,255,.82);}
body.photoes-theme .cat-hero .crumb a:hover{color:#fff;}
body.photoes-theme .cat-intro .lead{color:#cfc4ba;}

/* ===== 欄目落地頁卡片（暗卡片 + 紅描邊） ===== */
body.photoes-theme .cat-card{background:#1f1816;border-color:#3a2e2b;box-shadow:var(--shadow-sm);}
body.photoes-theme .cat-card:hover{border-color:var(--terracotta);box-shadow:var(--shadow-lg);}
body.photoes-theme .cat-card h3{color:#f4ece4;}
body.photoes-theme .cat-card p{color:#a99c92;}
body.photoes-theme .cat-card .go{color:#ff5a4d;}
body.photoes-theme .cat-card:hover .go{color:#CC0000;}
body.photoes-theme .section-head .title{color:#f4ece4;}
body.photoes-theme .section-head .eyebrow{color:#e8b9b0;}

/* CTA 條（紅漸變，原站紅） */
body.photoes-theme .cat-cta{background:linear-gradient(135deg,#CC0000,#7a0000);}
body.photoes-theme .cat-cta h2{color:#fff;}
body.photoes-theme .cat-cta p{color:rgba(255,255,255,.9);}
body.photoes-theme .cat-cta a{background:#fff;color:#9e0000;}

/* ===== 麪包屑子導航條 menua（暗紅藥丸） ===== */
/* 容器：強制暗底，避免任何淺色透出 */
body.photoes-theme #foldmenu{
  background:#1a1413 !important;
  border-color:#3a2e2b !important;
  color:#e9e2da !important;
}
/* 父欄目藥丸（menua_1）：紅底白字 */
body.photoes-theme #foldmenu .menua_1,
body.photoes-theme #foldmenu .menua_1 a{
  background:var(--terracotta) !important;
  color:#fff !important;
  border-radius:999px;
}
body.photoes-theme #foldmenu .menua_1 a{color:#fff !important;}
/* 子欄目藥丸（menua_3）：暗卡片底 + 淺字（之前是白底灰字，這裏覆蓋） */
body.photoes-theme #foldmenu .menua_3{
  background:#271f1c !important;
  border:1px solid #3a2e2b !important;
  color:#e9e2da !important;
}
body.photoes-theme #foldmenu .menua_3 a{color:#e9e2da !important;}
body.photoes-theme #foldmenu .menua_3:hover{border-color:var(--terracotta) !important;}
body.photoes-theme #foldmenu .menua_3:hover a,
body.photoes-theme #foldmenu .menua_3 a:hover{color:#ff5a4d !important;}
body.photoes-theme #foldmenu .menua_3.is-active{
  background:var(--terracotta) !important;
  border-color:var(--terracotta) !important;
  color:#fff !important;
}
body.photoes-theme #foldmenu .menua_3.is-active a{color:#fff !important;}
/* 相關線路/二級欄目列表（menua_tour）：原爲白底灰字，改爲暗卡片 */
body.photoes-theme #foldmenu > .menua_tour{
  background:#271f1c !important;
  border:1px solid #3a2e2b !important;
  border-left:3px solid var(--terracotta) !important;
  color:#e9e2da !important;
  border-radius:8px !important;
}
body.photoes-theme #foldmenu > .menua_tour a{color:#e9e2da !important;font-weight:500;}
body.photoes-theme #foldmenu > .menua_tour:hover{background:#2e2421 !important;}
body.photoes-theme #foldmenu > .menua_tour:hover a{color:#ff5a4d !important;}
body.photoes-theme #foldmenu > .menua_1 + .menua_tour::before{
  color:var(--terracotta) !important;
  background:#1a1413 !important;
}

/* ===== 二級欄目頁圖片網格（暗卡片） ===== */
body.photoes-theme #counten{color:#e9e2da !important;background:transparent;}
body.photoes-theme #counten .class .photo .tit a{color:#f4ece4 !important;}
body.photoes-theme #counten .class .photo .tit a:hover{color:#ff5a4d !important;}
body.photoes-theme #counten .class > .photo .pic a{box-shadow:0 8px 22px rgba(0,0,0,.5);background:#241c1a;border-radius:12px;}
body.photoes-theme #counten .class .note{color:#a99c92;}
body.photoes-theme #counten .class .note a{color:#e8b9b0;}

/* ===== 內容頁查看器（暗紅黑） ===== */
/* 1) 先強制清除原站圖片白邊框/白邊距，避免查看器出現白邊 */
body.photoes-theme #counten .photo img,
body.photoes-theme .pv-stage img,
body.photoes-theme .pv-film a img{
  border:0 !important;padding:0 !important;margin:0 !important;
}
body.photoes-theme .pv-stage{background:#0d0a09;box-shadow:0 12px 34px rgba(0,0,0,.6);}
body.photoes-theme .pv-stage img{background:#0d0a09;display:block;}
body.photoes-theme .pv-cap{color:#f4ece4;background:linear-gradient(180deg,transparent,rgba(120,0,0,.55));}

/* 2) 簡介標題重設計：去掉原站紅色條背景圖，改成現代暗色卡片標題 */
body.photoes-theme #counten .photo .title{
  position:relative;
  background:none !important;
  background-color:#1f1816 !important;
  color:#f4ece4 !important;
  border-left:4px solid var(--terracotta) !important;
  border-radius:10px 10px 0 0;
  padding:14px 18px !important;
  margin:28px 0 0 !important;
  height:auto !important;
  text-indent:0 !important;
  font-size:1.05rem !important;
  font-weight:800 !important;
  box-shadow:0 -2px 14px rgba(0,0,0,.25);
}
body.photoes-theme #counten .photo .title::before{
  content:"◉";
  color:var(--terracotta);
  margin-right:10px;
  font-size:.9rem;
}

/* 3) 簡介正文容器：暗卡片 + 配套圓角 */
body.photoes-theme #counten .photo .txt{
  background:#1a1413 !important;
  border:1px solid #2c211f;
  border-top:0;
  border-radius:0 0 10px 10px;
  padding:18px 20px !important;
  margin:0 0 24px !important;
  color:#d8cec4 !important;
  font-size:.96rem !important;
  line-height:1.85 !important;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
}
body.photoes-theme #counten .photo .txt p,
body.photoes-theme #counten .photo .txt p *{
  color:#d8cec4 !important;
  background:none !important;
  font-size:.96rem !important;
  line-height:1.85 !important;
  text-indent:2em !important;
  margin:0 0 12px !important;
}
body.photoes-theme #counten .photo .txt p:last-child{margin-bottom:0 !important;}
body.photoes-theme .pv-nav button{background:#1f1816;border-color:#3a2e2b;color:#e9e2da;}
body.photoes-theme .pv-nav button:hover{border-color:var(--terracotta);color:#ff5a4d;}
body.photoes-theme .pv-nav .pv-count{color:#a99c92;}
body.photoes-theme .pv-film::-webkit-scrollbar-thumb{background:#3a2e2b;}
body.photoes-theme .pv-film a.on{border-color:var(--terracotta);}

/* ===== 正文通用文字（暗底淺字） ===== */
body.photoes-theme #main{color:#e9e2da !important;}
body.photoes-theme #counten p,
body.photoes-theme #counten td,
body.photoes-theme #counten .txt{color:#d8cec4 !important;}
body.photoes-theme #counten a{color:#e8b9b0;}
body.photoes-theme #counten a:hover{color:#ff5a4d;}

/* ===== 頁腳（暗黑，紅鏈接） ===== */
body.photoes-theme .footer{background:#0d0a09;border-top:1px solid #2c211f;color:#b3a79c;}
body.photoes-theme .footer h4{color:#f4ece4;}
body.photoes-theme .footer a{color:#c9bdb2;}
body.photoes-theme .footer a:hover{color:#ff5a4d;}
body.photoes-theme .footer .f-bottom{border-top-color:#2c211f;color:#8a7d73;}
body.photoes-theme .footer .friend a{color:#a99c92;}

/* =========================================================
   圖庫統一首頁（Hero + 7 大攝影景點入口）
   ========================================================= */
body.photoes-theme .pe-hero{position:relative;min-height:62vh;display:flex;align-items:center;overflow:hidden;color:#fff;
  background-size:cover;background-position:center;background-color:#1a1413;}
body.photoes-theme .pe-hero::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.55) 100%);}
body.photoes-theme .pe-hero .wrap{position:relative;z-index:2;padding:96px 24px;max-width:1120px;margin:0 auto;width:100%;}
body.photoes-theme .pe-hero .pe-kicker{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;font-weight:700;letter-spacing:.16em;
  color:#ffd9d4;background:rgba(204,0,0,.28);border:1px solid rgba(255,90,77,.5);padding:6px 14px;border-radius:999px;text-transform:uppercase;}
body.photoes-theme .pe-hero h1{font-size:clamp(2.2rem,5.6vw,3.8rem);font-weight:900;letter-spacing:-.02em;margin:18px 0 14px;
  text-shadow:0 3px 26px rgba(150,0,0,.55);line-height:1.08;}
body.photoes-theme .pe-hero .pe-sub{font-size:clamp(1rem,2vw,1.2rem);color:rgba(255,255,255,.92);max-width:600px;line-height:1.7;}
body.photoes-theme .pe-hero .pe-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px;}
body.photoes-theme .pe-hero .pe-btn{display:inline-flex;align-items:center;gap:8px;font-weight:700;padding:13px 28px;border-radius:999px;transition:all .25s;}
body.photoes-theme .pe-hero .pe-btn.primary{background:#CC0000;color:#fff;box-shadow:0 10px 26px rgba(204,0,0,.42);}
body.photoes-theme .pe-hero .pe-btn.primary:hover{background:#e21d10;transform:translateY(-2px);}
body.photoes-theme .pe-hero .pe-btn.ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.32);}
body.photoes-theme .pe-hero .pe-btn.ghost:hover{background:rgba(255,255,255,.16);}

/* 7 大攝影景點入口 */
body.photoes-theme .pe-spots{padding:74px 0 86px;background:#14100f;}
body.photoes-theme .pe-spots .pe-head{text-align:center;margin-bottom:42px;}
body.photoes-theme .pe-spots .pe-eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.16em;color:#e8b9b0;text-transform:uppercase;}
body.photoes-theme .pe-spots h2{font-size:clamp(1.6rem,3.5vw,2.3rem);font-weight:800;color:#f4ece4;margin:10px 0 8px;}
body.photoes-theme .pe-spots .pe-desc{color:#a99c92;font-size:.98rem;}
body.photoes-theme .pe-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:1120px;margin:0 auto;padding:0 24px;}
body.photoes-theme .pe-spot{position:relative;display:block;border-radius:14px;overflow:hidden;aspect-ratio:4/3;
  box-shadow:0 10px 26px rgba(0,0,0,.5);border:1px solid #2c211f;transition:all .3s;}
body.photoes-theme .pe-spot img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
body.photoes-theme .pe-spot:hover{transform:translateY(-5px);border-color:var(--terracotta);box-shadow:0 18px 40px rgba(204,0,0,.4);}
body.photoes-theme .pe-spot:hover img{transform:scale(1.08);}
body.photoes-theme .pe-spot .pe-mask{position:absolute;inset:0;background:linear-gradient(180deg,transparent 38%,rgba(13,10,9,.9) 100%);}
body.photoes-theme .pe-spot .pe-num{position:absolute;top:12px;left:12px;font-size:.78rem;font-weight:800;color:#fff;
  background:rgba(204,0,0,.86);padding:3px 10px;border-radius:999px;letter-spacing:.05em;}
body.photoes-theme .pe-spot .pe-name{position:absolute;left:14px;right:14px;bottom:12px;color:#fff;font-weight:800;font-size:1.05rem;
  text-shadow:0 2px 10px rgba(0,0,0,.6);display:flex;align-items:center;justify-content:space-between;gap:8px;}
body.photoes-theme .pe-spot .pe-name .pe-go{font-size:.82rem;font-weight:600;color:#ffd9d4;opacity:0;transform:translateX(-6px);transition:all .3s;}
body.photoes-theme .pe-spot:hover .pe-name .pe-go{opacity:1;transform:translateX(0);}
@media(max-width:920px){
  body.photoes-theme .pe-grid{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:680px){
  body.photoes-theme .pe-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  body.photoes-theme .pe-hero{min-height:54vh;}
}
