:root {
    --primary: #2980FE;
    --primary-dark: #1f68d2;
    --bg: #ffffff;
    --soft: #f6f9ff;
    --soft-blue: #eef5ff;
    --line: #e4eaf3;
    --text: #273142;
    --muted: #64748b;
    --deep: #111827;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(25, 72, 138, 0.10);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f8fbff 100%);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); letter-spacing: 0.02em; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 12px; }
.main-nav { display: none; gap: 6px; align-items: center; }
.main-nav a { padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 650; }
.main-nav a:hover, .main-nav a.active { background: var(--soft-blue); color: var(--primary); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.nav-toggle-label span { height: 2px; width: 100%; background: var(--deep); border-radius: 99px; }
.nav-toggle:checked ~ .main-nav {
    display: grid;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nav-toggle:checked ~ .main-nav a { text-align: center; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.narrow-container { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-title { margin-bottom: 28px; }
.section-title .eyebrow, .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: var(--soft-blue);
    border: 1px solid #d9e9ff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}
h1, h2, h3 { color: var(--deep); line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 8vw, 64px); letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: 18px; color: #475569; }
.text-list { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 12px; }
.text-list li { position: relative; padding-left: 28px; color: #475569; }
.text-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(41, 128, 254, 0.12); }

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    border: 1px solid var(--primary);
    box-shadow: 0 12px 26px rgba(41, 128, 254, 0.22);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.download-btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 18px 34px rgba(41, 128, 254, 0.28); }

.app-hero {
    position: relative;
    padding: 72px 0 38px;
    overflow: hidden;
}
.app-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 16%, rgba(41, 128, 254, 0.18), transparent 32%), radial-gradient(circle at 10% 12%, rgba(41, 128, 254, 0.10), transparent 30%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span { padding: 8px 12px; background: #fff; border: 1px solid var(--line); color: #475569; border-radius: 999px; font-size: 13px; font-weight: 700; }
.app-visual {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    background: linear-gradient(145deg, #ffffff, #eef5ff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 28px;
}
.app-visual .phone-img { max-height: 420px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(31, 104, 210, 0.16)); }
.floating-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
    border-radius: 18px;
    padding: 12px 14px;
    color: var(--deep);
}
.floating-card strong { display: block; font-size: 14px; }
.floating-card span { color: var(--muted); font-size: 12px; }
.app-visual .floating-card { position: static; margin: 8px 0; width: 100%; }
.float-wrap { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.ability-bar {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}
.ability-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.ability-item b { color: var(--primary); display: block; margin-bottom: 4px; }
.ability-item p { font-size: 14px; margin: 0; }

.feature-showcase, .ecosystem-grid, .risk-grid, .category-grid, .faq-grid, .mini-grid {
    display: grid;
    gap: 18px;
}
.feature-card, .info-card, .risk-card, .category-card, .faq-item, .step-card, .notice-card, .aside-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.feature-card {
    padding: 22px;
    display: grid;
    gap: 16px;
    overflow: hidden;
}
.feature-card img { width: 100%; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.feature-card a:not(.download-btn), .text-link { color: var(--primary); font-weight: 800; }

.product-section {
    border-radius: 34px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    gap: 26px;
    align-items: center;
}
.product-section .product-media { border-radius: 28px; padding: 20px; background: linear-gradient(135deg, #f7fbff, #edf5ff); border: 1px solid var(--line); }
.product-section .product-media img { margin: 0 auto; max-height: 420px; object-fit: contain; }
.cold-wallet-panel { background: linear-gradient(135deg, #f7fbff, #ffffff); }
.swap-panel { background: #fff; }
.dapp-panel { background: linear-gradient(135deg, #ffffff, #f4f8ff); }
.check-grid { display: grid; gap: 10px; margin-top: 18px; }
.check-item { padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: #475569; }

.process-steps { display: grid; gap: 14px; counter-reset: step; }
.step-card { padding: 20px; position: relative; overflow: hidden; }
.step-card .step-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 12px;
}
.step-card a { color: var(--primary); font-weight: 800; }
.risk-card { padding: 20px; border-top: 4px solid var(--primary); }
.risk-card .risk-name { color: var(--deep); font-weight: 850; margin-bottom: 6px; }
.risk-card .risk-action { background: var(--soft-blue); color: #2b5f9e; padding: 10px 12px; border-radius: 14px; margin: 12px 0; font-size: 14px; }
.risk-card a { color: var(--primary); font-weight: 800; }
.category-card { padding: 20px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.category-card span { color: var(--primary); font-weight: 850; }
.category-card a { color: var(--primary); font-weight: 800; }
.faq-item { padding: 20px; }
.faq-item h3 { font-size: 18px; }

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 44px 24px;
    box-shadow: var(--shadow);
}
.cta-section p { max-width: 720px; margin-left: auto; margin-right: auto; }

.page-hero {
    padding: 58px 0 30px;
    background: radial-gradient(circle at 20% 10%, rgba(41, 128, 254, 0.12), transparent 32%), linear-gradient(180deg, #f8fbff, #ffffff);
}
.page-hero-inner { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
.page-hero h1 { font-size: clamp(34px, 6vw, 54px); }
.page-layout { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 72px; display: grid; gap: 22px; }
.content-panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05); }
.content-panel h2 { font-size: 28px; }
.guide-grid { display: grid; gap: 18px; margin-top: 18px; }
.guide-card { padding: 18px; border: 1px solid var(--line); background: var(--soft); border-radius: 18px; }
.guide-card strong { color: var(--deep); display: block; margin-bottom: 6px; }
.side-note { padding: 20px; border-radius: 24px; background: var(--soft-blue); border: 1px solid #d9e9ff; color: #38577a; }
.page-cta { margin-top: 24px; display: flex; justify-content: flex-start; }
.image-strip { margin: 22px 0; display: grid; gap: 16px; }
.image-strip img { border-radius: 24px; border: 1px solid var(--line); background: var(--soft); }
.download-flow { display: grid; gap: 14px; margin: 26px 0; }
.download-flow .step-card { display: flex; gap: 14px; align-items: flex-start; }
.download-flow .step-number { flex: 0 0 34px; margin: 0; }

.site-footer { background: #f8fbff; border-top: 1px solid var(--line); padding: 46px 0 22px; }
.footer-grid { width: min(1160px, calc(100% - 32px)); margin: 0 auto; display: grid; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--deep); }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.site-footer h3 { font-size: 16px; }
.site-footer a { display: block; color: var(--muted); margin: 8px 0; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { width: min(1160px, calc(100% - 32px)); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (min-width: 640px) {
    .ability-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-showcase, .ecosystem-grid, .category-grid, .faq-grid, .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .image-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .nav-toggle-label { display: none; }
    .main-nav { display: flex; }
    .app-hero { padding: 98px 0 54px; }
    .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 48px; }
    .app-visual { min-height: 560px; }
    .app-visual .floating-card { position: absolute; width: 190px; margin: 0; }
    .app-visual .card-assets { left: -20px; top: 72px; }
    .app-visual .card-cold { right: -16px; top: 112px; }
    .app-visual .card-swap { left: 20px; bottom: 84px; }
    .app-visual .card-dapp { right: 24px; bottom: 54px; }
    .float-wrap { display: block; }
    .ability-bar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .feature-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-card { grid-template-columns: 1fr 1fr; align-items: center; min-height: 300px; }
    .product-section { grid-template-columns: 1fr 1fr; padding: 38px; }
    .product-section.reverse .product-media { order: -1; }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ecosystem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .page-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
    .guide-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
    .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .nav-shell, .container, .narrow-container, .page-hero-inner, .page-layout, .footer-grid, .footer-bottom { width: min(100% - 24px, 1160px); }
    .product-section, .cta-section { border-radius: 24px; padding: 22px; }
    .float-wrap { grid-template-columns: 1fr; }
    .download-btn { width: 100%; }
}
