/* SGHarem · 后宫网 — Shared Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dark: #a8870a;
  --gold-dim: rgba(212,175,55,.15);
  --black: #080808;
  --black-card: #111111;
  --black-card2: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #888;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-gold: 0 0 20px rgba(212,175,55,.18);
  --font: 'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--text); font-family: var(--font); line-height: 1.7; font-size: 16px; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--black-card); }
.section-title { font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; color: var(--gold); text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: .93rem; margin-bottom: 40px; }
.gold-line { width: 60px; height: 2px; background: linear-gradient(90deg,var(--gold-dark),var(--gold),var(--gold-dark)); margin: 12px auto 36px; }
.btn { display: inline-block; padding: 13px 32px; background: linear-gradient(135deg,var(--gold-dark),var(--gold),var(--gold-dark)); color: #000; font-weight: 700; font-size: .95rem; border-radius: 4px; letter-spacing: .04em; transition: opacity .2s,transform .15s; }
.btn:hover { opacity: .88; transform: translateY(-2px); color: #000; }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold-dim); color: var(--gold-light); }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: rgba(8,8,8,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 60px; }
.nav-logo { font-size: 1.2rem; font-weight: 800; color: var(--gold); letter-spacing: .05em; }
.nav-logo span { color: var(--text); font-weight: 400; font-size: .82rem; margin-left: 8px; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { padding: 7px 18px; background: var(--gold); color: #000; font-weight: 700; font-size: .82rem; border-radius: 4px; }
.nav-cta:hover { background: var(--gold-light); color: #000; }
.nav-tg { padding: 7px 14px; background: transparent; border: 1px solid #2ca5e0; color: #2ca5e0; font-weight: 600; font-size: .82rem; border-radius: 4px; transition: background .2s; }
.nav-tg:hover { background: rgba(44,165,224,.12); color: #5bc8f5; }

/* BREADCRUMB */
.breadcrumb { background: var(--black-card2); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb ol { display: flex; list-style: none; gap: 8px; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb ol li::after { content: '›'; margin-left: 8px; color: var(--border); }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li a { color: var(--text-muted); }
.breadcrumb ol li a:hover { color: var(--gold); }

/* PAGE HERO */
.page-hero { padding: 60px 0 48px; background: linear-gradient(180deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.90) 100%), var(--page-hero-bg, linear-gradient(180deg,#0d0d0d,#080808)) center/cover no-repeat; border-bottom: 1px solid var(--border); text-align: center; }
.page-hero .tag { display: inline-block; border: 1px solid var(--gold-dark); color: var(--gold); font-size: .75rem; padding: 4px 14px; border-radius: 40px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; background: var(--gold-dim); }
.page-hero h1 { font-size: clamp(1.6rem,4vw,2.6rem); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.page-hero h1 em { font-style: normal; background: linear-gradient(135deg,var(--gold-dark),var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { font-size: .97rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 28px; }

/* LISTINGS GRID */
.listings-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width:900px){ .listings-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:520px){ .listings-grid{ grid-template-columns: 1fr; } }
.listing-card { background: var(--black-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s,transform .2s; }
.listing-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.listing-img { height: 220px; background: linear-gradient(135deg,#181818,#222); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; position: relative; overflow: hidden; }
.listing-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.listing-badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #000; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: .06em; text-transform: uppercase; }
.listing-body { padding: 16px; }
.listing-name { font-size: .97rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.listing-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.listing-price { font-size: .97rem; font-weight: 700; color: var(--gold); }
.listing-area { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* INFO GRID */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.info-card { background: var(--black-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; border-left: 3px solid var(--gold); }
.info-card h3 { font-size: .97rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.info-card p { font-size: .87rem; color: var(--text-muted); line-height: 1.65; }

/* NAT/AREA CARDS */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 14px; }
.link-card { background: var(--black-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; display: block; color: var(--text); transition: border-color .2s,transform .2s; }
.link-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.link-card .lc-icon { font-size: 1.8rem; margin-bottom: 10px; }
.link-card .lc-name { font-size: .93rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.link-card .lc-sub { font-size: .78rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--black-card); overflow: hidden; }
details[open] { border-color: var(--gold-dark); }
summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
details[open] summary { color: var(--gold); }
.faq-answer { padding: 0 20px 16px; color: var(--text-muted); font-size: .9rem; line-height: 1.7; border-top: 1px solid var(--border); }
.faq-answer .en { color: #666; font-size: .83rem; margin-top: 6px; font-style: italic; }

/* PRICE TABLE */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { background: var(--black-card2); color: var(--gold); font-size: .82rem; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); letter-spacing: .06em; text-transform: uppercase; }
.price-table td { padding: 12px 16px; font-size: .88rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.price-table tr:hover td { background: var(--black-card); }
.price-table .highlight { color: var(--gold); font-weight: 600; }

/* ALERT BAR */
.alert-bar { background: linear-gradient(90deg,#1a0e00,#1c1200,#1a0e00); border-top: 1px solid var(--gold-dark); border-bottom: 1px solid var(--gold-dark); padding: 12px 20px; }
.alert-bar .container { display: flex; align-items: flex-start; gap: 12px; }
.alert-bar .ai { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; line-height: 1.6; }
.alert-bar p { font-size: .87rem; }
.alert-bar strong { color: var(--gold); }
.url-tag { display: inline-block; background: var(--gold); color: #000; font-weight: 700; padding: 1px 7px; border-radius: 3px; font-size: .82rem; margin: 0 2px; }

/* FOOTER */
footer { background: #050505; border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.footer-about { font-size: .83rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.footer-url { display: inline-block; border: 1px solid var(--gold-dark); color: var(--gold); font-size: .8rem; padding: 5px 12px; border-radius: 4px; }
.footer-col h4 { font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .83rem; color: var(--text-muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .75rem; color: #444; }
.footer-disclaimer { font-size: .73rem; color: #333; margin-top: 14px; line-height: 1.6; }

@media(max-width:768px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px) {
  .footer-top { grid-template-columns: 1fr; }
}
