/* AICoin 官网主题 — 深青绿 + 琥珀强调色 */
:root {
    --ac-primary: #0f766e;
    --ac-primary-dark: #115e59;
    --ac-primary-light: #14b8a6;
    --ac-accent: #d97706;
    --ac-accent-hover: #b45309;
    --ac-bg: #f0fdfa;
    --ac-surface: #ffffff;
    --ac-text: #134e4a;
    --ac-text-muted: #5f7a78;
    --ac-border: rgba(15, 118, 110, 0.14);
    --ac-shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
    --ac-radius: 12px;
    --ac-radius-lg: 20px;
    --ac-nav-h: 72px;
    --ac-transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.ac-page,
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);
}

/* —— 导航 —— */
.z7d76dnavbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ac-border);
    padding: 0.65rem 0;
    box-shadow: none;
}

.z7d76dnavbar .navbar-toggler {
    border: 1px solid var(--ac-border);
    padding: 0.4rem 0.55rem;
}

.z7d76dnavbar .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35);
}

.z7d76dnavbar-brand img {
    height: 42px;
    width: auto;
}

.z7d76dnav-link {
    color: var(--ac-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
}

.z7d76dnav-link:hover {
    color: var(--ac-primary) !important;
    background: rgba(15, 118, 110, 0.06);
}

.z7d76dnavbar .navbar-collapse {
    background: var(--ac-surface);
    border-radius: var(--ac-radius);
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--ac-border);
    box-shadow: var(--ac-shadow);
}

@media (min-width: 992px) {
    .z7d76dnavbar .navbar-collapse {
        background: transparent;
        border: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
    }
}

/* —— 通用区块 —— */
.z7d76dsection {
    padding: 4.5rem 0;
}

.z7d76dsection-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.z7d76dsection-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ac-primary-dark);
    margin-bottom: 0.75rem;
}

.z7d76dsection-head p {
    color: var(--ac-text-muted);
    margin: 0;
    font-size: 1rem;
}

.z7d76dsection-head--light h2,
.z7d76dsection-head--light p {
    color: #fff;
}

.z7d76dmuted {
    color: var(--ac-text-muted) !important;
    font-size: 0.875rem;
}

/* —— 按钮 —— */
.z7d76dbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: transform var(--ac-transition), box-shadow var(--ac-transition), background var(--ac-transition);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.z7d76dbtn-primary {
    background: var(--ac-primary);
    color: #fff !important;
    border-color: var(--ac-primary);
}

.z7d76dbtn-primary:hover {
    background: var(--ac-primary-dark);
    border-color: var(--ac-primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

.z7d76dbtn-accent {
    background: var(--ac-accent);
    color: #fff !important;
    border-color: var(--ac-accent);
}

.z7d76dbtn-accent:hover {
    background: var(--ac-accent-hover);
    border-color: var(--ac-accent-hover);
    color: #fff !important;
    transform: translateY(-2px);
}

.z7d76dbtn-outline {
    background: transparent;
    color: var(--ac-primary) !important;
    border-color: var(--ac-primary);
}

.z7d76dbtn-outline:hover {
    background: rgba(15, 118, 110, 0.08);
    color: var(--ac-primary-dark) !important;
}

/* —— Hero —— */
.z7d76dhero-section {
    position: relative;
    padding: 3.5rem 0 4rem;
    background: linear-gradient(160deg, #042f2e 0%, var(--ac-primary-dark) 45%, #0d9488 100%);
    color: #fff;
    overflow: hidden;
}

.z7d76dhero-section::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--ac-bg);
    clip-path: ellipse(75% 100% at 50% 100%);
}

.z7d76dhero-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.z7d76dhero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.z7d76dhero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    max-width: 540px;
    margin-bottom: 1.5rem;
}

.z7d76dhero-subtitle strong {
    color: #fde68a;
    font-weight: 600;
}

.z7d76dhero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.z7d76dhero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.z7d76dhero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--ac-radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.z7d76dhero-image-shadow {
    display: none;
}

/* —— 特点 —— */
.z7d76dfeatures-section {
    background: var(--ac-surface);
}

.z7d76dfeature-card {
    height: 100%;
    padding: 1.75rem 1.5rem;
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    transition: border-color var(--ac-transition), box-shadow var(--ac-transition);
}

.z7d76dfeature-card:hover {
    border-color: var(--ac-primary-light);
    box-shadow: var(--ac-shadow);
}

.z7d76dfeature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--ac-primary);
    background: rgba(20, 184, 166, 0.12);
    border-radius: 14px;
    margin-bottom: 1rem;
}

.z7d76dfeature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ac-primary-dark);
}

.z7d76dfeature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ac-text-muted);
}

.z7d76dinsight-panel {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(217, 119, 6, 0.05));
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
}

.z7d76dinsight-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ac-primary-dark);
    margin-bottom: 1rem;
}

.z7d76dinsight-panel p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ac-text-muted);
}

/* —— 统计 —— */
.z7d76dstats-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--ac-primary-dark), var(--ac-primary));
}

.z7d76dstat-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ac-radius);
    height: 100%;
}

.z7d76dstat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.z7d76dstat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.35rem;
}

/* —— 下载 —— */
.z7d76ddownload-section {
    padding: 4.5rem 0;
    background: var(--ac-bg);
}

.z7d76ddownload-card {
    padding: 1.5rem;
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    box-shadow: var(--ac-shadow);
    display: flex;
    flex-direction: column;
}

.z7d76ddownload-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.z7d76ddownload-card-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--ac-primary-dark);
}

.z7d76dplatform-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.z7d76dpc-icon {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

.z7d76dandroid-icon,
.z7d76dios-icon {
    background: linear-gradient(135deg, #059669, #34d399);
}

.z7d76ddownload-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.z7d76ddownload-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--ac-text-muted);
    margin-bottom: 0.5rem;
    padding: 0.35rem 0;
}

.z7d76ddownload-info li i {
    color: var(--ac-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.z7d76ddownload-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--ac-text-muted);
    margin: 1.75rem 0 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* —— 安全 —— */
.z7d76dsecurity-section {
    padding: 4.5rem 0;
    background: var(--ac-surface);
}

.z7d76dsecurity-card {
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    transition: box-shadow var(--ac-transition);
}

.z7d76dsecurity-card:hover {
    box-shadow: var(--ac-shadow);
}

.z7d76dsecurity-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    background: var(--ac-primary);
    border-radius: 50%;
}

.z7d76dsecurity-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ac-primary-dark);
}

.z7d76dsecurity-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ac-text-muted);
}

/* —— FAQ —— */
.z7d76dfaq-section {
    background: var(--ac-bg);
}

.z7d76dfaq-card {
    height: 100%;
    padding: 1.25rem 1.35rem;
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-left: 4px solid var(--ac-accent);
    border-radius: var(--ac-radius);
}

.z7d76dfaq-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ac-primary-dark);
    margin-bottom: 0.5rem;
}

.z7d76dfaq-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ac-text-muted);
}

/* —— 文章区 —— */
.z7d76darticle-section {
    background: var(--ac-surface);
    border-top: 1px solid var(--ac-border);
}

.z7d76darticle-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ac-primary-dark);
}

.z7d76darticle-card {
    border: 1px solid var(--ac-border) !important;
    border-radius: var(--ac-radius) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: box-shadow var(--ac-transition);
}

.z7d76darticle-card:hover {
    box-shadow: var(--ac-shadow) !important;
}

.z7d76darticle-card .card-body {
    padding: 0.85rem;
}

.z7d76darticle-card h3 a,
.z7d76darticle-card h6 a {
    color: var(--ac-text);
    font-weight: 600;
}

.z7d76darticle-card h3 a:hover,
.z7d76darticle-card h6 a:hover {
    color: var(--ac-primary);
}

.z7d76dthumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

/* —— 页脚 —— */
.z7d76dfooter {
    background: #042f2e;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.z7d76dfooter-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 320px;
}

.z7d76dfooter-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z7d76dfooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z7d76dfooter-links li {
    margin-bottom: 0.5rem;
}

.z7d76dfooter-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.z7d76dfooter-link:hover {
    color: var(--ac-primary-light);
}

.z7d76dfriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.z7d76dfriend-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.z7d76dfriend-links a:hover {
    color: #fde68a;
}

.z7d76dfooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    font-size: 0.85rem;
}

.z7d76dfooter-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

/* —— 列表页 / 内页 —— */
.z7d76dinner-page {
    padding: 2rem 0 3rem;
    min-height: 50vh;
}

.z7d76dinner-page .card {
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow) !important;
    overflow: hidden;
}

.z7d76dinner-page .card-body {
    padding: 1.25rem;
}

.z7d76dpage-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ac-primary-dark);
    margin-bottom: 0.35rem;
}

.listbox .e2 li {
    border-color: var(--ac-border) !important;
}

.listbox .e2 li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.z7d76dthumb-list,
.z7d76dthumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z7d76dthumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.z7d76dthumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--ac-radius);
}

.z7d76darticle-content {
    font-size: 1rem;
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z7d76darticle-content img {
    max-width: 100%;
    height: auto;
}

.z7d76dmeta-tags .z7d76dtagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: 999px;
    font-size: 0.8rem;
}

/* 分页 */
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

/* Bootstrap 覆盖 */
.bg-light {
    background-color: var(--ac-bg) !important;
}

.navbar-light .navbar-toggler-icon {
    filter: none;
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .z7d76dsection {
        padding: 3.5rem 0;
    }

    .z7d76dhero-section {
        padding: 2.5rem 0 3.5rem;
    }

    .z7d76dhero-image-container {
        margin-top: 0.5rem;
    }

    .z7d76dfooter .col-md-4,
    .z7d76dfooter .col-md-2 {
        text-align: center;
    }

    .z7d76dfooter-desc {
        max-width: none;
        margin: 0 auto;
    }

    .z7d76dfooter-links {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .z7d76dnavbar {
        padding: 0.5rem 0;
    }

    .z7d76dnavbar .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .z7d76dnav-link {
        padding: 0.5rem 0.65rem !important;
    }

    .z7d76dhero-buttons {
        flex-direction: column;
    }

    .z7d76dhero-buttons .z7d76dbtn {
        width: 100%;
    }

    .z7d76dhero-image {
        max-width: 220px;
    }

    .z7d76ddownload-card {
        padding: 1.25rem;
    }

    .z7d76ddownload-card-head {
        flex-wrap: wrap;
    }

    .z7d76dinsight-panel {
        padding: 1.15rem;
    }

    .z7d76dstat-item {
        padding: 1rem 0.5rem;
    }

    .z7d76dthumb-home {
        height: 96px;
    }

    .z7d76darticle-bar {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .z7d76dinner-page .card-body {
        padding: 1rem;
    }

    .z7d76dthumb-list,
    .z7d76dthumb-related {
        height: 72px;
    }

    .z7d76dthumb-side {
        height: 48px;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .listbox .e2 li p {
        font-size: 0.88rem;
    }
}

@media (max-width: 575px) {
    .z7d76dsection {
        padding: 2.75rem 0;
    }

    .z7d76dsection-head {
        margin-bottom: 1.75rem;
    }

    .z7d76dfeature-card,
    .z7d76dsecurity-card,
    .z7d76dfaq-card {
        padding: 1.15rem;
    }

    .z7d76dthumb-home {
        height: 88px;
    }

    .z7d76dthumb-list,
    .z7d76dthumb-related {
        height: 64px;
    }

    .z7d76dthumb-cover {
        max-height: 200px;
    }

    .z7d76dcontainer.container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* 防止卡片内容溢出边框 */
.card,
.z7d76ddownload-card,
.z7d76dfeature-card,
.z7d76dsecurity-card,
.z7d76dfaq-card,
.z7d76darticle-card {
    max-width: 100%;
    overflow: hidden;
}

.z7d76drow.row {
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}
