
@font-face {
    font-family: 'HeroTitleSC';
    src: url('./fonts/NotoSerifSC-Bold.woff2') format('woff2'),
         url('./fonts/NotoSerifSC-Bold.otf') format('opentype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}


@font-face {
    font-family: 'InterLocal';
    src: local('Inter'), local('Inter Regular'), local('Inter 18pt');
    font-display: swap;
}
@font-face {
    font-family: 'SerifLocal';
    src: local('Noto Serif SC'), local('Source Han Serif SC'), local('Songti SC'), local('STSong');
    font-display: swap;
}
:root { --navy: #0f172a; --gold: #b78f54; --line: #f1f5f9; --text-main: #334155; --text-sub: #94a3b8; }
    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    body { margin: 0; font-family: 'InterLocal', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; background: #fff; -webkit-font-smoothing: antialiased; }
    a { text-decoration: none; color: inherit; }

    /* ========================================================
       ✨ 顶部信任横幅
       ======================================================== */
    .top-banner { 
        position: absolute; top: 0; left: 0; width: 100%; text-align: center; 
        padding: 15px 20px; font-size: 0.75rem; color: #64748b; 
        background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); 
        border-bottom: 0.5px solid var(--line); z-index: 100; letter-spacing: 0.5px; 
    }
    .top-banner a { 
        color: var(--navy); text-decoration: none; font-weight: 600; 
        margin-left: 10px; transition: 0.3s; 
    }
    .top-banner a:hover { color: var(--gold); }

    /* ========================================================
       🔥 核心优化：彻底锁死布局，永不跳动
       ======================================================== */
    .search-hero-area { 
        display: flex; flex-direction: column; align-items: center; 
        /* 采用固定的视觉黄金比例，取消之前的动态居中和跳动 */
        padding-top: 20vh; 
        padding-bottom: 6vh;
    }
    
    .hero-h1 { font-family: 'HeroTitleSC', 'SerifLocal', 'Songti SC', serif; font-size: 3.5rem; font-weight: 700; color: var(--navy); letter-spacing: 1.5px; margin: 0; text-align: center; }
    .hero-p { font-size: 0.85rem; color: var(--text-sub); letter-spacing: 4px; margin-top: 15px; font-weight: 500; text-transform: uppercase; }
    
    .search-wrapper { position: relative; margin: 45px auto 0; max-width: 780px; width: 100%; padding: 0 20px; }
    #searchInput { 
        width: 100%; border: none; 
        padding: 35px 45px; 
        font-size: 1.3rem; 
        border-radius: 80px; background: #fff; 
        box-shadow: 0 25px 80px rgba(0,0,0,0.06); 
        outline: none; transition: box-shadow 0.4s, transform 0.4s; 
    }
    #searchInput::placeholder { color: #cbd5e1; font-weight: 300; }
    #searchInput:focus { box-shadow: 0 25px 80px rgba(0,0,0,0.12); transform: translateY(-2px); }

    .filter-tags { display: flex; justify-content: center; gap: 12px; margin-top: 35px; flex-wrap: wrap; width: 100%; }
    .tag { padding: 10px 22px; border-radius: 40px; background: #fff; border: 1px solid var(--line); font-size: 0.85rem; cursor: pointer; transition: 0.3s; color: var(--text-main); white-space: nowrap; min-width: 132px; text-align: center; }
    .tag:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
    .tag.active { background: var(--navy); color: #fff; border-color: var(--navy); }

    .container { width: min(calc(100% - 32px), 1100px); margin: 0 auto; }
    #stateList { display: none; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; padding-bottom: 80px; margin-top: 10px; opacity: 0; transform: translateY(20px); transition: 0.5s ease; }
    #stateList.show { display: grid; opacity: 1; transform: translateY(0); }
    
    .state-card { border: 1px solid var(--line); padding: 22px; border-radius: 18px; cursor: pointer; transition: 0.3s; display: flex; justify-content: space-between; align-items: center; background: #fff; }
    .state-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.04); }

    /* ========================================================
       ✨ 详情页：PC端宽敞大气版
       ======================================================== */
    #drawer { 
        position: fixed; top: 0; right: 0; width: 100%; max-width: 580px; height: 100%; 
        background: #fff; z-index: 1001; transform: translateX(105%); transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
        padding: 60px 50px; overflow-y: auto; box-shadow: -10px 0 50px rgba(0,0,0,0.06); 
    }
    #drawer.active { transform: translateX(0); }
    .overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.05); backdrop-filter: blur(4px); z-index: 1000; display: none; }
    .overlay.active { display: block; }
    
    .back-btn { cursor:pointer; color:var(--text-sub); font-size:0.75rem; letter-spacing:2px; display:inline-block; margin-bottom:25px; font-weight: 500;}
    
    .detail-header h2 { font-family: 'Noto Serif SC', serif !important; font-size: 2.2rem; font-weight: 500; margin: 0; color: var(--navy); letter-spacing: 1px; display: flex; align-items: baseline; }
    .detail-header h2 small { font-family: 'InterLocal', sans-serif; font-weight: 200; color: #cbd5e1; font-size: 1.1rem; margin-left: 12px; }

    .section-label { font-size: 0.7rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-weight: 500; margin-top: 35px; display: block; border-bottom: 0.5px solid var(--line); padding-bottom: 12px; }
    .section-content { font-size: 0.95rem; line-height: 1.8; color: #64748b; margin-top: 15px; font-weight: 300; letter-spacing: 0.5px; }

    .inline-tag { display: inline-block; background: #f8fafc; border: 0.5px solid #e2e8f0; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; color: #64748b; margin-right: 8px; margin-bottom: 5px; font-weight: 400; vertical-align: middle; }

    .due-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 18px; }
    .due-item { padding: 18px 20px; border-radius: 12px; border: 0.5px solid #f1f5f9; background: transparent; }
    .due-item small { font-size: 0.6rem; color: var(--text-sub); display: block; margin-bottom: 6px; font-weight: 500; letter-spacing: 1.5px; }
    
    .num-font, .text-val { font-family: 'InterLocal', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif !important; font-weight: 300 !important; color: #64748b !important; font-size: 0.95rem !important; line-height: 1.8 !important; letter-spacing: 0.5px !important; }
    .tax-val { margin-top: 12px !important; font-size: 0.95rem !important; }

    .tax-remind { font-size: 0.8rem; color: #94a3b8; line-height: 1.7; margin-top: 40px; padding: 25px; background: #fbfcfd; border-radius: 15px; font-weight: 300; }
    .cta { display: block; background: var(--navy); color: #fff; padding: 18px; text-align: center; text-decoration: none; font-size: 0.95rem; border-radius: 50px; margin-top: 30px; font-weight: 400; letter-spacing: 2px; transition: 0.3s; }
    .cta:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

    /* ========================================================
       📱 手机端：响应式覆盖
       ======================================================== */
    @media (max-width: 768px) {
        .top-banner { font-size: 0.65rem; padding: 10px 15px; line-height: 1.6; }
        .top-banner a { display: inline-block; margin-left: 5px; }

        /* 手机端也锁死固定高度，防止弹出键盘时乱跳 */
        .search-hero-area { padding-top: 15vh; padding-bottom: 4vh; }
        .hero-h1 { font-size: 2.4rem; font-weight: 900; } 
        .search-wrapper { margin-top: 24px; padding: 0 12px; max-width: 100%; }
        #searchInput { padding: 20px 22px; font-size: 1rem; border-radius: 44px; }
        
        #drawer { padding: 30px 22px; max-width: 100%; }
        .back-btn { margin-bottom: 15px; font-size: 0.65rem; }
        .detail-header h2 { font-size: 1.6rem; }
        .detail-header h2 small { font-size: 0.9rem; margin-left: 8px; }
        .section-label { margin-top: 22px; padding-bottom: 8px; font-size: 0.65rem; }
        .section-content { margin-top: 10px; font-size: 0.9rem; line-height: 1.6; }
        .inline-tag { padding: 2px 8px; font-size: 0.7rem; margin-right: 6px; }
        .due-grid { gap: 10px; margin-top: 12px; }
        .due-item { padding: 12px; }
        .due-item small { font-size: 0.55rem; margin-bottom: 4px; }
        .num-font, .text-val { font-size: 0.9rem !important; }
        .tax-val { margin-top: 8px !important; font-size: 0.9rem !important; }
        .tax-remind { margin-top: 25px; padding: 18px; font-size: 0.75rem; line-height: 1.5; }
        .cta { margin-top: 20px; padding: 16px; font-size: 0.85rem; }
        .filter-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 470px; margin-top: 26px; }
        .tag { min-width: 0; width: 100%; padding: 11px 12px; font-size: 0.9rem; }
        .site-footer { max-width: 100%; margin: 40px auto 24px; padding: 0 18px; text-align: center; }
        .site-footer .footer-line { font-size: 0.72rem; line-height: 1.78; }
    }
  
    .site-footer {
        max-width: 1480px;
        margin: 64px auto 34px;
        padding: 0 24px;
        text-align: center;
        color: #94a3b8;
    }
    .site-footer .footer-line {
        font-size: 0.78rem;
        line-height: 1.9;
        letter-spacing: 0.18px;
        margin-left: auto;
        margin-right: auto;
    }
    .site-footer .footer-line:first-child {
        max-width: none;
    }
    .site-footer .footer-line:last-child {
        max-width: 1500px;
    }
    .site-footer .footer-line + .footer-line {
        margin-top: 8px;
    }
    .site-footer a {
        color: inherit;
        text-decoration: none;
    }
    .site-footer strong {
        font-weight: 700;
        color: #64748b;
    }


/* SEO additions */
.seo-noscript{
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 0 20px 18px;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.8;
}
.seo-noscript a{
  color: inherit;
  text-decoration: none;
  margin-right: 10px;
}
body.state-body{
  background:#fff;
}
.state-page-wrap{
  padding-top: 110px;
  padding-bottom: 34px;
}
.state-page-panel{
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.state-page-card{
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 48px 42px;
  box-shadow: 0 16px 50px rgba(15,23,42,0.04);
}
.state-page-card .detail-header{
  margin-bottom: 4px;
}
.state-page-card .back-btn{
  margin-bottom: 22px;
}
.state-page-card .cta{
  max-width: 360px;
}
.state-page-footer{
  margin-top: 18px;
}
.states-directory{
  max-width: 980px;
  margin: 0 auto;
  padding: 110px 20px 32px;
}
.states-directory h1{
  font-family: 'SerifLocal', 'Songti SC', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.states-directory p{
  color: #64748b;
  line-height: 1.8;
  margin-top: 14px;
}
.states-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 28px;
}
.states-grid a{
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
  text-decoration:none;
  color:var(--navy);
  background:#fff;
  transition:0.2s ease;
}
.states-grid a:hover{
  border-color: var(--gold);
  transform: translateY(-1px);
}
.states-grid small{
  display:block;
  margin-top:6px;
  color:#94a3b8;
  font-size:0.72rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
}
@media (max-width: 768px){
  .seo-noscript{
    padding: 0 18px 14px;
    font-size: 11px;
  }
  .state-page-wrap{
    padding-top: 90px;
    padding-bottom: 24px;
  }
  .state-page-panel{
    padding: 0 16px;
  }
  .state-page-card{
    padding: 28px 22px;
    border-radius: 20px;
  }
  .states-directory{
    padding: 88px 16px 24px;
  }
  .states-directory h1{
    font-size: 2rem;
  }
  .states-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.state-card, .states-grid a { text-decoration: none !important; color: inherit !important; }
.state-card span, .states-grid a span { text-decoration: none !important; }


/* footer alignment override */
.site-footer{
  max-width: 1080px !important;
  margin: 64px auto 34px !important;
  padding: 0 24px !important;
  text-align: left !important;
  color: #94a3b8 !important;
}
.site-footer .footer-line{
  max-width: 1080px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.9 !important;
  letter-spacing: 0.15px !important;
}
.site-footer .footer-line:first-child{
  margin-bottom: 8px !important;
}
.site-footer .footer-line + .footer-line{
  margin-top: 0 !important;
}
.site-footer a{
  color: inherit !important;
  text-decoration: none !important;
}
.site-footer strong{
  font-weight: 700 !important;
  color: #64748b !important;
}
@media (max-width: 768px){
  .site-footer{
    max-width: 100% !important;
    margin: 40px auto 24px !important;
    padding: 0 18px !important;
    text-align: left !important;
  }
  .site-footer .footer-line{
    font-size: 0.72rem !important;
    line-height: 1.78 !important;
  }
}
