:root {
      --bg: #FBF4E4;
      --surface: #FFFFFF;
      --border: #E7DDC5;
      --ink: #1F2A37;
      --muted: #5E5A4D;
      --primary: #C45C2A;
      --primary-hover: #A34A22;
      --primary-active: #823A1B;
      --primary-soft: #FCE8DC;
      --accent-warm: #E2900F;
      --accent-warm-soft: #FCEACB;
      --accent-green: #3F9142;
      --accent-green-soft: #E4F3E5;
      --radius-lg: 26px;
      --radius-md: 18px;
      --radius-sm: 12px;
      --shadow: 0 8px 24px rgba(31, 42, 55, 0.08);
      --shadow-lg: 0 20px 46px rgba(31, 42, 55, 0.14);
      --max: 1140px;
      --font-display: "Baloo 2", "PingFang SC", "Microsoft YaHei", sans-serif;
      --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      color: var(--ink);
      background: var(--bg);
      line-height: 1.7;
      min-height: 100vh;
    }
    a { color: var(--primary); text-decoration: none; font-weight: 700; }
    a:hover { color: var(--primary-active); text-decoration: underline; }
    img { max-width: 100%; display: block; }
    svg { display: block; }
    .wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
    .band-surface { background: var(--surface); }
    .band-warm { background: linear-gradient(180deg, var(--accent-warm-soft) 0%, var(--bg) 100%); }

    /* nav */
    .nav {
      position: sticky; top: 0; z-index: 50;
      backdrop-filter: blur(14px);
      background: rgba(251, 244, 228, 0.9);
      border-bottom: 1px solid var(--border);
    }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
    .brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 800; font-size: 1.1rem; font-family: var(--font-display); text-decoration: none; }
    .brand-badge { width: 36px; height: 36px; border-radius: 11px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); flex-shrink: 0; }
    .brand-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .nav-links { display: flex; align-items: center; gap: 0.4rem 1.05rem; flex-wrap: wrap; }
    .nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
    .nav-links a:hover { color: var(--primary); text-decoration: none; }
    .lang-select { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 0.28rem 0.9rem; font-weight: 700; cursor: pointer; font-size: 0.85rem; max-width: 7.5rem; }
    .lang-select:hover { border-color: var(--primary); color: var(--primary); }

    /* buttons */
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border-radius: 999px; padding: 0.85rem 1.4rem; font-weight: 800; font-family: var(--font-display); border: 1px solid transparent; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 12px 26px rgba(11,111,168,.3); }
    .btn-primary:hover { background: var(--primary-hover); }
    .btn-primary:active { background: var(--primary-active); }
    .btn-ghost { background: var(--surface); color: var(--ink) !important; border-color: var(--border); }
    .btn-ghost:hover { border-color: var(--primary); color: var(--primary) !important; }
    .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

    /* hero */
    .hero { padding: 3.4rem 0 3rem; position: relative; overflow: hidden; }
    .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
    .hero-globe-lines {
      position: absolute; top: -8%; right: -6%; width: 620px; height: 620px;
      opacity: .35; pointer-events: none; z-index: 0;
    }
    .eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 0.32rem 0.9rem; font-size: 0.85rem; font-weight: 800; margin-bottom: 1.1rem; font-family: var(--font-display); }
    h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.16; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 1.1rem; }
    h1 .accent { color: var(--primary); }
    .lead { font-size: 1.08rem; color: var(--muted); max-width: 36rem; }
    .stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
    .stat { display: flex; align-items: baseline; gap: 0.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.55rem 1.1rem; box-shadow: var(--shadow); }
    .stat b { font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); }
    .stat span { font-size: 0.8rem; color: var(--muted); font-weight: 700; }

    .hero-visual { position: relative; height: 400px; }
    .fan-path {
      position: absolute; inset: 0; width: 100%; height: 100%;
      opacity: .5; pointer-events: none;
    }
    .shot-fan { position: relative; width: 100%; height: 100%; }
    .shot-phone {
      position: absolute; top: 50%; left: 50%; width: 148px;
      border-radius: 20px; border: 5px solid #1F2A37; box-shadow: var(--shadow-lg);
      overflow: hidden; background: #111; aspect-ratio: 9/19.5;
      transition: transform .25s ease;
    }
    .shot-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .shot-phone.p1 { transform: translate(-50%,-50%) translate(-118px, 18px) rotate(-9deg); z-index: 1; width: 128px; }
    .shot-phone.p2 { transform: translate(-50%,-50%) translate(0, -6px) rotate(0deg); z-index: 3; width: 158px; }
    .shot-phone.p3 { transform: translate(-50%,-50%) translate(118px, 18px) rotate(9deg); z-index: 2; width: 128px; }
    .shot-phone.p1:hover { transform: translate(-50%,-50%) translate(-118px, 18px) rotate(-9deg) scale(1.06); z-index: 5; }
    .shot-phone.p2:hover { transform: translate(-50%,-50%) translate(0, -6px) rotate(0deg) scale(1.06); z-index: 5; }
    .shot-phone.p3:hover { transform: translate(-50%,-50%) translate(118px, 18px) rotate(9deg) scale(1.06); z-index: 5; }
    .hero-badge {
      position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
      display: flex; align-items: center; gap: 0.5rem; background: var(--surface);
      border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1.1rem 0.5rem 0.5rem;
      box-shadow: var(--shadow-lg); z-index: 6; white-space: nowrap;
    }
    .hero-badge img { width: 34px; height: 34px; border-radius: 10px; }
    .hero-badge span { font-size: 0.85rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); }

    section { padding: 3rem 0; }
    .section-head { margin-bottom: 1.6rem; max-width: 44rem; }
    .section-head h2 { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
    .section-head p { color: var(--muted); }
    .section-tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--accent-warm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }

    /* spotlight feature rows */
    .spotlight-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; padding: 1.8rem 0; }
    .spotlight-row + .spotlight-row { border-top: 1px dashed var(--border); }
    .spotlight-row.reverse .spotlight-text { order: 2; }
    .spotlight-row.reverse .spotlight-visual { order: 1; }
    .spotlight-num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
    .spotlight-text h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: .6rem; }
    .spotlight-text p { color: var(--muted); font-size: 1rem; max-width: 30rem; }
    .spotlight-visual {
      border-radius: var(--radius-lg); padding: 2.4rem; min-height: 190px;
      display: grid; place-items: center; position: relative; overflow: hidden;
    }
    .spotlight-visual.tone-blue { background: linear-gradient(160deg, var(--primary-soft), #fff); }
    .spotlight-visual.tone-warm { background: linear-gradient(160deg, var(--accent-warm-soft), #fff); }
    .spotlight-visual.tone-green { background: linear-gradient(160deg, var(--accent-green-soft), #fff); }
    .spotlight-visual .ring { position: absolute; border: 2px dashed currentColor; border-radius: 50%; opacity: .35; }
    .spotlight-visual.tone-blue .ring { color: var(--primary); width: 220px; height: 220px; }
    .spotlight-visual.tone-warm .ring { color: var(--accent-warm); width: 220px; height: 220px; }
    .spotlight-visual.tone-green .ring { color: var(--accent-green); width: 220px; height: 220px; }
    .spotlight-visual .icon-lg { position: relative; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-lg); }
    .spotlight-visual.tone-blue .icon-lg { color: var(--primary); }
    .spotlight-visual.tone-warm .icon-lg { color: var(--accent-warm); }
    .spotlight-visual.tone-green .icon-lg { color: var(--accent-green); }
    .spotlight-visual .icon-lg svg { width: 38px; height: 38px; }

    .feature-list { margin-top: 0.5rem; border-top: 1px dashed var(--border); }
    .feature-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px dashed var(--border); }
    .feature-item .icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
    .feature-item .icon svg { width: 20px; height: 20px; }
    .feature-item h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: .25rem; }
    .feature-item p { color: var(--muted); font-size: .93rem; }

    .tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
    .tag { background: var(--surface); border: 1px solid var(--border); color: var(--ink); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.86rem; font-weight: 700; }
    .tag:hover { border-color: var(--primary); color: var(--primary); }

    .landmark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.3rem; }
    .lm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
    .lm:nth-child(3n+1) { transform: rotate(-1.1deg); }
    .lm:nth-child(3n+2) { transform: rotate(0.6deg); }
    .lm:nth-child(3n+3) { transform: rotate(-0.4deg); }
    .lm:hover { transform: rotate(0deg) translateY(-5px); box-shadow: var(--shadow-lg); }
    .lm .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--primary-soft); }
    .lm .body { padding: 0.9rem 1.05rem 1.05rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
    .lm .flag { font-size: 0.74rem; font-weight: 800; color: var(--accent-green); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-display); }
    .lm h3 { color: var(--ink); font-size: 1.04rem; line-height: 1.3; font-family: var(--font-display); }
    .lm .en { color: var(--muted); font-size: 0.84rem; font-weight: 700; }
    .lm p { color: var(--muted); font-size: 0.9rem; flex: 1; }
    .lm .meta { font-size: 0.76rem; color: #8a8270; font-weight: 700; }

    .lm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1rem; }
    .lm-list-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
    .lm-list-item .flag { font-size: 0.7rem; font-weight: 800; color: var(--accent-green); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-display); }
    .lm-list-item h3 { font-family: var(--font-display); font-size: 0.98rem; color: var(--ink); margin: 0.15rem 0 0.1rem; }
    .lm-list-item .en { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
    .lm-list-item p { color: var(--muted); font-size: 0.87rem; margin-top: 0.35rem; }
    .lm-list-item .meta { font-size: 0.74rem; color: #8a8270; font-weight: 700; margin-top: 0.35rem; display: block; }
    @media (max-width: 640px) { .lm-list { grid-template-columns: 1fr; } }

    .parents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
    .parent-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
    .parent-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: .5rem; }
    .parent-card p { color: var(--muted); font-size: .96rem; }

    .faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.95rem 1.15rem; margin-bottom: 0.65rem; box-shadow: var(--shadow); }
    .faq summary { cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; font-family: var(--font-display); font-size: .98rem; }
    .faq summary::-webkit-details-marker { display: none; }
    .faq details[open] summary { margin-bottom: 0.45rem; color: var(--primary); }
    .faq p { color: var(--muted); font-size: 0.94rem; }

    .cta-band { background: linear-gradient(135deg, var(--primary), #8B3E1A); color: #fff; border-radius: var(--radius-lg); padding: 2.3rem 1.8rem; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.4fr auto; gap: 1.2rem; align-items: center; position: relative; overflow: hidden; }
    .cta-band h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.4rem; }
    .cta-band p { opacity: .92; max-width: 36rem; }
    .cta-band .btn-primary { background: #fff; color: var(--primary) !important; box-shadow: none; }
    .cta-band .btn-primary:hover { background: var(--accent-warm-soft); }
    .cta-band .btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
    .cta-band .btn-ghost:hover { border-color: #fff; color: #fff !important; }

    footer { margin-top: 1rem; padding: 2.2rem 0 2.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
    .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
    footer h4 { font-family: var(--font-display); color: var(--ink); margin-bottom: 0.5rem; font-size: 0.95rem; }
    footer ul { list-style: none; }
    footer li { margin-bottom: 0.35rem; }
    .beian { text-align: center; font-size: 0.85rem; }

    @media (max-width: 900px) {
      .hero-grid, .cta-band, .footer-grid, .parents-grid, .spotlight-row { grid-template-columns: 1fr; }
      .spotlight-row.reverse .spotlight-text, .spotlight-row.reverse .spotlight-visual { order: initial; }
      .nav-links .hide-sm, .nav-links .btn-appstore { display: none; }
      .brand { white-space: nowrap; }
      .hero-globe-lines { display: none; }
      .hero-visual { height: 320px; margin-top: 1rem; }
    }
    @media (max-width: 520px) {
      .shot-phone.p1 { transform: translate(-50%,-50%) translate(-78px, 14px) rotate(-9deg); width: 104px; }
      .shot-phone.p2 { width: 132px; }
      .shot-phone.p3 { transform: translate(-50%,-50%) translate(78px, 14px) rotate(9deg); width: 104px; }
    }

    .shot-sub { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; margin: 0.4rem 0 0.8rem; font-weight: 700; }
    .shot-switcher { position: relative; }
    .shot-tab-bar { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
    .shot-panel { display: none; }
    #shot-tab-iphone:checked ~ .shot-tab-bar label[for="shot-tab-iphone"],
    #shot-tab-ipad:checked ~ .shot-tab-bar label[for="shot-tab-ipad"] { background: var(--primary); color: #fff; border-color: var(--primary); }
    #shot-tab-iphone:checked ~ .shot-panels #shot-panel-iphone,
    #shot-tab-ipad:checked ~ .shot-panels #shot-panel-ipad { display: block; }
    .shot-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
    .shot-gallery.ipad { grid-template-columns: repeat(3, 1fr); }
    .shot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
    .shot-card img { width: 100%; height: auto; display: block; background: #111; }
    .shot-card figcaption { text-align: center; padding: 0.55rem 0.4rem 0.7rem; color: var(--muted); font-weight: 700; font-size: 0.86rem; }
    @media (max-width: 800px) {
      .shot-gallery, .shot-gallery.ipad { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
    }

    .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

    /* theme switcher (CSS-only tabs, no JS) */
    .theme-switcher { position: relative; }
    .theme-radio { position: absolute; opacity: 0; pointer-events: none; }
    .theme-tab-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
    .theme-tab-label { cursor: pointer; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 0.88rem; user-select: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
    .theme-panel { display: none; }
    .theme-radio:first-of-type:checked ~ .theme-panels #panel-continent { display: block; }
    .theme-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
    .theme-panel-head h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
    .theme-panel-head h3 .en { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--muted); margin-left: 0.4rem; }
    .theme-panel-head .count { font-size: 0.82rem; color: var(--muted); font-weight: 700; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.7rem; }
    @media (max-width: 640px) { .theme-tab-bar { gap: 0.4rem; } .theme-tab-label { font-size: 0.82rem; padding: 0.4rem 0.8rem; } }
#tab-continent:checked ~ .theme-tab-bar label[for="tab-continent"] { background: #5B9BD5; color: #fff; border-color: #5B9BD5; }
#tab-continent:checked ~ .theme-panels #panel-continent { display: block; }
#tab-ocean:checked ~ .theme-tab-bar label[for="tab-ocean"] { background: #4FB8C4; color: #fff; border-color: #4FB8C4; }
#tab-ocean:checked ~ .theme-panels #panel-ocean { display: block; }
#tab-country:checked ~ .theme-tab-bar label[for="tab-country"] { background: #E8A33C; color: #fff; border-color: #E8A33C; }
#tab-country:checked ~ .theme-panels #panel-country { display: block; }
#tab-wonder:checked ~ .theme-tab-bar label[for="tab-wonder"] { background: #D9614C; color: #fff; border-color: #D9614C; }
#tab-wonder:checked ~ .theme-panels #panel-wonder { display: block; }
#tab-animal:checked ~ .theme-tab-bar label[for="tab-animal"] { background: #7BC455; color: #fff; border-color: #7BC455; }
#tab-animal:checked ~ .theme-panels #panel-animal { display: block; }
#tab-mountain:checked ~ .theme-tab-bar label[for="tab-mountain"] { background: #9B6B3F; color: #fff; border-color: #9B6B3F; }
#tab-mountain:checked ~ .theme-panels #panel-mountain { display: block; }
#tab-volcano:checked ~ .theme-tab-bar label[for="tab-volcano"] { background: #E85D3C; color: #fff; border-color: #E85D3C; }
#tab-volcano:checked ~ .theme-panels #panel-volcano { display: block; }
#tab-river:checked ~ .theme-tab-bar label[for="tab-river"] { background: #5EC2C4; color: #fff; border-color: #5EC2C4; }
#tab-river:checked ~ .theme-panels #panel-river { display: block; }
#tab-lake:checked ~ .theme-tab-bar label[for="tab-lake"] { background: #4FB8A8; color: #fff; border-color: #4FB8A8; }
#tab-lake:checked ~ .theme-panels #panel-lake { display: block; }
#tab-desert:checked ~ .theme-tab-bar label[for="tab-desert"] { background: #E5B44A; color: #fff; border-color: #E5B44A; }
#tab-desert:checked ~ .theme-panels #panel-desert { display: block; }
#tab-naturalWonder:checked ~ .theme-tab-bar label[for="tab-naturalWonder"] { background: #F2C43D; color: #fff; border-color: #F2C43D; }
#tab-naturalWonder:checked ~ .theme-panels #panel-naturalWonder { display: block; }
#tab-plate:checked ~ .theme-tab-bar label[for="tab-plate"] { background: #8A7BC4; color: #fff; border-color: #8A7BC4; }
#tab-plate:checked ~ .theme-panels #panel-plate { display: block; }
#tab-climateZone:checked ~ .theme-tab-bar label[for="tab-climateZone"] { background: #8FD6B8; color: #fff; border-color: #8FD6B8; }
#tab-climateZone:checked ~ .theme-panels #panel-climateZone { display: block; }
#tab-dinosaur:checked ~ .theme-tab-bar label[for="tab-dinosaur"] { background: #D06F45; color: #fff; border-color: #D06F45; }
#tab-dinosaur:checked ~ .theme-panels #panel-dinosaur { display: block; }
#tab-plant:checked ~ .theme-tab-bar label[for="tab-plant"] { background: #4CAF50; color: #fff; border-color: #4CAF50; }
#tab-plant:checked ~ .theme-panels #panel-plant { display: block; }
#tab-hydropower:checked ~ .theme-tab-bar label[for="tab-hydropower"] { background: #2196F3; color: #fff; border-color: #2196F3; }
#tab-hydropower:checked ~ .theme-panels #panel-hydropower { display: block; }
#tab-nuclear:checked ~ .theme-tab-bar label[for="tab-nuclear"] { background: #8E9AAF; color: #fff; border-color: #8E9AAF; }
#tab-nuclear:checked ~ .theme-panels #panel-nuclear { display: block; }
#tab-mine:checked ~ .theme-tab-bar label[for="tab-mine"] { background: #8B4513; color: #fff; border-color: #8B4513; }
#tab-mine:checked ~ .theme-panels #panel-mine { display: block; }

    /* Official Apple App Store badge (bilingual, swapped via html[lang]) */
    .appstore-badge { display: inline-flex; height: 48px; transition: transform .15s ease; vertical-align: middle; }
    .appstore-badge svg { height: 100%; width: auto; display: block; }
    a:hover .appstore-badge { transform: translateY(-2px); }
    html:not([lang="en"]):not([lang="ja"]):not([lang="ko"]) .appstore-badge[data-lang="en"] { display: none; }
    html[lang="en"] .appstore-badge[data-lang="zh"],
    html[lang="ja"] .appstore-badge[data-lang="zh"],
    html[lang="ko"] .appstore-badge[data-lang="zh"] { display: none; }
    .appstore-badge-row { display: inline-flex; align-items: center; }

    .appstore-badge.sm { height: 32px; }
    .appstore-badge-row.nav-badge { line-height: 0; }

  
    .explore-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    .explore-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.25rem 1.2rem;
      box-shadow: var(--shadow);
    }
    .explore-card .emoji {
      font-size: 1.7rem;
      line-height: 1;
      margin-bottom: 0.55rem;
    }
    .explore-card h3 {
      font-family: var(--font-display);
      font-size: 1.08rem;
      margin-bottom: 0.35rem;
      color: var(--ink);
    }
    .explore-card p { color: var(--muted); font-size: 0.92rem; }
    .chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
    .chip {
      display: inline-flex; align-items: center;
      padding: 0.32rem 0.75rem;
      border-radius: 999px;
      font-size: 0.82rem; font-weight: 800;
      background: var(--primary-soft);
      color: var(--primary-active);
      border: 1px solid rgba(196,92,42,.18);
    }
    .btn-appstore {
      display: inline-flex; align-items: center; gap: 0.55rem;
      background: #111; color: #fff !important;
      border-radius: 12px; padding: 0.55rem 1rem 0.55rem 0.85rem;
      text-decoration: none !important;
      font-family: var(--font-body);
      box-shadow: var(--shadow);
      transition: transform .15s ease, background .15s ease;
    }
    .btn-appstore:hover { background: #222; color: #fff !important; transform: translateY(-1px); text-decoration: none !important; }
    .btn-appstore .as-sub { display: block; font-size: 0.62rem; font-weight: 600; opacity: .85; line-height: 1.1; }
    .btn-appstore .as-main { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.15; letter-spacing: .01em; }
    .btn-appstore svg { flex-shrink: 0; }
    .btn-appstore.lg { padding: 0.72rem 1.2rem 0.72rem 1rem; border-radius: 14px; }
    .btn-appstore.lg .as-main { font-size: 1.2rem; }
    .btn-appstore.sm { padding: 0.35rem 0.75rem 0.35rem 0.6rem; border-radius: 10px; }
    .btn-appstore.sm .as-sub { font-size: 0.55rem; }
    .btn-appstore.sm .as-main { font-size: 0.88rem; }
    .btn-appstore.sm svg { width: 18px; height: 18px; }
    .nav-badge { margin-left: 0.15rem; }
    .coming-pill {
      display: inline-flex; align-items: center; gap: 0.4rem;
      background: var(--accent-warm-soft); color: #8A5A00;
      border: 1px solid #E8C98A; border-radius: 999px;
      padding: 0.55rem 1rem; font-weight: 800; font-size: 0.9rem;
    }
    .parents-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    }
    .parent-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-md); padding: 1.2rem; box-shadow: var(--shadow);
    }
    .parent-card h3 { font-family: var(--font-display); margin-bottom: 0.35rem; font-size: 1.05rem; }
    .parent-card p { color: var(--muted); font-size: 0.92rem; }
    @media (max-width: 900px) {
      .explore-grid, .parents-grid { grid-template-columns: 1fr; }
    }
    /* posters are full ASO frames – soften phone mock frame */
    .shot-card img { background: #F7E8B0; }
    .shot-phone { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid rgba(31,42,55,.12); }

  




  
  
  
    .species-switcher { position: relative; }
    .species-switcher > .theme-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
    .species-tab-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
    .species-tab-bar .theme-tab-label:hover { border-color: var(--primary); color: var(--primary); }
    .species-panels .theme-panel { display: none; }
    .species-cat-lead { color: var(--muted); font-size: 0.95rem; margin: -0.35rem 0 1.1rem; max-width: 42rem; }
    .dino-grid .dino-card { min-height: 100%; }
    .dino-grid .dino-card .body { padding-top: 1rem; }
    .dino-grid .dino-card h3 { font-size: 1.08rem; }
    @media (min-width: 901px) { .dino-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
    @media (max-width: 640px) {
      .species-tab-bar { gap: 0.4rem; }
      .species-tab-bar .theme-tab-label { font-size: 0.82rem; padding: 0.4rem 0.8rem; }
    }
    #sp-tab-stars:checked ~ .species-tab-bar label[for="sp-tab-stars"] { background: #D06F45; color: #fff; border-color: #D06F45; }
    #sp-tab-stars:checked ~ .species-panels #sp-panel-stars { display: block; }
    #sp-tab-triassic:checked ~ .species-tab-bar label[for="sp-tab-triassic"] { background: #9B6B3F; color: #fff; border-color: #9B6B3F; }
    #sp-tab-triassic:checked ~ .species-panels #sp-panel-triassic { display: block; }
    #sp-tab-jurassic:checked ~ .species-tab-bar label[for="sp-tab-jurassic"] { background: #3F9142; color: #fff; border-color: #3F9142; }
    #sp-tab-jurassic:checked ~ .species-panels #sp-panel-jurassic { display: block; }
    #sp-tab-cre_carn:checked ~ .species-tab-bar label[for="sp-tab-cre_carn"] { background: #C45C2A; color: #fff; border-color: #C45C2A; }
    #sp-tab-cre_carn:checked ~ .species-panels #sp-panel-cre_carn { display: block; }
    #sp-tab-cre_armor:checked ~ .species-tab-bar label[for="sp-tab-cre_armor"] { background: #8B6914; color: #fff; border-color: #8B6914; }
    #sp-tab-cre_armor:checked ~ .species-panels #sp-panel-cre_armor { display: block; }
    #sp-tab-cre_other:checked ~ .species-tab-bar label[for="sp-tab-cre_other"] { background: #7BC455; color: #fff; border-color: #7BC455; }
    #sp-tab-cre_other:checked ~ .species-panels #sp-panel-cre_other { display: block; }

    /* ---- static SEO pages: nav, breadcrumbs, hub, category, legal ---- */
    .lang-switch { position: relative; }
    .lang-switch > summary {
      list-style: none; cursor: pointer; user-select: none;
      display: inline-flex; align-items: center; gap: 0.35rem;
      border: 1px solid var(--border); background: var(--surface); color: var(--ink);
      border-radius: 999px; padding: 0.28rem 0.85rem; font-weight: 700; font-size: 0.85rem;
    }
    .lang-switch > summary::-webkit-details-marker { display: none; }
    .lang-switch > summary::after { content: "▾"; font-size: 0.7rem; color: var(--muted); }
    .lang-switch[open] > summary, .lang-switch > summary:hover { border-color: var(--primary); color: var(--primary); }
    .lang-switch ul {
      position: absolute; right: 0; top: calc(100% + 0.45rem); z-index: 60;
      list-style: none; display: grid; grid-template-columns: repeat(2, minmax(6.8rem, 1fr));
      gap: 0.15rem; padding: 0.4rem; background: var(--surface);
      border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    }
    .lang-switch li { margin: 0; }
    .lang-switch li a { display: block; padding: 0.4rem 0.65rem; border-radius: 9px; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
    .lang-switch li a:hover { background: var(--primary-soft); color: var(--primary-active); text-decoration: none; }
    .lang-switch li a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-active); }

    .breadcrumb {
      width: min(100% - 2rem, var(--max)); margin: 1rem auto 0;
      display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
      font-size: 0.82rem; color: var(--muted); font-weight: 700;
    }
    .breadcrumb a { color: var(--muted); font-weight: 700; }
    .breadcrumb a:hover { color: var(--primary); }
    .breadcrumb span[aria-current="page"] { color: var(--ink); }
    .crumb-sep { color: #b9ad94; }

    .page-hero { padding: 1.9rem 0 2.9rem; }
    .page-hero .lead { max-width: 46rem; }
    .page-hero .stats { margin-top: 1.5rem; }
    .h1-alt {
      display: block; margin-top: 0.45rem;
      font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.35;
      color: var(--muted); font-weight: 700; letter-spacing: 0;
    }
    .category-hero { border-top: 5px solid var(--cat, var(--primary)); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
    .category-hero-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
    .category-emoji {
      flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
      display: inline-grid; place-items: center; font-size: 1.45rem;
      background: color-mix(in srgb, var(--cat, var(--primary)) 14%, #fff);
      border: 1px solid color-mix(in srgb, var(--cat, var(--primary)) 26%, #fff);
    }
    .category-emoji.lg { width: 62px; height: 62px; border-radius: 18px; font-size: 2rem; }
    .category-count {
      display: inline-block; padding: 0.25rem 0.8rem; border-radius: 999px;
      background: color-mix(in srgb, var(--cat, var(--primary)) 12%, #fff);
      color: color-mix(in srgb, var(--cat, var(--primary)) 70%, #000);
      border: 1px solid color-mix(in srgb, var(--cat, var(--primary)) 25%, #fff);
      font-size: 0.8rem; font-weight: 800; font-family: var(--font-display);
    }
    .data-note { color: #8a8270; font-size: 0.78rem; font-weight: 700; margin-top: 0.85rem; }

    .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
    .category-card {
      position: relative; display: flex; flex-direction: column; gap: 0.3rem;
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
      padding: 1.35rem 1.4rem 1.25rem; box-shadow: var(--shadow); color: var(--ink);
      overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .category-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--cat, var(--primary)); }
    .category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cat, var(--primary)); text-decoration: none; }
    .category-card h3 { margin-top: 0.45rem; font-family: var(--font-display); font-size: 1.24rem; line-height: 1.25; color: var(--ink); }
    .category-card .category-alt { color: var(--muted); font-size: 0.84rem; font-weight: 700; }
    .category-card p { margin-top: 0.35rem; color: var(--muted); font-size: 0.92rem; flex: 1; }
    .category-card .category-count { position: absolute; top: 1.15rem; right: 1.2rem; }
    .category-card .category-emoji { margin-bottom: 0.2rem; }
    .category-cta { margin-top: 0.7rem; color: var(--cat, var(--primary)); font-family: var(--font-display); font-size: 0.88rem; font-weight: 800; }
    .category-card:hover .category-cta { text-decoration: underline; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }

    .intro-text {
      max-width: 56rem; margin-bottom: 1.9rem; padding-left: 1rem;
      border-left: 4px solid var(--primary-soft);
      font-size: 1.03rem; color: var(--ink);
    }
    .section-more { margin-top: 1.4rem; font-family: var(--font-display); font-size: 0.98rem; }

    .dino-grid .dino-card { overflow: hidden; }
    .dino-grid .dino-card p { flex: 0 1 auto; }
    .dino-grid .lm .thumb { height: auto; }
    .thumb-link { display: block; }
    .thumb-empty {
      width: 100%; aspect-ratio: 16/10; display: grid; place-items: center;
      font-size: 2.2rem; background: var(--accent-warm-soft);
    }
    .dino-credit { font-size: 0.68rem; line-height: 1.45; color: #a39880; font-weight: 600; }
    .dino-credit a { font-weight: 700; }

    .species-index { columns: 2; column-gap: 2.6rem; }
    .index-item {
      display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
      break-inside: avoid; padding: 0.34rem 0; border-bottom: 1px dashed var(--border);
      font-size: 0.92rem;
    }
    .index-item a { font-weight: 700; color: var(--ink); }
    .index-item a:hover { color: var(--primary); }
    .index-name { font-weight: 700; color: var(--ink); }
    .index-loc { flex-shrink: 0; color: #8a8270; font-size: 0.76rem; font-weight: 700; text-align: right; }

    .image-credits {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
      padding: 0.95rem 1.15rem; box-shadow: var(--shadow); margin-bottom: 0.9rem;
    }
    .image-credits summary { cursor: pointer; font-weight: 800; color: var(--ink); font-family: var(--font-display); font-size: 0.95rem; }
    .image-credits p { color: var(--muted); font-size: 0.85rem; margin: 0.6rem 0 0.5rem; }
    .image-credits ul { list-style: none; columns: 2; column-gap: 2rem; font-size: 0.76rem; color: #8a8270; }
    .image-credits li { break-inside: avoid; margin-bottom: 0.3rem; }

    .legal-wrap { padding: 2rem 0 3rem; }
    .legal-page {
      max-width: 52rem; background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 2.2rem 2.4rem;
    }
    .legal-page h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 1.1rem; }
    .legal-page h2 { font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); margin: 1.7rem 0 0.55rem; }
    .legal-page h3 { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); margin: 1.2rem 0 0.4rem; }
    .legal-page p, .legal-page li { color: var(--muted); font-size: 0.94rem; }
    .legal-page p { margin-bottom: 0.7rem; }
    .legal-page ul, .legal-page ol { padding-left: 1.3rem; margin: 0.4rem 0 0.9rem; }
    .legal-page a { overflow-wrap: anywhere; }
    .legal-page strong { color: var(--ink); }

    @media (max-width: 900px) {
      .related-grid { grid-template-columns: 1fr; }
      .legal-page { padding: 1.6rem 1.4rem; }
    }
    @media (max-width: 640px) {
      .category-grid { grid-template-columns: 1fr; }
      .species-index { columns: 1; }
      .image-credits ul { columns: 1; }
      .page-hero { padding-top: 1.4rem; }
    }
