
:root{
  --bg:#ffffff;--text:#0f172a;--muted:#6b7280;--border:#e5e7eb;
  --accent:#10b981;--accent-800:#065f46;--card:#ffffff;--soft:#f9fafb;
  --radius:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:min(1120px,94vw);margin:0 auto;padding:0 16px}

/* Header */
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.9);backdrop-filter:saturate(140%) blur(6px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:10px 0;gap:10px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;min-width:fit-content}
.logo{width:32px;height:32px;border-radius:12px;background:var(--accent);display:grid;place-items:center;color:#fff;font-weight:700}
.brand-name{font-weight:700;color:var(--accent-800);text-transform:uppercase;}
.nav{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.nav a{padding:6px 8px;border-radius:8px}
.nav a:hover{background:#ecfdf5;color:#065f46}

/* Hero */
.hero{border-bottom:1px solid var(--border);background:linear-gradient(180deg,#ecfdf5,#fff)}
.hero-inner{display:grid;gap:20px;padding:24px 0}
@media(min-width:880px){.hero-inner{grid-template-columns:1.05fr .95fr;align-items:center}}
.hero h1{margin:8px 0}
.hero p{color:var(--muted)}
.cta{display:inline-block;margin-top:12px;background:var(--accent);color:#fff;padding:10px 14px;border-radius:10px;font-weight:600}

/* Sections & grid */
.section{padding:22px 0}
.section-title{color:var(--accent-800);margin:0 0 6px}
.section-sub{color:var(--muted);margin-bottom:12px}
.grid{display:grid;gap:18px}
@media(min-width:620px){.grid{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.grid{grid-template-columns:1fr 1fr 1fr}}

/* Cards */
.card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(2,6,23,.08)}
.card .thumb{aspect-ratio:16/9;object-fit:cover;width:100%}
.card .body{padding:12px}
.badge{color:#059669;font-weight:700;font-size:.85rem;text-transform:capitalize}
.card h3{margin:6px 0 6px}
.card p{margin:0 0 10px;color:var(--muted);font-size:.95rem}

/* Ads */
.slot{margin:16px 0}
.slot .label{font-size:.8rem;color:rgb(51 51 51 / 30%);font-weight:400;margin-bottom:2px}
.slot .sub{font-size:.8rem;color:#9ca3af;margin-bottom:6px}
.slot .adwrap{
    /*border:1px dashed #d1d5db;*/
border-radius:12px;
/*padding:10px;background:#fafafa*/
    
    
}
.slot .adwrap ins.adsbygoogle{display:block !important;width:100%}

/* Article */
.article-wrap{padding:22px 0}
.article h1{color:var(--accent-800);margin:10px 0 8px}
.meta{color:var(--muted);margin-bottom:14px}
.article img{border:1px solid var(--border);border-radius:var(--radius);margin:12px 0 14px}
.content p{margin:0 0 12px}
.content h2{font-size:1.25rem;margin:14px 0 8px;color:#0b6b55}
.content h3{font-size:1.1rem;margin:12px 0 6px;color:#0b6b55}
.content ul,.content ol{padding-left:22px;margin:10px 0}
.content a{color:#0b6b55;text-decoration:underline}
.blocked{filter:blur(3px)}
.center-unlock{display:flex;justify-content:center;margin:20px 0}
.center-unlock .btn,#goStep2{background:var(--accent);color:#fff;border:0;padding:12px 30px;border-radius:999px;font-weight:700;cursor:pointer}

/* Modal */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  display: flex;              /* ✅ 一定要有 */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: visible;        /* ✅ 不要用 display:none */
  opacity: 1;                 /* ✅ 不要用透明动画 */
}
.modal {
  width: min(560px, 92vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  transform: none;            /* ✅ 确保非缩放状态 */
}
.modal h3{margin:0 0 8px;font-size:1.1rem;color:var(--accent-800)}
.modal .adbox{
    min-height:180px;
    width: 100%;
    /*border:1px dashed #d1d5db;*/
    border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    /*background:#f9fafb;*/
    color:#6b7280}
.modal .timer{margin-top:10px;font-size:.9rem;color:#6b7280}

/* Footer */
.site-footer{margin-top:40px;border-top:1px solid var(--border);background:#f9fafb}
.footer-top{padding:20px 0;display:grid;gap:14px}
@media(min-width:700px){.footer-top{grid-template-columns:repeat(4,1fr)}}
.footer-top h4{margin:0 0 8px;color:var(--accent-800)}
.footer-top p,.footer-top a{color:var(--muted)}
.footer-bottom{border-top:1px solid var(--border);padding:12px 0;text-align:center;color:#6b7280}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  position: relative;
  width: min(560px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.modal .adbox {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*border: 1px dashed #d1d5db;*/
  border-radius: 12px;
  /*background: #f9fafb;*/
}
.close-btn {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.close-btn:hover { color: #000; }
.timer { text-align: center; margin-top: 8px; color: #444; font-size: 14px; }
.hidden {
  display: none !important;
}


/*保证广告位有可用高度*/
.adwrap{
  width: 100%;
  min-height: 280px;   /* 保证有可用高度 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.adbox {
  width: 100%;
  min-height: 200px;   /* 保证有可用高度 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.adsbygoogle {
  width: 90%;
  height: auto;
}


/*解锁弹窗*/
.center-unlock button {
  transition: opacity 3s ease;
}
.center-unlock button.removed {
  opacity: 0;
  pointer-events: none;
}


/*搜索框*/
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 1rem;
}

/* 初始隐藏输入框与Go按钮 */
#navSearchInput, #navSearchBtn {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.nav-search.active #navSearchInput,
.nav-search.active #navSearchBtn {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#navSearchInput {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  width: 160px;
  margin-left: 6px;
}

#navSearchInput:focus {
  outline: none;
  border-color: #10b981;
}

#toggleSearchBtn,
#navSearchBtn {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
}

#toggleSearchBtn:hover,
#navSearchBtn:hover {
  background: #059669;
}

/* 当激活搜索时隐藏 🔍 */
.nav-search.active #toggleSearchBtn {
  display: none;
}



/* === Hero Carousel === */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 480px;
  margin-bottom: 24px;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}
.carousel-item {
  min-width: 100%;
  position: relative;
  /*flex-shrink: 0;*/
}
.carousel-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
}
.carousel-text {
  position: absolute;
  bottom: 40px;
  left: 60px;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 20px 24px;
  border-radius: 12px;
  max-width: 560px;
}
@media (max-width: 760px) {
  .carousel-text {
   left: 0px;
  }
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 32px;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* === Category Section === */
.read-more {
  text-align: right;
  margin-top: 16px;
}
.read-more a {
  color: #10b981;
  font-weight: bold;
  text-decoration: none;
}
.read-more a:hover {
  text-decoration: underline;
}


/* === Back to Top Button === */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}
#backToTop:hover {
  background-color: #059669;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop {
  transform: translateY(20px);
}
#backToTop.show {
  transform: translateY(0);
}

