@charset "utf-8";
/* =========================================================
   山水炎民宿露營區 — Rebuilt layout stylesheet
   Replaces the missing @import'd core CSS that pointed to an
   offline server. .news-list / .album-list / .products-list are
   SLICK carousels (js/banner.js); this file styles appearance only
   and never forces widths on them so slick controls layout.
   A no-JS flex fallback is scoped to :not(.slick-initialized).
   Mobile-first. Brand green: #034b0b
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Microsoft JhengHei","微軟正黑體","Noto Sans TC","PingFang TC",Arial,sans-serif;
    color: #333; line-height: 1.6; background-color: #f4f2ec; word-wrap: break-word;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: #034b0b; text-decoration: none; transition: color .2s, background .2s, opacity .2s; }
a:hover { color: #0a7a1a; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p { margin: 0 0 .6em; }
iframe { max-width: 100%; border: 0; }
.clearfix::after { content:""; display:table; clear:both; }
.list-inline > li { display:inline-block; }

.wrapper { overflow: hidden; }
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 15px; }

/* HEADER + NAV */
.site-header { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.12); position:relative; z-index:200; }
.site-header .container { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; min-height:70px; }
.site-title { margin:8px 0; flex:0 0 auto; }
.site-title .logo { display:block; width:210px; height:56px; text-indent:-9999px; overflow:hidden; white-space:nowrap; background-size:contain; background-repeat:no-repeat; background-position:left center; }
.site-nav { flex:1 1 auto; }
.site-nav .menu { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:2px; }
.site-nav .menu > li > a { display:block; padding:10px 12px; color:#333; font-size:15px; font-weight:600; border-radius:4px; white-space:nowrap; }
.site-nav .menu > li > a:hover, .site-nav .menu > li.active > a { background:#034b0b; color:#fff; }
.site-nav .menu i.fa { margin-right:4px; }
.nav-toggle { display:none; border:0; background:#034b0b; color:#fff; font-size:22px; line-height:1; padding:10px 14px; border-radius:5px; cursor:pointer; }

/* BANNER */
.banner { position:relative; background:#000; }
.banner .container { padding:0; max-width:100%; }
.banner img { width:100%; display:block; }
.banner .slick-item a { display:block; }
.banner:before { display:none !important; }
.banner .slider:before { display:none !important; }
.banner-slider-control { position:static; margin:0; }

/* SECTIONS */
.site-main { padding-bottom:40px; }
.sect1 { padding:45px 0 0 !important; margin-bottom:45px !important; }
.sect3,.sect4 { padding:20px 0 45px; }
.products-sect-title,.news-sect-title,.album-sect-title { text-align:center !important; padding:20px 0 28px !important; margin:0 !important; height:auto !important; position:relative; }
.products-sect-title span,.news-sect-title span,.album-sect-title span { display:inline-block !important; color:#034b0b !important; font-size:26px; font-weight:bold; letter-spacing:.12em; left:auto !important; position:relative; padding-bottom:12px; }
.products-sect-title span::before,.news-sect-title span::before,.album-sect-title span::before { display:none !important; }
.products-sect-title span::after,.news-sect-title span::after,.album-sect-title span::after { content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:60px; height:3px; background:#034b0b; }
.index_about { text-align:center; font-size:17px; line-height:1.9; max-width:900px; margin:0 auto; }
.index_about iframe { display:block; width:100%; max-width:800px; height:450px; margin:20px auto; }
/* Keep 客房介紹 (.sect4) and 環境照片 (.sect3) symmetric — the legacy index.css
   gives .sect3 a wider container (1330px) and uneven padding, so normalise both. */
.sect3, .sect4 { padding:20px 0 45px !important; }
.sect3 .container, .sect4 .container { max-width:1200px !important; padding:0 15px !important; }

/* ROOM / NEWS CARD APPEARANCE (layout = slick) */
.news-list .box { display:flex; flex-direction:column; height:100%; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 3px 10px rgba(0,0,0,.08); margin:0 6px; }
.news-list .box:hover { box-shadow:0 8px 20px rgba(0,0,0,.15); background:#fff; }
.news-list .pic { position:relative; margin:0 !important; overflow:hidden; border-radius:0 !important; }
.news-list .pic img { width:100%; display:block; transition:transform .4s; }
.news-list .box:hover .pic img { transform:scale(1.05); }
.news-list .txt { padding:14px 16px 16px !important; background:#fff !important; border-radius:0 !important; flex:1 1 auto; display:flex; flex-direction:column; }
.news-list .name { color:#222 !important; font-size:16px !important; font-weight:bold; line-height:1.4 !important; height:auto !important; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-list .box:hover .name { color:#034b0b !important; }
.news-list .description { color:#666 !important; font-size:13.5px !important; line-height:1.6 !important; height:auto !important; margin:0 0 12px !important; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-list .date { display:inline-block !important; background:#034b0b !important; color:#fff !important; border:0 !important; font-size:13px !important; line-height:1.4 !important; padding:5px 14px !important; border-radius:20px !important; margin-top:auto !important; align-self:flex-start; }

/* ALBUM CARD APPEARANCE (layout = slick) */
.album-list .box { display:block; position:relative; border-radius:8px; overflow:hidden; box-shadow:0 3px 10px rgba(0,0,0,.08); margin:0 6px; }
.album-list .pic { position:relative; overflow:hidden; }
.album-list .pic img { width:100%; display:block; transition:transform .4s; }
.album-list .box:hover .pic img { transform:scale(1.05); }
.album-list .txt { position:absolute; left:0; right:0; bottom:0; padding:14px 16px !important; background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)) !important; }
.album-list .name { color:#fff !important; font-size:17px; font-weight:bold; height:auto !important; }
.album-list li > a.fancybox { display:none; }

/* NO-JS FALLBACK (only before slick initialises) */
.news-list.list-h:not(.slick-initialized),
.album-list.list-h:not(.slick-initialized) { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; }
.news-list.list-h:not(.slick-initialized) > .item { flex:0 0 calc(25% - 16px); max-width:calc(25% - 16px); }
.album-list.list-h:not(.slick-initialized) > .item { flex:0 0 calc(33.333% - 16px); max-width:calc(33.333% - 16px); }
.news-list.list-h:not(.slick-initialized) > .item .box,
.album-list.list-h:not(.slick-initialized) > .item .box { margin:0; height:100%; }

/* SLICK dots / slides */
.slick-dots { text-align:center; padding:18px 0 0; margin:0; }
.slick-dots li { display:inline-block; margin:0 4px; }
.slick-dots li button { width:12px; height:12px; padding:0; border:0; border-radius:50%; background:#c9c9c9; color:transparent; font-size:0; cursor:pointer; overflow:hidden; }
.slick-dots li.slick-active button { background:#034b0b; }
/* Do NOT override .slick-track / .slick-slide display or float here —
   slick.css sets float:left and manages the track via translate3d.
   Overriding it makes slides stack vertically (runaway height). */
.slick-slide { outline: none; }
.slick-slide img { width: 100%; }

/* INNER PAGES */
.breadcrumb-box { background:#034b0b; color:#fff; padding:22px 0; }
.breadcrumb-box .main-title { font-size:24px; font-weight:bold; letter-spacing:.1em; }
.breadcrumb { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; font-size:13.5px; opacity:.95; }
.breadcrumb li + li::before { content:"／"; margin-right:6px; opacity:.7; }
.breadcrumb a { color:#fff; }
.breadcrumb a:hover { text-decoration:underline; }
.main-content { padding:35px 0 10px; }
.main-content .container { display:flex; gap:30px; align-items:flex-start; }
.side { flex:0 0 240px; width:240px; }
.side-title { background:#034b0b; color:#fff; font-size:18px; font-weight:bold; padding:12px 16px; border-radius:6px 6px 0 0; text-align:center; }
.side-nav { border:1px solid #ddd; border-top:0; border-radius:0 0 6px 6px; overflow:hidden; }
.side-nav > li { border-bottom:1px solid #eee; }
.side-nav > li:last-child { border-bottom:0; }
.side-nav > li > a { display:flex; align-items:center; gap:8px; padding:12px 16px; color:#444; font-size:15px; background:#fff; }
.side-nav > li > a:hover, .side-nav > li.active > a { background:#f2f8f2; color:#034b0b; font-weight:bold; }
.side-nav .ic { font-style:normal; color:#034b0b; }
.content { flex:1 1 auto; min-width:0; background:#fff; border-radius:8px; padding:28px 30px; box-shadow:0 3px 10px rgba(0,0,0,.06); }
.content-top { border-bottom:2px solid #034b0b; margin-bottom:22px; padding-bottom:10px; }
.content-title { font-size:22px; font-weight:bold; color:#034b0b !important; margin:0; display:flex; align-items:center; gap:8px; }
.content-title .ic { font-style:normal; }
.content-title2 { font-size:19px; font-weight:bold; color:#034b0b; border-bottom:3px solid #034b0b; padding-bottom:8px; margin:24px 0 16px; }
.editor { font-size:15.5px; line-height:1.9; color:#444; }
.editor p { margin:0 0 1em; }
.editor img { height:auto; border-radius:4px; margin:6px 0; }
.editor table { max-width:100%; border-collapse:collapse; }
.editor iframe { width:100%; }
.editor a { text-decoration:underline; }
.content .pic img { border-radius:6px; }

/* FLOATING BUTTONS */
.link-else { top:40%; right:0; margin:auto; position:fixed; z-index:999; }
.link-else ul li { list-style:none; margin-top:6px; opacity:.8; transition:opacity .2s; }
.link-else ul li:hover { opacity:1; }
.link-else img { width:60px; height:auto; }
.filter { filter:drop-shadow(0 0 8px rgba(0,0,0,.4)); }
.floating.top-hide { display:none; }
.gotop { position:fixed; right:18px; bottom:18px; z-index:998; width:46px; height:46px; line-height:46px; text-align:center; background:#034b0b; color:#fff; border-radius:50%; font-size:13px; font-weight:bold; box-shadow:0 3px 8px rgba(0,0,0,.3); }
.gotop:hover { background:#0a7a1a; color:#fff; }

/* FOOTER */
.site-footer { margin-top:30px; }
.footer-top { padding:30px 0; text-align:center; background:#eceae3; font-size:14.5px; line-height:1.9; color:#555; }
.footer-top iframe { width:100%; max-width:1000px; height:400px; display:block; margin:0 auto; }
.footer-bottom { background:#034b0b; color:#fff; padding:22px 0; font-size:13.5px; line-height:1.9; text-align:center; }
.footer-bottom a { color:#fff; }
.footer-bottom a:hover { text-decoration:underline; opacity:.85; }
.fb-fans-page { display:inline-block; border:1px solid rgba(255,255,255,.6); padding:6px 18px; border-radius:4px; margin-bottom:12px; }
.fb-fans-page:hover { background:rgba(255,255,255,.15); }
.site-info { opacity:.92; }

/* legacy off-canvas mobile menu (replaced by .site-nav / .nav-toggle) — hide leftover markup so it doesn't dump below the footer */
#mobile-fixed, #mobile-menu, .toggle-mmenu-cover { display:none !important; }

/* RESPONSIVE */

/* HEADER — single row on desktop: logo left, full menu right */
@media screen and (min-width:1101px) {
    .site-header .container { flex-wrap:nowrap; }
    .site-nav { background:transparent !important; } /* cancel legacy green wrap-bar (inline @media <=1300) */
    .site-nav .menu { flex-wrap:nowrap; gap:0; }
    .site-nav .menu > li > a { padding:9px 7px; font-size:13.5px; }
    .site-nav .menu i.fa { display:none; }           /* text-only so all 11 items fit one row (icons show in the mobile menu) */
}

/* HEADER — burger + animated slide-down menu on tablet/mobile */
@media screen and (max-width:1100px) {
    .nav-toggle { display:block; transition:transform .3s ease; }
    .site-header .container:has(.site-nav.open) .nav-toggle { transform:rotate(90deg); }
    .site-header .container { min-height:60px; }
    .site-nav {
        flex-basis:100%; order:3;
        max-height:0; overflow:hidden; opacity:0;
        background:#034b0b; border-radius:0 0 6px 6px;
        transition:max-height .35s ease, opacity .3s ease;
    }
    .site-nav.open { max-height:80vh; overflow-y:auto; opacity:1; }
    .site-nav .menu { flex-direction:column; align-items:stretch; gap:0; padding:6px 0 10px; }
    .site-nav .menu > li { width:100%; }
    .site-nav .menu > li > a { padding:13px 16px; border-bottom:1px solid rgba(255,255,255,.14); border-radius:0; font-size:16px; color:#fff; }
    .site-nav .menu > li > a:hover, .site-nav .menu > li.active > a { background:rgba(255,255,255,.14); color:#fff; }
    .site-nav .menu i.fa { display:inline-block; margin-right:10px; width:18px; text-align:center; }
}

@media screen and (max-width:1024px) {
    .news-list.list-h:not(.slick-initialized) > .item { flex-basis:calc(33.333% - 16px); max-width:calc(33.333% - 16px); }
    .album-list.list-h:not(.slick-initialized) > .item { flex-basis:calc(50% - 16px); max-width:calc(50% - 16px); }
}
@media screen and (max-width:900px) {
    .main-content .container { flex-direction:column; gap:20px; }
    .side { flex-basis:auto; width:100%; }
    .content { width:100%; padding:22px 18px; }
}
@media screen and (max-width:640px) {
    .news-list.list-h:not(.slick-initialized) > .item { flex-basis:calc(50% - 16px); max-width:calc(50% - 16px); }
    .album-list.list-h:not(.slick-initialized) > .item { flex-basis:100%; max-width:100%; }
    .products-sect-title span,.news-sect-title span,.album-sect-title span { font-size:21px; }
    .sect1 { padding-top:30px !important; margin-bottom:30px !important; }
    .index_about { font-size:15.5px; }
    .index_about iframe { height:220px; }
    .breadcrumb-box .main-title { font-size:20px; }
    .content-title { font-size:19px; }
    .footer-top iframe { height:260px; }
    .link-else img { width:46px; }
}
@media screen and (max-width:400px) {
    .news-list.list-h:not(.slick-initialized) > .item { flex-basis:100%; max-width:100%; }
}
