/* AiCoin 官网主题 — 深青 + 琥珀金 */
:root {
    --ac-primary: #0c6b6b;
    --ac-primary-dark: #084848;
    --ac-accent: #e8a838;
    --ac-accent-hover: #d49220;
    --ac-surface: #ffffff;
    --ac-bg: #f4f7f6;
    --ac-bg-alt: #e8efed;
    --ac-text: #1a2e2e;
    --ac-text-muted: #5a7171;
    --ac-border: rgba(12, 107, 107, 0.12);
    --ac-radius: 12px;
    --ac-radius-lg: 20px;
    --ac-shadow: 0 4px 24px rgba(8, 72, 72, 0.08);
    --ac-shadow-hover: 0 12px 32px rgba(8, 72, 72, 0.14);
    --ac-nav-h: 72px;
    --ac-transition: 0.25s ease;
    --ac-container: min(1140px, 100% - 2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--ac-text);
    line-height: 1.65;
    background: var(--ac-bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ac-primary);
    text-decoration: none;
    transition: color var(--ac-transition);
}

a:hover {
    color: var(--ac-accent-hover);
}

/* —— 导航 —— */
.z7b0d9navbar {
    background: var(--ac-surface);
    border-bottom: 1px solid var(--ac-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z7b0d9navbar .z7b0d9container,
.z7b0d9navbar .container {
    max-width: var(--ac-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.z7b0d9navbar-brand img,
.z7b0d9footer-brand img {
    height: 42px;
    width: auto;
}

.z7b0d9nav-link {
    color: var(--ac-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--ac-transition), color var(--ac-transition);
}

.z7b0d9nav-link:hover {
    color: var(--ac-primary) !important;
    background: rgba(12, 107, 107, 0.06);
}

.z7b0d9navbar .navbar-toggler {
    border: 1px solid var(--ac-border);
    padding: 0.4rem 0.55rem;
}

.z7b0d9navbar .navbar-collapse {
    background: var(--ac-surface);
}

/* —— 通用区块 —— */
.z7b0d9container,
.container.z7b0d9container {
    max-width: var(--ac-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.ac-section {
    padding: 4.5rem 0;
}

.ac-section-alt {
    background: var(--ac-surface);
}

.ac-section-tint {
    background: var(--ac-bg-alt);
}

.ac-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.ac-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ac-primary-dark);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.ac-section-head p {
    color: var(--ac-text-muted);
    margin: 0;
    font-size: 1.05rem;
}

.ac-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ac-accent-hover);
    margin-bottom: 0.5rem;
}

/* —— Hero —— */
.z7b0d9hero-section {
    background: linear-gradient(145deg, var(--ac-primary-dark) 0%, var(--ac-primary) 55%, #0a8585 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.z7b0d9hero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(232, 168, 56, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.z7b0d9hero-content {
    position: relative;
    z-index: 1;
}

.z7b0d9hero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.z7b0d9hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.z7b0d9hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z7b0d9hero-buttons .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.z7b0d9hero-buttons .btn-light {
    background: #fff;
    color: var(--ac-primary-dark);
    border: none;
}

.z7b0d9hero-buttons .btn-light:hover {
    background: var(--ac-accent);
    color: var(--ac-primary-dark);
}

.z7b0d9hero-buttons .btn-primary,
.z7b0d9btn.btn-primary {
    background: var(--ac-accent);
    border: none;
    color: var(--ac-primary-dark);
}

.z7b0d9hero-buttons .btn-primary:hover,
.z7b0d9btn.btn-primary:hover {
    background: var(--ac-accent-hover);
    color: #fff;
}

.z7b0d9hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z7b0d9hero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--ac-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.z7b0d9hero-image-shadow {
    display: none;
}

/* —— 优势 Bento —— */
#features.ac-bento-section {
    padding: 4.5rem 0;
}

.ac-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.ac-bento-card {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--ac-shadow);
    transition: transform var(--ac-transition), box-shadow var(--ac-transition);
    height: 100%;
    overflow: hidden;
}

.ac-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ac-shadow-hover);
}

.ac-bento-card.span-4 { grid-column: span 4; }
.ac-bento-card.span-6 { grid-column: span 6; }
.ac-bento-card.span-8 { grid-column: span 8; }

.ac-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ac-primary), var(--ac-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.ac-bento-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ac-primary-dark);
    margin: 0 0 0.6rem;
}

.ac-bento-card p {
    margin: 0;
    color: var(--ac-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* —— 数据条 —— */
.z7b0d9stats-section {
    background: var(--ac-primary-dark);
    color: #fff;
    padding: 3rem 0;
    border-top: 3px solid var(--ac-accent);
    border-bottom: 3px solid var(--ac-accent);
}

.z7b0d9stats-section .row {
    --bs-gutter-y: 1.5rem;
}

.z7b0d9stat-item {
    text-align: center;
    padding: 0.5rem;
}

.z7b0d9stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ac-accent);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.z7b0d9stat-label {
    font-size: 0.95rem;
    opacity: 0.88;
}

/* —— 下载区 —— */
.z7b0d9download-section {
    padding: 4.5rem 0;
    background: var(--ac-bg);
}

.z7b0d9download-header h2 {
    color: var(--ac-primary-dark);
}

.z7b0d9download-subtitle {
    color: var(--ac-text-muted);
}

.z7b0d9download-section .row.g-4 {
    align-items: stretch;
}

.z7b0d9download-card {
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    background: var(--ac-surface);
    box-shadow: var(--ac-shadow);
    height: 100%;
    overflow: hidden;
    transition: box-shadow var(--ac-transition);
}

.z7b0d9download-card:hover {
    box-shadow: var(--ac-shadow-hover);
}

.z7b0d9download-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.z7b0d9platform-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;
}

.z7b0d9ios-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.z7b0d9android-icon {
    background: linear-gradient(135deg, #0c6b6b, #084848);
}

.z7b0d9download-card .d-flex.align-items-center {
    gap: 1rem;
    margin-bottom: 1.25rem !important;
}

.z7b0d9download-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ac-primary-dark);
    margin: 0 0 0.25rem;
}

.z7b0d9download-info {
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1rem 1.15rem;
    flex: 1;
    margin-bottom: 1.25rem !important;
}

.z7b0d9info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--ac-text-muted);
}

.z7b0d9info-item:last-child {
    margin-bottom: 0;
}

.z7b0d9info-item i {
    color: var(--ac-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z7b0d9download-action {
    margin-top: auto;
}

.z7b0d9download-action .btn {
    width: 100%;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    white-space: normal;
}

.ac-download-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(12, 107, 107, 0.06);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    font-size: 0.9rem;
    color: var(--ac-text-muted);
}

/* —— 安全 —— */
.z7b0d9security-section {
    padding: 4.5rem 0;
    background: var(--ac-surface);
}

.z7b0d9security-header h2 {
    color: var(--ac-primary-dark);
}

.z7b0d9security-subtitle {
    color: var(--ac-text-muted);
}

.z7b0d9security-section .row.g-4 {
    align-items: stretch;
}

.z7b0d9security-card {
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 1.5rem;
    height: 100%;
    box-shadow: none;
    transition: border-color var(--ac-transition), background var(--ac-transition);
}

.z7b0d9security-card:hover {
    border-color: var(--ac-primary);
    background: #fff;
}

.z7b0d9security-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ac-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.z7b0d9security-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ac-primary-dark);
    text-align: left;
    margin-bottom: 1rem;
}

.z7b0d9security-features {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.z7b0d9security-features .z7b0d9feature-item {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.z7b0d9security-features .z7b0d9feature-item i {
    color: var(--ac-accent-hover);
    margin-right: 0.5rem;
}

.z7b0d9certificate-card {
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}

.z7b0d9certificate-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--ac-accent);
    color: var(--ac-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.z7b0d9certificate-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ac-primary-dark);
    margin-bottom: 0.35rem;
}

.z7b0d9certificate-card p {
    font-size: 0.85rem;
    color: var(--ac-text-muted);
    margin: 0;
}

/* —— FAQ —— */
#faq.ac-faq-section {
    padding: 4.5rem 0;
    background: var(--ac-bg);
}

.ac-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ac-faq-item {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem 1.5rem;
    height: 100%;
}

.ac-faq-item h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ac-primary-dark);
    margin: 0 0 0.5rem;
}

.ac-faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ac-text-muted);
    line-height: 1.6;
}

/* —— 知识简介 —— */
.ac-knowledge {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, var(--ac-surface) 0%, var(--ac-bg) 100%);
}

.ac-knowledge-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.ac-knowledge h2 {
    font-size: 1.5rem;
    color: var(--ac-primary-dark);
    margin: 0 0 1rem;
}

.ac-knowledge p {
    color: var(--ac-text-muted);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.ac-knowledge ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ac-knowledge li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    color: var(--ac-text);
}

.ac-knowledge li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ac-accent);
}

/* —— 文章区 —— */
#article.ac-article-section {
    padding: 4rem 0;
    background: var(--ac-surface);
}

#article .card {
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    overflow: hidden;
    box-shadow: var(--ac-shadow) !important;
}

#article .card-img-top.z7b0d9thumb-home {
    height: 120px;
    object-fit: cover;
    width: 100%;
}

#article .card-body {
    padding: 0.85rem 1rem;
}

#article h3.h5 {
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0;
}

#article h3.h5 a {
    color: var(--ac-text);
}

#article h3.h5 a:hover {
    color: var(--ac-primary);
}

#article .btn-outline-primary {
    border-color: var(--ac-primary);
    color: var(--ac-primary);
    border-radius: 8px;
}

#article .btn-outline-primary:hover {
    background: var(--ac-primary);
    color: #fff;
}

/* —— 页脚 —— */
.z7b0d9footer {
    background: var(--ac-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z7b0d9footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.z7b0d9footer-title {
    color: var(--ac-accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z7b0d9footer-link {
    color: rgba(255, 255, 255, 0.75);
}

.z7b0d9footer-link:hover {
    color: #fff;
}

.z7b0d9footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
}

.z7b0d9footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.z7b0d9friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z7b0d9friend-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

/* —— 列表/内页 —— */
.ac-page-hero {
    background: linear-gradient(135deg, var(--ac-primary-dark), var(--ac-primary));
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 0;
}

.ac-page-hero h1 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.ac-page-hero p {
    margin: 0;
    opacity: 0.88;
    font-size: 0.95rem;
}

.ac-inner-section {
    padding: 2rem 0 3rem;
}

.ac-inner-section .card {
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    overflow: hidden;
}

.ac-inner-section .card-body {
    padding: 1.25rem 1.5rem;
}

.z7b0d9article-content {
    line-height: 1.75;
    color: var(--ac-text);
}

.z7b0d9article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ac-radius);
}

.z7b0d9thumb-list,
.z7b0d9thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z7b0d9thumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.z7b0d9thumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--ac-radius);
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

.z7b0d9meta-tags .z7b0d9tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.35rem;
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--ac-text-muted);
}

.z7b0d9meta-tags .z7b0d9tagitem a:hover {
    color: var(--ac-primary);
    border-color: var(--ac-primary);
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .ac-bento-card.span-4,
    .ac-bento-card.span-6,
    .ac-bento-card.span-8 {
        grid-column: span 6;
    }

    .ac-knowledge-inner {
        grid-template-columns: 1fr;
    }

    .z7b0d9hero-section {
        padding: 3rem 0 3.5rem;
    }

    .z7b0d9hero-image-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .ac-section,
    .z7b0d9download-section,
    .z7b0d9security-section,
    #faq.ac-faq-section,
    #features.ac-bento-section {
        padding: 3rem 0;
    }

    .ac-bento-grid {
        grid-template-columns: 1fr;
    }

    .ac-bento-card.span-4,
    .ac-bento-card.span-6,
    .ac-bento-card.span-8 {
        grid-column: span 1;
    }

    .ac-faq-grid {
        grid-template-columns: 1fr;
    }

    .z7b0d9hero-buttons {
        flex-direction: column;
    }

    .z7b0d9hero-buttons .btn {
        width: 100%;
    }

    .z7b0d9stat-number {
        font-size: 1.65rem;
    }

    .z7b0d9download-card .d-flex.align-items-center {
        flex-direction: row;
        text-align: left;
    }

    .z7b0d9download-card .d-flex.align-items-center .ms-3 {
        margin-left: 0 !important;
        flex: 1;
        min-width: 0;
    }

    .z7b0d9download-card .card-body {
        padding: 1.15rem;
    }

    .z7b0d9security-card {
        padding: 1.25rem;
    }

    .z7b0d9navbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.5rem 0;
        border-top: 1px solid var(--ac-border);
    }

    .z7b0d9navbar {
        padding: 0.35rem 0;
    }

    #article .row-cols-md-2 {
        --bs-gutter-y: 0.75rem;
    }

    #article .z7b0d9thumb-home {
        height: 100px !important;
    }

    #article h3.h5 {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li h2.h5 {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .z7b0d9thumb-list,
    .z7b0d9thumb-related {
        height: 72px !important;
    }

    .z7b0d9footer .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .z7b0d9friend-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .z7b0d9hero-title {
        font-size: 1.65rem;
    }

    .z7b0d9download-section .row.g-4 {
        --bs-gutter-x: 0.75rem;
    }

    #article .z7b0d9thumb-home {
        height: 88px !important;
    }

    .z7b0d9thumb-list,
    .z7b0d9thumb-related {
        height: 64px !important;
    }

    .ac-inner-section .card-body {
        padding: 1rem;
    }
}

/* Bootstrap 兼容 */
.btn-primary {
    --bs-btn-bg: var(--ac-primary);
    --bs-btn-border-color: var(--ac-primary);
}

.bg-light {
    background-color: var(--ac-bg) !important;
}
