/* AVE 官网主题 — 青墨 + 琥珀强调色 */
:root {
    --primary: #0e7490;
    --primary-dark: #0c4a6e;
    --primary-light: #22d3ee;
    --accent: #d97706;
    --accent-light: #fbbf24;
    --text: #1e293b;
    --text-muted: #64748b;
    --surface: #f8fafc;
    --surface-alt: #ecfeff;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(14, 116, 144, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-h: 72px;
    --transition: 0.25s ease;
    --container-max: 1140px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* —— 导航 —— */
.z0e721navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}

.z0e721navbar-brand img {
    height: 42px;
    width: auto;
}

.z0e721nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.z0e721nav-link:hover,
.z0e721nav-link:focus {
    color: var(--primary) !important;
    background: var(--surface-alt);
}

.z0e721navbar .navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.z0e721navbar .navbar-collapse {
    background: var(--white);
}

@media (max-width: 991px) {
    .z0e721navbar .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        max-height: 70vh;
        overflow-y: auto;
    }

    .z0e721nav-link {
        padding: 0.5rem 0.35rem !important;
    }
}

/* —— 通用区块 —— */
.z0e721container.container {
    max-width: var(--container-max);
    padding-left: 1rem;
    padding-right: 1rem;
}

.ave-section {
    padding: 4.5rem 0;
}

.ave-section--alt {
    background: var(--surface);
}

.ave-section-head {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.ave-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.ave-section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.ave-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--surface-alt);
    border: 1px solid rgba(14, 116, 144, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* —— Hero —— */
.z0e721hero-section {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 45%, #0891b2 100%);
    color: var(--white);
    padding: 4rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.z0e721hero-section::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.z0e721hero-content {
    position: relative;
    z-index: 1;
}

.z0e721hero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.z0e721hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 520px;
    line-height: 1.7;
}

.z0e721hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.z0e721hero-buttons .btn {
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    transition: transform var(--transition), box-shadow var(--transition);
}

.z0e721hero-buttons .btn-light {
    background: var(--white);
    color: var(--primary-dark);
}

.z0e721hero-buttons .btn-primary {
    background: var(--accent);
    color: var(--white);
}

.z0e721hero-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.z0e721hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.z0e721hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.z0e721hero-image {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.z0e721hero-image-shadow {
    display: none;
}

/* —— 优势 Bento —— */
#features .ave-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.ave-bento-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.ave-bento-card:hover {
    border-color: rgba(14, 116, 144, 0.35);
    box-shadow: var(--shadow-md);
}

.ave-bento-card--wide {
    grid-column: span 7;
}

.ave-bento-card--narrow {
    grid-column: span 5;
}

.ave-bento-card--third {
    grid-column: span 4;
}

.ave-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.ave-bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
}

.ave-bento-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* 兼容旧 class */
.z0e721feature-card {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    height: 100%;
}

.z0e721feature-card:hover {
    transform: none;
}

.z0e721feature-icon {
    display: none;
}

/* —— 数据条 —— */
.z0e721stats-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.z0e721stats-section .row {
    align-items: stretch;
}

.z0e721stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
}

.z0e721stats-section .col-md-3:last-child .z0e721stat-item {
    border-right: none;
}

.z0e721stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    color: var(--accent-light);
}

.z0e721stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* —— 知识导读 —— */
.ave-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.ave-knowledge-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    overflow: hidden;
}

.ave-knowledge-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.6rem;
}

.ave-knowledge-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* —— 下载区 —— */
.z0e721download-section {
    padding: 4.5rem 0;
    background: var(--surface-alt);
}

.z0e721download-header h2,
.z0e721download-header .ave-section-head h2 {
    color: var(--primary-dark);
}

.z0e721download-subtitle {
    color: var(--text-muted);
}

.z0e721download-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    height: 100%;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.z0e721download-card:hover {
    box-shadow: var(--shadow-md);
    transform: none;
}

.z0e721download-card .card-body {
    padding: 1.35rem !important;
}

.z0e721platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.z0e721ios-icon {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: var(--white);
}

.z0e721android-icon {
    background: linear-gradient(135deg, #10b981, #047857);
    color: var(--white);
}

.z0e721download-info {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem !important;
}

.z0e721info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.z0e721info-item:last-child {
    margin-bottom: 0;
}

.z0e721info-item i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.z0e721download-action .btn,
.z0e721btn.btn-primary {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.z0e721download-action .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* —— 安全 —— */
.z0e721security-section {
    padding: 4.5rem 0;
    background: var(--white);
}

.z0e721security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    height: 100%;
    box-shadow: none;
    overflow: hidden;
}

.z0e721security-card:hover {
    border-color: var(--border-strong);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.z0e721security-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.z0e721security-card h3 {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: var(--primary-dark);
}

.z0e721security-features {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
}

.z0e721feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.z0e721feature-item i {
    color: var(--primary);
    margin: 0;
    flex-shrink: 0;
}

.z0e721certificate-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.z0e721certificate-card:hover {
    transform: none;
}

.z0e721certificate-icon {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    background: var(--surface-alt);
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.z0e721certificate-card h4 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.z0e721certificate-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* —— FAQ —— */
#faq {
    background: var(--surface) !important;
}

#faq .ave-faq-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    height: 100%;
    overflow: hidden;
}

#faq .ave-faq-card .card-body {
    padding: 1.15rem 1.25rem;
}

#faq .card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

#faq .card-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 文章区 —— */
#article {
    background: var(--white) !important;
}

#article .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#article .card-body {
    padding: 0.85rem;
}

.z0e721thumb-home {
    height: 110px !important;
    object-fit: cover;
    width: 100%;
}

#article h3.h5 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

#article h3.h5 a {
    color: var(--text);
}

#article h3.h5 a:hover {
    color: var(--primary);
}

/* —— 页脚 —— */
.z0e721footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.z0e721footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z0e721footer-link {
    color: rgba(255, 255, 255, 0.65);
}

.z0e721footer-link:hover {
    color: var(--accent-light);
}

.z0e721footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z0e721footer-links li {
    margin-bottom: 0.5rem;
}

.z0e721footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.z0e721footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.z0e721friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z0e721friend-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

/* —— 列表/内页 —— */
.z0e721page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 2rem 0;
    margin-bottom: 0;
}

.z0e721page-header h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.z0e721page-header p {
    margin: 0;
    opacity: 0.88;
    font-size: 0.95rem;
}

.z0e721inner-main .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.z0e721inner-main .card-body {
    padding: 1.25rem;
}

.z0e721article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    overflow-wrap: break-word;
}

.z0e721article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.z0e721meta-tags .z0e721tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--surface-alt);
    border-radius: 6px;
    font-size: 0.85rem;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* —— Bootstrap 按钮覆盖 —— */
.btn {
    border-radius: 10px;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .ave-bento-card--wide,
    .ave-bento-card--narrow,
    .ave-bento-card--third {
        grid-column: span 12;
    }

    .ave-knowledge-grid {
        grid-template-columns: 1fr;
    }

    .z0e721stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1.25rem 0.5rem;
    }

    .z0e721stats-section .col-md-3:last-child .z0e721stat-item {
        border-bottom: none;
    }

    .z0e721footer .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .ave-section,
    .z0e721download-section,
    .z0e721security-section {
        padding: 3rem 0;
    }

    .z0e721hero-section {
        padding: 2.5rem 0 3rem;
    }

    .z0e721hero-buttons {
        flex-direction: column;
    }

    .z0e721hero-buttons .btn {
        width: 100%;
    }

    .z0e721hero-image {
        max-width: 220px;
        margin-top: 1.5rem;
    }

    .z0e721download-card .d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .z0e721download-card .d-flex.align-items-center .ms-3 {
        margin-left: 0 !important;
        flex: 1 1 100%;
    }

    .z0e721download-card .card-body {
        padding: 1rem !important;
    }

    .z0e721security-card {
        padding: 1.15rem;
    }

    #article .row {
        --bs-gutter-x: 0.65rem;
    }

    #article .z0e721thumb-home {
        height: 96px !important;
    }

    .z0e721thumb-list,
    .z0e721thumb-related {
        height: 72px !important;
    }

    .z0e721thumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 160px !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 0.95rem;
    }

    .listbox .e2 li p {
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .z0e721navbar-brand img {
        height: 36px;
    }

    #article .z0e721thumb-home {
        height: 88px !important;
    }

    .z0e721thumb-list,
    .z0e721thumb-related {
        height: 64px !important;
    }

    .z0e721thumb-side {
        height: 46px !important;
    }
}
