/* Trust Wallet 官网主题 — 单文件样式 */
:root {
    --tw-primary: #0d9488;
    --tw-primary-dark: #0f766e;
    --tw-secondary: #1e293b;
    --tw-accent: #f59e0b;
    --tw-bg: #f8fafc;
    --tw-surface: #ffffff;
    --tw-muted: #64748b;
    --tw-border: #e2e8f0;
    --tw-radius: 12px;
    --tw-radius-lg: 20px;
    --tw-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --tw-shadow-hover: 0 12px 40px rgba(13, 148, 136, 0.12);
    --tw-transition: 0.25s ease;
    --tw-container: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--tw-secondary);
    background: var(--tw-bg);
    line-height: 1.65;
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tw-primary);
    text-decoration: none;
}

a:hover {
    color: var(--tw-primary-dark);
}

/* —— 导航 —— */
.z6b0d3navbar {
    background: var(--tw-surface);
    border-bottom: 1px solid var(--tw-border);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z6b0d3navbar-brand img {
    height: 42px;
    width: auto;
}

.z6b0d3nav-link {
    color: var(--tw-secondary) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--tw-transition), color var(--tw-transition);
}

.z6b0d3nav-link:hover {
    color: var(--tw-primary) !important;
    background: rgba(13, 148, 136, 0.08);
}

.z6b0d3navbar .navbar-toggler {
    border: 1px solid var(--tw-border);
    padding: 0.35rem 0.55rem;
}

.z6b0d3navbar .navbar-collapse {
    background: var(--tw-surface);
}

/* —— 通用区块 —— */
.z6b0d3section {
    padding: 4.5rem 0;
}

.z6b0d3section-alt {
    background: var(--tw-surface);
}

.z6b0d3section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--tw-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.z6b0d3section-lead {
    color: var(--tw-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
}

.z6b0d3container {
    max-width: var(--tw-container);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* —— Hero —— */
.z6b0d3hero-section {
    background: linear-gradient(160deg, #0f766e 0%, #134e4a 45%, #1e293b 100%);
    color: #fff;
    padding: 4rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.z6b0d3hero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.z6b0d3hero-content {
    position: relative;
    z-index: 1;
}

.z6b0d3hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.z6b0d3hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.z6b0d3hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.z6b0d3hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z6b0d3btn-hero-primary {
    background: var(--tw-accent);
    color: #1e293b;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform var(--tw-transition), box-shadow var(--tw-transition);
}

.z6b0d3btn-hero-primary:hover {
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.z6b0d3btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--tw-transition), border-color var(--tw-transition);
}

.z6b0d3btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.z6b0d3hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.z6b0d3hero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--tw-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.z6b0d3hero-image-shadow {
    display: none;
}

/* —— 优势 Bento —— */
.z6b0d3bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.z6b0d3bento-card {
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow var(--tw-transition), border-color var(--tw-transition);
    overflow: hidden;
}

.z6b0d3bento-card:hover {
    box-shadow: var(--tw-shadow-hover);
    border-color: rgba(13, 148, 136, 0.35);
}

.z6b0d3bento-card.z6b0d3bento-wide {
    grid-column: span 1;
}

.z6b0d3bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(13, 148, 136, 0.05));
    color: var(--tw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.z6b0d3bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--tw-secondary);
}

.z6b0d3bento-card p {
    font-size: 0.9rem;
    color: var(--tw-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 统计条 —— */
.z6b0d3stats-section {
    background: var(--tw-secondary);
    color: #fff;
    padding: 2.5rem 0;
}

.z6b0d3stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.z6b0d3stat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--tw-accent);
    line-height: 1.2;
}

.z6b0d3stat-label {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* —— 下载区 —— */
.z6b0d3download-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #ecfdf5 0%, var(--tw-bg) 100%);
}

.z6b0d3download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.z6b0d3download-card {
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tw-shadow);
    transition: box-shadow var(--tw-transition);
    overflow: hidden;
}

.z6b0d3download-card:hover {
    box-shadow: var(--tw-shadow-hover);
}

.z6b0d3download-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.z6b0d3platform-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.z6b0d3ios-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.z6b0d3android-icon {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.z6b0d3download-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--tw-secondary);
}

.z6b0d3download-card .z6b0d3card-meta {
    font-size: 0.85rem;
    color: var(--tw-muted);
    margin: 0;
}

.z6b0d3download-info {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.z6b0d3info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--tw-secondary);
}

.z6b0d3info-item:last-child {
    margin-bottom: 0;
}

.z6b0d3info-item i {
    color: var(--tw-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z6b0d3download-action .btn,
.z6b0d3btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}

.z6b0d3download-action .btn-primary,
.btn-primary.z6b0d3btn {
    background: var(--tw-primary);
    border-color: var(--tw-primary);
}

.z6b0d3download-action .btn-primary:hover,
.btn-primary.z6b0d3btn:hover {
    background: var(--tw-primary-dark);
    border-color: var(--tw-primary-dark);
}

/* —— 安全区 —— */
.z6b0d3security-section {
    padding: 4.5rem 0;
    background: var(--tw-surface);
}

.z6b0d3security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.z6b0d3security-card {
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 1.35rem;
    height: 100%;
    text-align: center;
    background: var(--tw-bg);
    transition: border-color var(--tw-transition);
    overflow: hidden;
}

.z6b0d3security-card:hover {
    border-color: var(--tw-primary);
}

.z6b0d3security-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.z6b0d3security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--tw-secondary);
}

.z6b0d3security-features {
    text-align: left;
    font-size: 0.85rem;
}

.z6b0d3feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    color: var(--tw-muted);
}

.z6b0d3feature-item i {
    color: var(--tw-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z6b0d3cert-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.z6b0d3certificate-card {
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 1.25rem;
    text-align: center;
    background: var(--tw-surface);
    height: 100%;
}

.z6b0d3certificate-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12);
    color: var(--tw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.z6b0d3certificate-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.z6b0d3certificate-card p {
    font-size: 0.82rem;
    color: var(--tw-muted);
    margin: 0;
}

/* —— 知识简介 —— */
.z6b0d3knowledge {
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--tw-radius-lg);
    padding: 2rem;
    margin-top: 0;
}

.z6b0d3knowledge h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--tw-primary-dark);
}

.z6b0d3knowledge p {
    font-size: 0.92rem;
    color: var(--tw-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.z6b0d3knowledge p:last-child {
    margin-bottom: 0;
}

/* —— FAQ —— */
.z6b0d3faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.z6b0d3faq-item {
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 1.25rem 1.35rem;
    height: 100%;
    overflow: hidden;
}

.z6b0d3faq-item h5 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--tw-secondary);
}

.z6b0d3faq-item p {
    font-size: 0.88rem;
    color: var(--tw-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 文章区 —— */
#article {
    padding: 4rem 0;
    background: var(--tw-bg);
}

#article .card {
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    overflow: hidden;
    transition: box-shadow var(--tw-transition);
}

#article .card:hover {
    box-shadow: var(--tw-shadow);
}

.z6b0d3thumb-home {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

#article .card-body {
    padding: 0.85rem;
}

#article h3.h5 {
    font-size: 0.92rem;
    line-height: 1.4;
}

#article h3.h5 a {
    color: var(--tw-secondary);
}

#article h3.h5 a:hover {
    color: var(--tw-primary);
}

/* —— 页脚 —— */
.z6b0d3footer {
    background: var(--tw-secondary);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.z6b0d3footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z6b0d3footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z6b0d3footer-links li {
    margin-bottom: 0.5rem;
}

.z6b0d3footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: color var(--tw-transition);
}

.z6b0d3footer-link:hover {
    color: var(--tw-accent);
}

.z6b0d3footer p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.z6b0d3friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z6b0d3friend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.z6b0d3friend-links a:hover {
    color: var(--tw-accent);
}

.z6b0d3footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.z6b0d3footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.z6b0d3footer-bottom a:hover {
    color: var(--tw-accent);
}

/* —— 列表/内页 —— */
.z6b0d3page-main {
    padding: 2.5rem 0 3.5rem;
}

.z6b0d3page-main .card {
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    overflow: hidden;
}

.z6b0d3article-content {
    font-size: 1rem;
    line-height: 1.8;
    word-break: break-word;
}

.z6b0d3article-content img {
    max-width: 100%;
    height: auto;
}

.z6b0d3thumb-list,
.z6b0d3thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z6b0d3thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.z6b0d3thumb-cover {
    max-width: 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--tw-radius);
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

.z6b0d3side-thumb-link {
    width: 72px;
    flex: 0 0 72px;
}

/* Bootstrap 兼容 */
.btn-primary {
    background-color: var(--tw-primary);
    border-color: var(--tw-primary);
}

.btn-primary:hover {
    background-color: var(--tw-primary-dark);
    border-color: var(--tw-primary-dark);
}

.btn-outline-primary {
    color: var(--tw-primary);
    border-color: var(--tw-primary);
}

.btn-outline-primary:hover {
    background: var(--tw-primary);
    border-color: var(--tw-primary);
}

.bg-light {
    background: var(--tw-bg) !important;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .z6b0d3bento-grid {
        grid-template-columns: 1fr;
    }

    .z6b0d3stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .z6b0d3security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .z6b0d3cert-row {
        grid-template-columns: 1fr;
    }

    .z6b0d3hero-section {
        padding: 3rem 0;
    }

    .z6b0d3hero-visual {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .z6b0d3section {
        padding: 3rem 0;
    }

    .z6b0d3download-section,
    .z6b0d3security-section {
        padding: 3rem 0;
    }

    .z6b0d3download-grid {
        grid-template-columns: 1fr;
    }

    .z6b0d3download-card-head {
        flex-wrap: wrap;
    }

    .z6b0d3faq-grid {
        grid-template-columns: 1fr;
    }

    .z6b0d3hero-buttons {
        flex-direction: column;
    }

    .z6b0d3hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .z6b0d3knowledge {
        padding: 1.25rem;
    }

    .z6b0d3navbar {
        padding: 0.5rem 0;
    }

    .z6b0d3navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--tw-border);
        border-radius: var(--tw-radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z6b0d3nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .z6b0d3download-action .btn {
        width: 100%;
        white-space: normal;
    }

    .z6b0d3security-grid {
        grid-template-columns: 1fr;
    }

    #article .z6b0d3thumb-home {
        height: 96px;
    }

    #article h3.h5 {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .z6b0d3thumb-list,
    .z6b0d3thumb-related {
        height: 72px;
    }

    .z6b0d3thumb-side {
        height: 50px;
    }

    .z6b0d3thumb-cover {
        height: 170px;
    }

    .z6b0d3footer .row > div {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .z6b0d3friend-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .z6b0d3stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .z6b0d3stat-number {
        font-size: 1.35rem;
    }

    .z6b0d3hero-image {
        max-width: 220px;
    }

    #article .z6b0d3thumb-home {
        height: 88px;
    }

    .z6b0d3thumb-list,
    .z6b0d3thumb-related {
        height: 64px;
    }

    .z6b0d3thumb-cover {
        height: 150px;
    }
}
