/* Global CSS extracted from PHP modules of vvin.my */

/* ===== CSS from bazi.php ===== */
.bz-wrap{
    max-width:960px;
    margin:0 auto;
    padding:14px 16px 32px;
    color:#e5e7eb;
  }

  /* Hero card */
  .bz-hero{
    border-radius:18px;
    padding:14px 14px 10px;
    background:
      radial-gradient(circle at 10% -20%,rgba(248,250,252,0.12),transparent 60%),
      radial-gradient(circle at 100% 0,rgba(251,191,36,0.28),transparent 60%),
      linear-gradient(135deg,#020617,#020617);
    border:1px solid rgba(148,163,184,0.7);
    box-shadow:
      0 18px 55px rgba(15,23,42,0.98),
      0 0 0 1px rgba(15,23,42,1);
    margin-bottom:10px;
  }
  .bz-hero-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:4px;
  }
  .bz-hero-sub{
    font-size:13px;
    color:#e5e7eb;
    opacity:.95;
    line-height:1.5;
  }
  .bz-hero-note{
    margin-top:6px;
    font-size:11px;
    color:#facc15;
  }

  /* Form card */
  .bz-form-card{
    background:radial-gradient(circle at top left,#111827,#020617);
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.6);
    padding:12px 14px 14px;
    box-shadow:0 18px 40px rgba(15,23,42,0.95);
  }

  .bz-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 14px;
  }
  .bz-field{
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  .bz-label{
    font-size:12px;
    color:#9ca3af;
  }

  /* ✅ Inputs & dropdowns now standard like global form style */
  .bz-input,
  .bz-select{
    width:100%;
    border-radius:10px;
    border:1px solid rgba(148,163,184,0.75);
    background:#020617;
    font-size:14px;
    color:#e5e7eb;
    outline:none;
    padding:10px 11px;
    box-sizing:border-box;
    -webkit-appearance:none;
    appearance:none;
  }

  /* 🔧 iPhone Safari: fix overflow of date/time native UI */
  .bz-input{
    height:48px !important;
    line-height:48px !important;
  }
  .bz-input::-webkit-date-and-time-value{
    height:100%;
    line-height:48px;
    padding:0;
  }

  /* keep only custom arrow for select */
  .bz-select{
    background-image:
      linear-gradient(45deg, transparent 50%, #9ca3af 50%),
      linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position:
      calc(100% - 18px) center,
      calc(100% - 13px) center;
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
  }

  .bz-input:focus,
  .bz-select:focus{
    border-color:#facc15;
    box-shadow:
      0 0 0 1px rgba(250,204,21,0.9),
      0 0 0 6px rgba(250,204,21,0.18),
      0 18px 36px rgba(15,23,42,0.98);
  }

  .bz-btn-wrap{
    grid-column:1 / -1;
    margin-top:4px;
  }
  .bz-btn{
    width:100%;
    border:none;
    border-radius:18px;
    padding:11px 22px;
    font-size:15px;
    font-weight:700;
    background:linear-gradient(to right,#fbbf24,#f97316);
    color:#111827;
    cursor:pointer;
    box-shadow:0 0 16px rgba(250,204,21,0.65);
  }
  .bz-btn:hover{
    transform:translateY(-1px);
  }

  /* result card */
  .bz-result-wrap{
    margin-top:10px;
  }
  .bz-card{
    background:radial-gradient(circle at top,#0f172a 0%,#020617 75%);
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.65);
    padding:14px 14px 12px;
    box-shadow:0 24px 40px rgba(15,23,42,0.95);
  }
  .bz-card-title{
    font-size:15px;
    font-weight:700;
    margin-bottom:8px;
    color:#facc15;
  }
  .bz-row{
    font-size:14px;
    margin-bottom:6px;
  }
  .bz-row-label{
    color:#9ca3af;
    margin-right:6px;
  }
  .bz-row-pillars{
    font-weight:600;
  }
  .bz-disclaimer{
    margin-top:8px;
    font-size:12px;
    color:#9ca3af;
  }
  .bz-api{
    margin-top:6px;
    font-size:11px;
    color:#6b7280;
    word-break:break-all;
  }

  @media (max-width:640px){
    .bz-wrap{
      padding:10px 14px 24px;
    }
    .bz-form{
      grid-template-columns:1fr;
      gap:8px;
    }
    .bz-btn{
      margin-top:2px;
    }
  }

/* ===== CSS from blindbox.php ===== */
.bx-wrap{
    max-width:700px;
    margin:0 auto;
    padding:14px 16px 40px;
    color:#e5e7eb;
  }

  /* HERO */
  .bx-hero{
    border-radius:18px;
    padding:16px 16px 14px;
    background:
      radial-gradient(circle at 10% -20%,rgba(251,191,36,0.25),transparent 70%),
      radial-gradient(circle at 100% 0,rgba(249,115,22,0.35),transparent 60%),
      linear-gradient(135deg,#020617,#020617);
    border:1px solid rgba(148,163,184,0.65);
    box-shadow:0 22px 48px rgba(15,23,42,0.98);
    margin-bottom:18px;
  }
  .bx-hero-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:4px;
  }
  .bx-hero-sub{
    font-size:13px;
    color:#e5e7eb;
    opacity:.95;
    line-height:1.45;
  }

  /* CARD WRAP */
  .bx-card-wrap{
    background:radial-gradient(circle at top left,#111827,#020617);
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.55);
    padding:18px 14px 20px;
    box-shadow:0 20px 42px rgba(15,23,42,0.95);
  }

  /* GRID */
  .bx-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    gap:14px;
  }

  /* INDIVIDUAL CARD */
  .bx-box{
    position:relative;
    width:100%;
    padding-top:135%;
    perspective:900px;
    cursor:pointer;
  }

  .bx-inner{
    position:absolute;
    inset:0;
    transform-style:preserve-3d;
    transition:transform .45s ease;
  }
  .bx-box.flipped .bx-inner{
    transform:rotateY(180deg);
  }

  .bx-face{
    position:absolute;
    inset:0;
    border-radius:16px;
    border:1px solid rgba(148,163,184,0.7);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    backface-visibility:hidden;
    padding:8px;
    box-shadow:0 16px 30px rgba(15,23,42,0.9);
  }

  .bx-front{
    background:radial-gradient(circle at 20% 0%,#f97316 0%,#b91c1c 40%,#020617 100%);
  }
  .bx-back{
    background:radial-gradient(circle at 20% 0%,#22c55e 0%,#15803d 40%,#020617 100%);
    transform:rotateY(180deg);
  }

  /* FRONT CONTENT */
  .bx-front-label{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:#fee2e2;
    margin-bottom:6px;
    font-weight:600;
  }
  .bx-front-icon{
    font-size:26px;
    margin-bottom:4px;
  }
  .bx-front-text{
    font-size:11px;
    color:#f3f4f6;
    text-align:center;
  }

  /* BACK CONTENT */
  .bx-num{
    font-size:24px;
    font-weight:800;
    letter-spacing:0.15em;
    text-indent:0.15em;
    margin-bottom:4px;
  }
  .bx-tag{
    font-size:10px;
    color:#d1d5db;
    margin-bottom:6px;
  }

  /* ACTION buttons */
  .bx-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:center;
  }
  .bx-btn{
    font-size:10px;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.8);
    background:rgba(15,23,42,0.92);
    color:#e5e7eb;
    cursor:pointer;
  }
  .bx-btn:active{
    transform:scale(.96);
  }

  .bx-note{
    margin-top:16px;
    text-align:center;
    font-size:11px;
    color:#6b7280;
  }

  @media(max-width:480px){
    .bx-grid{
      grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
      gap:10px;
    }
  }

/* ===== CSS from dream.php ===== */
.dream-wrap{
    max-width:960px;
    margin:0 auto;
    padding:14px 16px 96px; /* extra bottom for tabs */
    color:#e5e7eb;
  }

  /* Hero box (same feeling as lucky.php) */
  .dream-hero{
    border-radius:18px;
    padding:12px 14px 10px;
    background:
      radial-gradient(circle at 10% -20%,rgba(248,250,252,0.12),transparent 60%),
      radial-gradient(circle at 100% 0,rgba(251,191,36,0.25),transparent 60%),
      linear-gradient(135deg,#020617,#020617);
    border:1px solid rgba(148,163,184,0.7);
    box-shadow:
      0 18px 55px rgba(15,23,42,0.98),
      0 0 0 1px rgba(15,23,42,1);
    margin-bottom:12px;
  }
  .dream-hero-title{
    font-size:18px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:4px;
  }
  .dream-hero-title .emoji{
    font-size:20px;
  }
  .dream-hero-sub{
    font-size:13px;
    color:#e5e7eb;
    opacity:.96;
    line-height:1.5;
  }

  /* Search card – same box feeling as lucky.php controls */
  .dream-search-card{
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.6);
    background:radial-gradient(circle at top left,#111827 0%,#020617 75%);
    box-shadow:0 18px 40px rgba(15,23,42,0.95);
    padding:12px 14px 12px;
    margin-bottom:14px;
  }
  .dream-search-label{
    font-size:12px;
    color:#9ca3af;
    margin-bottom:4px;
  }
  .dream-search-row{
    display:flex;
    flex-direction:column;   /* mobile: button on next line */
    gap:8px;
    margin-bottom:6px;
  }

  .dream-input{
    flex:1;
    background:#020617;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.7);
    padding:11px 14px;
    font-size:15px;
    color:#e5e7eb;
    outline:none;
    box-shadow:0 12px 28px rgba(15,23,42,0.95);
  }
  .dream-input::placeholder{
    color:#6b7280;
  }

  .dream-btn{
    border-radius:999px;
    border:none;
    background:linear-gradient(135deg,#fbbf24,#f97316);
    color:#111827;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    padding:10px 14px;
    box-shadow:0 0 16px rgba(250,204,21,0.7);
    width:100%; /* full width on mobile */
  }

  .dream-search-hint{
    font-size:11px;
    color:#9ca3af;
  }

  /* Result / fav / recent panels */
  .dream-panel{
    margin-bottom:14px;
  }
  .dream-panel.hidden{
    display:none;
  }

  .dream-summary{
    font-size:0.8rem;
    color:#9ca3af;
    margin:0 2px 8px;
  }

  .dream-grid{
    display:grid;
    gap:10px;
  }
  @media(min-width:720px){
    .dream-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  }

  .dream-card{
    display:flex;
    gap:10px;
    background:#020617;
    border-radius:16px;
    border:1px solid rgba(148,163,184,0.55);
    padding:10px 11px;
    box-shadow:0 16px 28px rgba(15,23,42,0.9);
  }

  .dream-num{
    width:88px;
    min-width:88px;
    text-align:center;
    font-weight:900;
    font-size:1.6rem;
    border-radius:14px;
    padding:10px 6px;
    background:linear-gradient(180deg,#0f172a,#020617);
    border:2px solid #f97316;
    color:#facc15;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .dream-txt{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  .dream-en{
    font-weight:700;
    font-size:0.95rem;
  }
  .dream-zh{
    font-size:0.9rem;
    color:#fef3c7;
  }

  .dream-actions{
    margin-top:6px;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  .dream-abtn{
    font-size:0.8rem;
    padding:5px 9px;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.6);
    background:rgba(15,23,42,0.9);
    color:#e5e7eb;
    cursor:pointer;
  }
  .dream-abtn.fav-active{
    border-color:#facc15;
    color:#facc15;
  }

  .dream-empty{
    display:none;
    justify-content:center;
    align-items:center;
    padding:18px 10px;
    font-size:0.9rem;
    color:#9ca3af;
  }

  /* bottom tabs */
  .dream-tabs{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:40;
    background:#020617;
    border-top:1px solid rgba(55,65,81,0.9);
    padding:8px 0;
  }
  .dream-tabs-inner{
    max-width:960px;
    margin:0 auto;
    padding:0 16px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
  }
  .dream-tab{
    border-radius:16px;
    border:1px solid rgba(148,163,184,0.7);
    background:#020617;
    font-size:0.85rem;
    padding:8px 8px;
    text-align:center;
    color:#e5e7eb;
    cursor:pointer;
  }
  .dream-tab.active{
    background:linear-gradient(to right,#fbbf24,#f97316);
    border-color:transparent;
    color:#111827;
    box-shadow:0 0 16px rgba(250,204,21,0.7);
  }

  /* toast */
  .dream-toast{
    position:fixed;
    left:50%;
    bottom:90px;
    transform:translateX(-50%);
    background:#020617;
    color:#e5e7eb;
    border-radius:14px;
    border:1px solid rgba(148,163,184,0.7);
    padding:8px 12px;
    font-size:0.8rem;
    opacity:0;
    pointer-events:none;
    transition:opacity .25s;
    box-shadow:0 18px 30px rgba(0,0,0,0.9);
    z-index:50;
  }
  .dream-toast.show{ opacity:1; }

  .dream-fav-grid{
    display:grid;
    gap:10px;
  }
  @media(min-width:720px){
    .dream-fav-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  }

  .dream-recent-chips{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .dream-recent-chip{
    font-size:0.8rem;
    padding:5px 9px;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.6);
    background:rgba(15,23,42,0.9);
    cursor:pointer;
    color:#9ca3af;
  }

  @media(max-width:640px){
    .dream-wrap{
      padding:10px 14px 96px;
    }
    .dream-num{
      font-size:1.5rem;
      width:80px;
      min-width:80px;
    }
  }

  @media(min-width:720px){
    /* Desktop: put input + button on same row */
    .dream-search-row{
      flex-direction:row;
      align-items:center;
    }
    .dream-btn{
      width:auto;
      min-width:130px;
    }
  }

/* ===== CSS from header.php ===== */
:root {
      --bg: #020617;
      --bg-card: rgba(15,23,42,0.96);
      --bg-card-soft: rgba(15,23,42,0.8);
      --text-main: #e5e7eb;
      --text-muted: #9ca3af;
      --accent: #facc15;
      --accent-strong: #f97316;
      --border-soft: rgba(148,163,184,0.45);
      --radius-lg: 16px;
      --radius-md: 12px;
      --shadow-soft: 0 18px 45px rgba(15,23,42,0.85);
    }

    * { box-sizing:border-box; }

    /* ✨ 全站基础字体 + 行 */
    html {
      font-size: 17px;
    }

    body {
      margin:0;
      padding:0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #020617 0%, #000 80%);
      color: var(--text-main);
      min-height:100vh;
      display:flex;
      flex-direction:column;
      line-height: 1.6;
      -webkit-text-size-adjust: 100% !important;
    }

    a { color:inherit; text-decoration:none; }

    main {
      flex:1;
      padding: 16px 16px 28px;
    }

    /* 🌌 页面内容容器 */
    .vv-page {
      max-width: 960px;
      margin: 0 auto;
    }

    .vv-page-title {
      font-size: 1.4rem;
      font-weight: 700;
      margin: 4px 0 4px;
      display:flex;
      align-items:center;
      gap:8px;
    }

    .vv-page-title span.emoji {
      font-size: 1.5rem;
    }

    .vv-page-desc {
      font-size: 0.95rem;
      color: var(--text-muted);
      margin-bottom: 14px;
    }

    /* 🌟 通用卡片 */
    .vv-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      border:1px solid rgba(148,163,184,0.45);
      padding: 14px 16px 16px;
      margin-bottom: 14px;
      box-shadow: var(--shadow-soft);
      position:relative;
      overflow:hidden;
    }

    .vv-card-header {
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:8px;
      margin-bottom:8px;
    }

    .vv-card-title {
      font-size: 1.05rem;
      font-weight: 600;
      display:flex;
      align-items:center;
      gap:6px;
    }

    .vv-card-title .sub-en {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-weight:400;
    }

    .vv-card-tag {
      font-size:0.75rem;
      padding:3px 8px;
      border-radius:999px;
      border:1px solid rgba(148,163,184,0.5);
      color: var(--text-muted);
      white-space:nowrap;
    }

    .vv-card-body {
      font-size:0.95rem;
      color: var(--text-main);
    }

    .vv-card-body p {
      margin: 2px 0 4px;
      font-size:0.95rem;
    }

    .vv-card-footer {
      margin-top:10px;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:10px;
      flex-wrap:wrap;
    }

    .vv-chip-row {
      display:flex;
      flex-wrap:wrap;
      gap:6px;
    }

    .vv-chip {
      font-size:0.75rem;
      padding:4px 9px;
      border-radius:999px;
      border:1px dashed rgba(148,163,184,0.6);
      color: var(--text-muted);
    }

    /* 🔘 通用按钮 */
    .vv-btn {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:6px;
      padding:9px 14px;
      border-radius:999px;
      border:1px solid transparent;
      font-size:0.95rem;
      font-weight:500;
      cursor:pointer;
      background:transparent;
      color:var(--text-main);
      text-decoration:none;
      transition: all .15s ease-out;
      outline:none;
    }

    .vv-btn-main {
      background:radial-gradient(circle at top,#facc15,#f97316);
      color:#111827;
      border-color:transparent;
      box-shadow:0 0 18px rgba(250,204,21,0.55);
    }

    .vv-btn-main:hover {
      transform:translateY(-1px);
      box-shadow:0 0 20px rgba(250,204,21,0.85);
    }

    .vv-btn-ghost {
      border-color:rgba(148,163,184,0.7);
      background:rgba(15,23,42,0.85);
      color:var(--text-main);
    }

    .vv-btn-ghost:hover {
      background:rgba(31,41,55,0.95);
    }

    .vv-btn .arrow {
      font-size:1.1rem;
    }

    /* 📋 表单 */
    .vv-form-row {
      margin-bottom:12px;
    }

    .vv-label {
      display:block;
      margin-bottom:4px;
      font-size:0.9rem;
      color:var(--text-muted);
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
      width:100%;
      padding:10px 11px;
      border-radius:10px;
      border:1px solid rgba(148,163,184,0.7);
      background:rgba(15,23,42,0.95);
      color:var(--text-main);
      font-size:0.98rem;
      outline:none;
    }

    input::placeholder,
    textarea::placeholder {
      color:rgba(148,163,184,0.75);
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color:var(--accent);
      box-shadow:0 0 0 1px rgba(250,204,21,0.55);
    }

    /* 顶部 Header */
    header.vv-header {
      position:sticky;
      top:0;
      z-index:50;
      backdrop-filter:blur(20px);
      background:linear-gradient(to bottom, rgba(15,23,42,0.98), rgba(15,23,42,0.93));
      border-bottom:1px solid rgba(148,163,184,0.25);
      box-shadow:0 6px 18px rgba(15,23,42,0.9);
    }

    .vv-header-inner{
      max-width:960px;
      margin:0 auto;
      padding:12px 16px 8px;
      /* 👇 for absolute language button */
      position:relative;
    }

    .vv-logo-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
    }

    .vv-logo{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }

    .vv-logo-mark{
      width:36px;
      height:36px;
      border-radius:8px;
      overflow:hidden;
      display:flex;
      align-items:center;
      justify-content:center;
      background:#020617;
      box-shadow:
        0 0 12px rgba(250,204,21,0.3),
        0 0 24px rgba(129,140,248,0.3);
    }

    .vv-logo-mark img{
      width:100%;
      height:100%;
      object-fit:cover;
    }

    .vv-logo-text{
      display:flex;
      flex-direction:column;
      min-width:0;
    }

    .vv-logo-main{
      font-weight:800;
      letter-spacing:0.06em;
      font-size:1.05rem;
      white-space:nowrap;
    }

    .vv-logo-sub{
      font-size:0.82rem;
      color:var(--text-muted);
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width:260px;
    }

    .vv-right{
      display:flex;
      align-items:center;
      gap:10px;
      margin-left:auto;
    }

    .vv-badge{
      font-size:0.75rem;
      padding:4px 8px;
      border-radius:999px;
      background:rgba(15,118,110,0.18);
      border:1px solid rgba(45,212,191,0.5);
      color:#a5f3fc;
      display:flex;
      align-items:center;
      gap:4px;
      white-space:nowrap;
    }

    .vv-badge .dot{
      width:5px;
      height:5px;
      border-radius:999px;
      background:#22c55e;
      box-shadow:0 0 8px rgba(34,197,94,0.9);
    }

    /* 👇 固定语言按钮在右上角 */
    .lang-switch-icon{
      position:absolute;
      top:12px;
      right:16px;
      z-index:60;
    }

    /* 🔁 右侧小语言按 */
    .lang-switch-icon a{
      display:flex;
      align-items:center;
      justify-content:center;
      width:32px;
      height:32px;
      border-radius:999px;
      border:1px solid #facc15;
      background:#111827;
      color:#facc15;
      font-size:0.8rem;
      font-weight:600;
      box-shadow:0 0 12px rgba(250,204,21,0.7);
    }

    /* 顶部导航 */
    nav.vv-nav{
      margin-top:10px;
      display:flex;
      flex-wrap:wrap;
      gap:8px;
    }

    nav.vv-nav a{
      font-size:0.9rem;
      padding:8px 14px;
      border-radius:999px;
      border:1px solid rgba(148,163,184,0.4);
      background:rgba(15,23,42,0.9);
      display:inline-flex;
      align-items:center;
      gap:5px;
      white-space:nowrap;
      line-height:1.2;
      min-height:34px;
    }

    nav.vv-nav a .dot{
      width:5px;
      height:5px;
      border-radius:999px;
      background:#9ca3af;
    }

    nav.vv-nav a.active{
      background:linear-gradient(to right,#f97316,#facc15);
      color:#111827;
      border-color:transparent;
      box-shadow:0 0 14px rgba(249,115,22,0.5);
    }

    nav.vv-nav a.active .dot{
      background:#111827;
    }

    /* ---------- Mobile 优化 ---------- */
    @media (max-width:640px){

      html {
        font-size: 18px;
      }

      main {
        padding: 14px 14px 24px;
      }

      .vv-logo-row{
        flex-direction: column;
        align-items:flex-start;
        gap:6px;
      }

      .vv-right{
        width:100%;
        justify-content:space-between;
        margin-left:0;
      }

      .vv-logo-sub{
        max-width:100%;
        font-size:0.85rem;
      }

      .vv-badge{
        display:none;
      }

      .lang-switch-icon a{
        width:28px;
        height:28px;
        font-size:0.78rem;
      }

      /* 📱 菜单用 4 列网格 */
      nav.vv-nav{
        margin-top:8px;
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:6px;
      }

      nav.vv-nav a{
        justify-content:center;
        width:100%;
        font-size:0.9rem;
        padding:9px 0;
        min-height:38px;
        white-space:normal;
        text-align:center;
        line-height:1.3;
      }
    }

/* ===== CSS from index.php ===== */
.home-wrap{
    max-width:960px;
    margin:0 auto;
    padding:18px 16px 32px;
    color:#e5e7eb;
  }
  .home-head{
    margin-bottom:14px;
  }
  .home-title{
    font-size:20px;
    font-weight:700;
    margin:0 0 6px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .home-title span.emoji{
    font-size:22px;
  }
  .home-sub{
    font-size:14px;
    color:#9ca3af;
    line-height:1.6;
  }
  .home-tagline{
    margin-top:8px;
    font-size:12px;
    padding:8px 10px;
    border-radius:12px;
    background:rgba(15,23,42,0.9);
    border:1px dashed rgba(148,163,184,0.6);
  }
  .home-tagline b{color:#e5e7eb;}

  /* ---- Feature cards ---- */
  /* Mobile: single row, horizontal scroll */
  .home-grid{
    margin-top:14px;
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:6px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .home-grid::-webkit-scrollbar{
    height:4px;
  }
  .home-grid::-webkit-scrollbar-track{
    background:transparent;
  }
  .home-grid::-webkit-scrollbar-thumb{
    background:rgba(75,85,99,0.7);
    border-radius:999px;
  }

  .home-card{
    background:radial-gradient(circle at top left,#111827 0%,#020617 70%);
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.5);
    padding:12px 13px 13px;
    box-shadow:0 18px 40px rgba(15,23,42,0.9);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:130px;
    flex:0 0 82%;          /* show one big card at a time */
    max-width:360px;
    scroll-snap-align:start;
  }

  .home-card-main{
    display:flex;
    flex-direction:column;
    gap:4px;
  }

  .home-card-title{
    font-size:15px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:6px;
  }
  .home-card-title .en{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#a5b4fc;
  }
  .home-card-desc{
    font-size:13px;
    color:#9ca3af;
    line-height:1.5;
  }
  .home-card-meta{
    font-size:12px;
    color:#a5b4fc;
    margin-top:2px;
  }

  .home-card-footer{
    margin-top:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
  }

  .home-link{
    font-size:12px;
    padding:7px 11px;
    border-radius:999px;
    border:1px solid rgba(96,165,250,0.7);
    background:rgba(15,23,42,0.95);
    color:#bfdbfe;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
  }
  .home-link:hover{
    background:linear-gradient(to right,#60a5fa,#a855f7);
    border-color:transparent;
    color:#020617;
    box-shadow:0 0 14px rgba(96,165,250,0.7);
  }

  .home-chip{
    font-size:11px;
    padding:4px 8px;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.6);
    color:#9ca3af;
  }

  /* ---- Support / Donation ---- */
  .home-support{
    margin-top:20px;
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.45);
    background:radial-gradient(circle at top,#020617 0%,#000 80%);
    padding:12px 12px 14px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
  }
  .home-support-text{
    flex:1 1 180px;
    font-size:13px;
    color:#9ca3af;
    line-height:1.6;
  }
  .home-support-text b{
    color:#e5e7eb;
  }
  .home-support-qr{
    flex:0 0 auto;
  }
  .home-support-qr img{
    width:120px;
    height:auto;
    border-radius:14px;
    border:1px solid rgba(248,113,113,0.8);
    background:#fff;
  }

  /* Desktop / tablet: go back to grid layout */
  @media (min-width:768px){
    .home-grid{
      display:grid;
      overflow-x:visible;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:12px;
      padding-bottom:0;
    }
    .home-card{
      flex:none;
      max-width:none;
      min-height:130px;
    }
  }

  @media (max-width:640px){
    .home-wrap{
      padding-top:10px;
    }
    .home-title{
      font-size:18px;
    }
  }

/* ===== CSS from lucky.php ===== */
.lk-page{
    max-width:960px;
    margin:8px auto 40px;
    padding:0 16px 32px;
  }

  .lk-card{
    margin-bottom:14px;
  }

  .lk-hero-head{
    margin-bottom:12px;
  }
  .lk-hero-title{
    font-size:1.25rem;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .lk-hero-title span.emoji{
    font-size:1.4rem;
  }
  .lk-hero-sub{
    margin-top:4px;
    font-size:0.9rem;
    color:#9ca3af;
  }

  /* form row */
  .lk-form-grid{
    display:grid;
    grid-template-columns:2fr 2fr 1.4fr;
    gap:12px;
    align-items:end;
  }

  .lk-field-label{
    font-size:0.8rem;
    color:#9ca3af;
    margin-bottom:4px;
  }

  .lk-select{
    width:100%;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.75);
    background-color:#020617;
    padding:12px 40px 12px 16px;
    font-size:0.98rem;
    color:#e5e7eb;
    outline:none;
    box-shadow:0 12px 28px rgba(15,23,42,0.95);
    transition:
      border-color .15s ease,
      box-shadow .15s ease,
      transform .1s ease;

    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    background-image:
      linear-gradient(45deg, transparent 50%, #9ca3af 50%),
      linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position:
      calc(100% - 18px) center,
      calc(100% - 13px) center;
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
  }
  .lk-select:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 32px rgba(15,23,42,0.95);
  }
  .lk-select:focus{
    border-color:#facc15;
    box-shadow:
      0 0 0 1px rgba(250,204,21,0.9),
      0 0 0 6px rgba(250,204,21,0.18),
      0 18px 36px rgba(15,23,42,0.98);
    background-image:
      linear-gradient(45deg, transparent 50%, #facc15 50%),
      linear-gradient(135deg, #facc15 50%, transparent 50%);
  }

  .lk-btn-generate{
    width:100%;
    border:none;
    border-radius:18px;
    padding:12px 0;
    font-size:0.98rem;
    font-weight:700;
    background:linear-gradient(to right,#fbbf24,#f97316);
    color:#111827;
    cursor:pointer;
    box-shadow:0 0 18px rgba(250,204,21,0.7);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
  }
  .lk-btn-generate span.icon{
    font-size:1.1rem;
  }
  .lk-btn-generate:hover{
    transform:translateY(-1px);
  }

  /* results card */
  .lk-results-meta{
    font-size:0.8rem;
    color:#9ca3af;
    margin-bottom:10px;
    display:flex;
    justify-content:space-between;
    gap:8px;
    flex-wrap:wrap;
  }
  .lk-results-title{
    font-weight:500;
  }
  .lk-results-hint{
    opacity:0.9;
  }

  .lk-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }
  .lk-badge{
    min-width:92px;
    padding:10px 16px;
    border-radius:16px;
    border:1px solid rgba(148,163,184,0.7);
    background:#020617;
    font-size:1.45rem;
    font-weight:800;
    text-align:center;
    letter-spacing:0.18em;
    box-shadow:0 14px 30px rgba(15,23,42,0.9);
  }

  .hidden{ display:none; }

  @media (max-width:640px){
    .lk-page{
      margin-top:4px;
      padding:4px 14px 24px;
    }

    .lk-hero-title{
      font-size:1.2rem;
    }

    .lk-form-grid{
      grid-template-columns:1fr;
      gap:6px;
    }

    .lk-select{
      font-size:1.05rem;
      padding:14px 42px 14px 16px;
      border-radius:18px;
    }

    .lk-btn-generate{
      font-size:1.05rem;
      padding:13px 0;
    }

    .lk-badge{
      flex:1 1 calc(50% - 10px);
      min-width:0;
    }
  }

/* ===== CSS from qiuqian.php ===== */
.qq-wrap{
    max-width:960px;
    margin:0 auto;
    padding:18px 16px 40px;
    color:#e5e7eb;
  }

  /* Hero card */
  .qq-hero{
    border-radius:18px;
    padding:14px 14px 12px;
    background:
      radial-gradient(circle at 5% -10%,rgba(248,250,252,0.12),transparent 60%),
      radial-gradient(circle at 110% 0,rgba(248,113,113,0.38),transparent 60%),
      linear-gradient(135deg,#020617,#020617);
    border:1px solid rgba(148,163,184,0.7);
    box-shadow:
      0 18px 55px rgba(15,23,42,0.98),
      0 0 0 1px rgba(15,23,42,1);
    margin-bottom:14px;
  }
  .qq-hero-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:4px;
  }
  .qq-hero-sub{
    font-size:13px;
    color:#e5e7eb;
    opacity:.95;
    line-height:1.5;
  }
  .qq-hero-note{
    margin-top:6px;
    font-size:11px;
    color:#9ca3af;
  }

  /* Shake area */
  .qq-shake-card{
    background:radial-gradient(circle at top left,#111827,#020617);
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.65);
    padding:14px 14px 12px;
    box-shadow:0 20px 40px rgba(15,23,42,0.95);
    margin-bottom:12px;
  }
  .qq-shake-row{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .qq-shake-text{
    font-size:13px;
    color:#9ca3af;
  }
  .qq-btn{
    padding:10px 20px;
    border-radius:999px;
    background:linear-gradient(to right,#fbbf24,#f97316);
    color:#111827;
    border:none;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 0 16px rgba(250,204,21,0.65);
    display:inline-flex;
    align-items:center;
    gap:6px;
  }
  .qq-btn:hover{
    transform:translateY(-1px);
  }

  /* Result card */
  .qq-result-wrap{
    margin-top:2px;
  }
  .qq-card{
    background:radial-gradient(circle at top,#111827 0%,#020617 75%);
    border:1px solid rgba(250,204,21,0.6);
    border-radius:18px;
    padding:16px 16px 14px;
    box-shadow:0 24px 45px rgba(0,0,0,0.7);
  }

  .qq-lot-header{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
    margin-bottom:10px;
  }
  .qq-lot-title{
    font-size:18px;
    font-weight:700;
    color:#facc15;
  }
  .qq-grade-badge{
    font-size:11px;
    padding:3px 9px;
    border-radius:999px;
    border:1px solid rgba(248,250,252,0.3);
    background:rgba(15,23,42,0.85);
    color:#fef9c3;
  }

  .qq-poem{
    font-size:15px;
    line-height:1.7;
    margin-bottom:12px;
    color:#e5e7eb;
  }

  .qq-section{
    margin-top:6px;
    padding-top:6px;
    border-top:1px dashed rgba(148,163,184,0.4);
    font-size:13px;
    line-height:1.6;
  }
  .qq-row{
    margin-bottom:4px;
  }
  .qq-label{
    font-weight:700;
    color:#fbbf24;
    margin-right:4px;
  }

  .qq-empty{
    font-size:13px;
    color:#9ca3af;
  }

  @media(max-width:640px){
    .qq-wrap{
      padding:14px 14px 28px;
    }
    .qq-hero{
      padding:12px 12px 10px;
    }
    .qq-shake-card{
      padding:12px 12px 10px;
    }
    .qq-btn{
      width:100%;
      justify-content:center;
    }
  }

/* ===== CSS from ziwei.php ===== */
.zw-wrap{
    max-width:960px;
    margin:0 auto;
    padding:14px 16px 32px;
    color:#e5e7eb;
  }

  .zw-hero{
    border-radius:18px;
    padding:14px 14px 10px;
    background:
      radial-gradient(circle at 10% -20%,rgba(248,250,252,0.12),transparent 60%),
      radial-gradient(circle at 100% 0,rgba(251,191,36,0.28),transparent 60%),
      linear-gradient(135deg,#020617,#020617);
    border:1px solid rgba(148,163,184,0.7);
    box-shadow:
      0 18px 55px rgba(15,23,42,0.98),
      0 0 0 1px rgba(15,23,42,1);
    position:relative;
    overflow:hidden;
    margin-bottom:10px;
  }

  .zw-hero-title{
    font-size:20px;
    font-weight:700;
    letter-spacing:0.03em;
    margin-bottom:4px;
  }

  .zw-hero-sub{
    font-size:13px;
    color:#e5e7eb;
    opacity:.95;
    max-width:620px;
    line-height:1.5;
  }

  .zw-hero-badges{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:8px;
  }

  .zw-badge{
    font-size:11px;
    border-radius:999px;
    padding:3px 9px;
    background:rgba(15,23,42,0.85);
    border:1px solid rgba(248,250,252,0.2);
    backdrop-filter:blur(12px);
  }

  .zw-hero-hint{
    margin-top:8px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 11px;
    border-radius:999px;
    border:1px solid rgba(251,191,36,0.6);
    background:linear-gradient(90deg,rgba(15,23,42,0.8),rgba(30,64,175,0.85));
    font-size:11px;
    color:#fef9c3;
  }

  .zw-hero-dot{
    width:8px;height:8px;
    border-radius:999px;
    background:#22c55e;
    box-shadow:0 0 0 4px rgba(34,197,94,0.4);
  }

  .zw-hero-count{
    position:absolute;
    right:12px;
    top:10px;
    font-size:11px;
    color:#cbd5f5;
    opacity:.9;
  }

  .zw-hero-count span{
    color:#facc15;
    font-weight:600;
  }

  /* Control card */
  .zw-control-card{
    background:radial-gradient(circle at top left,#1f2937,#020617);
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.6);
    padding:10px 12px 12px;
    box-shadow:0 16px 40px rgba(15,23,42,0.95);
  }
  .zw-control-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:4px;
  }
  .zw-select-wrap{
    flex:1 1 180px;
    max-width:260px;
  }
  .zw-select-label{
    font-size:12px;
    color:#9ca3af;
    margin-bottom:2px;
  }

  /* 下拉框样式对齐 lucky.php */
  .zw-select{
    width:100%;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.75);
    background:#020617;
    padding:10px 40px 10px 16px;
    font-size:15px;
    color:#e5e7eb;
    outline:none;
    box-shadow:0 12px 28px rgba(15,23,42,0.95);
    transition:
      border-color .15s ease,
      box-shadow .15s ease,
      transform .1s ease;

    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    background-image:
      linear-gradient(45deg, transparent 50%, #9ca3af 50%),
      linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position:
      calc(100% - 18px) center,
      calc(100% - 13px) center;
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
  }
  .zw-select:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 32px rgba(15,23,42,0.95);
  }
  .zw-select:focus{
    border-color:#facc15;
    box-shadow:
      0 0 0 1px rgba(250,204,21,0.9),
      0 0 0 6px rgba(250,204,21,0.18),
      0 18px 36px rgba(15,23,42,0.98);
    background-image:
      linear-gradient(45deg, transparent 50%, #facc15 50%),
      linear-gradient(135deg, #facc15 50%, transparent 50%);
  }

  .zw-btn-group{
    display:flex;
    gap:6px;
    align-items:flex-end;
  }
  .zw-btn{
    border:none;
    border-radius:18px;
    padding:9px 16px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
  }
  .zw-btn-main{
    background:linear-gradient(135deg,#fbbf24,#f97316);
    color:#111827;
    box-shadow:0 0 16px rgba(250,204,21,0.7);
  }
  .zw-btn-rand{
    background:radial-gradient(circle at top,#f97316,#db2777);
    color:#0b1120;
    box-shadow:0 0 16px rgba(244,114,182,0.6);
  }

  .zw-control-hint{
    font-size:11px;
    color:#9ca3af;
    margin-top:4px;
  }

  /* Result card */
  .zw-result-wrap{
    margin-top:10px;
  }

  .zw-result-card{
    background:linear-gradient(
      135deg,
      rgba(78,70,180,0.65),
      rgba(131,88,192,0.62),
      rgba(30,64,175,0.72)
    );
    backdrop-filter:blur(14px);
    border-radius:18px;
    border:1px solid rgba(191,219,254,0.8);
    padding:12px 14px 12px;
    box-shadow:
      0 8px 24px rgba(15,23,42,0.9),
      0 0 18px rgba(147,112,219,0.5);
    color:#f9fafb;
  }

  .zw-result-header{
    margin-bottom:6px;
  }

  .zw-result-label{
    font-size:13px;
    color:#e5e7eb;
  }

  .zw-tag-row{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:6px;
  }

  .zw-tag-chip{
    font-size:12px;
    padding:4px 8px;
    border-radius:999px;
    border:1px solid rgba(191,219,254,0.85);
    background:rgba(15,23,42,0.28);
    backdrop-filter:blur(10px);
  }

  .zw-card-title{
    font-size:15px;
    font-weight:700;
    margin-bottom:4px;
  }

  .zw-card-body{
    font-size:14px;
    line-height:1.6;
  }

  .zw-empty{
    font-size:13px;
    color:#e5e7eb;
    opacity:.9;
  }

  /* ---------- Mobile: force selects very near ---------- */
  @media(max-width:640px){
    .zw-wrap{
      padding:10px 14px 24px;
    }

    .zw-hero{
      padding:10px 12px 8px;
      border-radius:16px;
      margin-bottom:8px;
    }
    .zw-hero-title{
      font-size:18px;
    }
    .zw-hero-sub{
      font-size:13px;
    }
    .zw-hero-badges{
      display:none; /* 手机隐藏徽章，腾出空间 */
    }
    .zw-hero-hint{
      margin-top:6px;
    }

    .zw-control-card{
      padding:10px 12px 10px;
      border-radius:16px;
    }

    /* 关键：让两个下拉完全竖直排，几乎没有间距 */
    .zw-control-row{
      display:block !important;
      gap:0 !important;
      margin:0 !important;
      padding:0 !important;
    }
    .zw-select-wrap{
      max-width:none !important;
      margin:0 !important;
      padding:0 !important;
    }
    .zw-select-wrap + .zw-select-wrap{
      margin-top:4px !important; /* 唯一的小间距 */
    }

    .zw-select{
      font-size:16px;
      padding:11px 40px 11px 15px;
      border-radius:18px;
    }

    .zw-btn-group{
      justify-content:space-between;
      margin-top:6px;
    }
    .zw-btn{
      flex:1 1 0;
      text-align:center;
      padding:10px 8px;
      font-size:15px;
    }

    .zw-result-wrap{
      margin-top:8px;
    }
    .zw-result-card{
      padding:10px 12px 10px;
      border-radius:16px;
    }
  }

/* ===== Inline styles mapped to utility classes ===== */

.css-inline-1 { color:#fecaca; }

.css-inline-2 { float:right; }

.css-inline-3 { border-top:1px solid rgba(148,163,184,0.45);
        padding:12px 16px 16px;
        font-size:12px;
        color:#9ca3af;
        text-align:center;
        background:linear-gradient(to top, rgba(2,6,23,0.98), rgba(15,23,42,0.96));
        margin-top:16px; }

.css-inline-4 { max-width:960px;margin:0 auto; }

.css-inline-5 { margin-bottom:4px; }

.css-inline-6 { color:#e5e7eb;text-decoration:none;font-weight:600; }

.css-inline-7 { display:none;visibility:hidden }

.css-inline-8 { display:none; }
