/* Mobile-first responsive layout for imToken Wallet */
:root {
    --primary: rgb(70,139,223);
    --primary-dark: #1f5fae;
    --primary-soft: #eaf3ff;
    --ink: #14213d;
    --muted: #60708a;
    --line: #dbe7f7;
    --card: rgba(255,255,255,0.92);
    --bg: #f7fbff;
    --shadow: 0 18px 45px rgba(34, 91, 166, 0.12);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(70,139,223,.18), transparent 32rem),
        linear-gradient(180deg, #f5faff 0%, #ffffff 44%, #f6f9ff 100%);
    line-height: 1.72;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, 1160px); margin: 0 auto; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-title { max-width: 760px; margin: 0 0 26px; }
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker, .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    background: rgba(70,139,223,.1);
    border: 1px solid rgba(70,139,223,.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.24; margin: 0 0 14px; color: #10233f; }
h1 { font-size: clamp(34px, 8vw, 58px); letter-spacing: -1.6px; }
h2 { font-size: clamp(26px, 5vw, 40px); letter-spacing: -0.8px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; color: var(--muted); }
ul { margin: 0; padding-left: 20px; color: var(--muted); }
li + li { margin-top: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,.84);
    border-bottom: 1px solid rgba(219,231,247,.9);
}
.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #0e2b51; }
.logo img { width: 40px; height: 40px; border-radius: 12px; }
.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    color: var(--primary-dark);
    font-size: 22px;
}
.site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.97);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.site-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #38516f;
    font-weight: 700;
}
.site-nav a.active, .site-nav a:hover { color: var(--primary-dark); background: var(--primary-soft); }

.hero { padding: 42px 0 62px; }
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-copy p { font-size: 17px; max-width: 640px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.hero-tags span, .pill {
    display: inline-flex;
    border: 1px solid rgba(70,139,223,.2);
    background: rgba(255,255,255,.72);
    color: #38516f;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(70,139,223,.24);
    border: 0;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.download-btn:hover { transform: translateY(-2px); background: #397fd1; box-shadow: 0 18px 34px rgba(70,139,223,.28); }
.hero-visual {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(70,139,223,.16), rgba(255,255,255,.82)),
        radial-gradient(circle at 80% 20%, rgba(70,139,223,.18), transparent 16rem);
    border: 1px solid rgba(70,139,223,.18);
    border-radius: 32px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-visual:before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.8);
}
.app-shot { width: min(78%, 330px); filter: drop-shadow(0 24px 40px rgba(35, 82, 146, .18)); z-index: 2; }
.float-card {
    position: absolute;
    z-index: 3;
    width: min(70%, 250px);
    border: 1px solid rgba(70,139,223,.18);
    background: rgba(255,255,255,.88);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 14px 35px rgba(50,88,139,.13);
    backdrop-filter: blur(16px);
}
.float-card strong { display: block; color: #143253; }
.float-card small { color: var(--muted); }
.float-card.status { left: 16px; top: 28px; }
.float-card.tags { right: 14px; bottom: 28px; width: min(76%, 280px); }
.status-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--primary-dark); font-weight: 800; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-tags span { background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 700; }

.trust-grid, .feature-grid, .category-grid, .scenario-grid, .info-grid, .guide-grid, .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.trust-item, .feature-card, .category-card, .scenario-card, .info-card, .faq-item, .step-card, .notice-card {
    background: var(--card);
    border: 1px solid rgba(219,231,247,.9);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 10px 30px rgba(34,91,166,.07);
}
.trust-item strong { display: block; font-size: 18px; margin-bottom: 4px; color: #10233f; }
.category-card { position: relative; overflow: hidden; }
.category-card:after {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(70,139,223,.09);
    right: -28px;
    bottom: -30px;
}
.category-card a { color: var(--primary-dark); font-weight: 800; }
.feature-icon, .step-num {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 900;
    margin-bottom: 14px;
}
.security-layout, .split-layout, .download-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}
.security-panel {
    background: linear-gradient(145deg, rgba(70,139,223,.13), rgba(255,255,255,.94));
    border: 1px solid rgba(70,139,223,.18);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.security-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(70,139,223,.14);
}
.security-row:last-child { border-bottom: 0; }
.security-row span:first-child { color: var(--muted); }
.security-row span:last-child { font-weight: 800; color: var(--primary-dark); text-align: right; }
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.step-card { position: relative; }
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(70,139,223,.13), rgba(255,255,255,.95));
    border: 1px solid rgba(70,139,223,.17);
    border-radius: 30px;
    padding: 34px 22px;
    box-shadow: var(--shadow);
}
.cta-section p { margin-left: auto; margin-right: auto; max-width: 720px; }
.page-hero {
    padding: 46px 0 30px;
    background: linear-gradient(180deg, rgba(70,139,223,.10), rgba(255,255,255,0));
}
.page-hero .container { max-width: 900px; }
.content-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(219,231,247,.9);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}
.guide-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}
.guide-list li {
    background: #f5f9ff;
    border: 1px solid rgba(70,139,223,.12);
    border-radius: 16px;
    padding: 14px;
}
.notice-card { background: linear-gradient(135deg, #ffffff, #f1f7ff); }
.notice-card strong { color: #10233f; }
.faq-item h3 { font-size: 18px; }
.faq-item p { margin-bottom: 0; }
.download-box {
    background: #fff;
    border: 1px solid rgba(219,231,247,.9);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
}
.download-box .download-btn { margin-top: 10px; }
.check-list { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-dark);
    font-weight: 900;
}
.site-footer {
    margin-top: 40px;
    background: #eef6ff;
    border-top: 1px solid rgba(70,139,223,.15);
    padding: 38px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 12px; }
.site-footer h3 { font-size: 16px; margin-bottom: 12px; }
.site-footer a { display: block; color: #48617d; margin: 8px 0; }
.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(70,139,223,.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #60708a;
    font-size: 13px;
}

@media (min-width: 640px) {
    .container { width: min(100% - 44px, 1160px); }
    .trust-grid, .category-grid, .info-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .scenario-grid, .faq-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .site-nav a { padding: 9px 12px; font-size: 14px; }
    .hero { padding: 72px 0 86px; }
    .hero-layout { grid-template-columns: 1.03fr .97fr; gap: 48px; }
    .hero-copy p { font-size: 18px; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid, .feature-grid, .scenario-grid, .guide-grid { grid-template-columns: repeat(3, 1fr); }
    .faq-grid { grid-template-columns: repeat(2, 1fr); }
    .security-layout, .split-layout, .download-layout { grid-template-columns: 1fr 1fr; gap: 44px; }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .content-card { padding: 36px; }
}
@media (min-width: 1180px) {
    .site-nav a { padding: 10px 15px; }
    .hero-visual { min-height: 520px; }
}
