:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent-color: #f59e0b;
    --surface: #ffffff;
    --surface-muted: #f0fdfa;
    --surface-alt: #ecfdf5;
    --text-color: #134e4a;
    --text-muted: #5b7c78;
    --border-color: rgba(13, 148, 136, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 118, 110, 0.12);
    --transition-speed: 0.25s;
    --container-max: 1140px;
}

*,
*::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(--text-color);
    line-height: 1.65;
    background: #fafdfc;
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-dark);
}

/* —— 导航 —— */
.line-nav.z36a5enavbar,
.z36a5enavbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.65rem 0;
}

.z36a5enavbar-brand img {
    height: 42px;
    width: auto;
}

.z36a5enav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition-speed), background var(--transition-speed);
}

.z36a5enav-link:hover,
.z36a5enav-link.active {
    color: var(--primary-color) !important;
    background: var(--surface-alt);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--surface);
}

/* —— Hero —— */
.line-hero {
    background: linear-gradient(160deg, #042f2e 0%, #0f766e 45%, #14b8a6 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    overflow: hidden;
}

.line-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.line-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
}

.line-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.line-hero-lead {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 36em;
}

.line-hero-lead strong {
    color: #fef3c7;
    font-weight: 600;
}

.line-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.line-btn-primary {
    background: #fff;
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.line-btn-primary:hover {
    background: #f0fdfa;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.line-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.line-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.line-btn-ghost {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.line-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.line-btn-outline-dark {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.line-btn-outline-dark:hover {
    background: var(--surface-alt);
    color: var(--primary-dark);
}

.line-hero-visual {
    display: flex;
    justify-content: center;
}

.line-hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    max-width: 320px;
    width: 100%;
    backdrop-filter: blur(8px);
}

.line-hero-img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.line-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.line-hero-tags span {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* —— 通用区块 —— */
.line-section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.line-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.line-section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.line-section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.98rem;
}

/* —— Bento 特点 —— */
.line-features {
    background: var(--surface);
}

.line-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.line-bento-item {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.25rem;
    transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
    overflow: hidden;
    min-height: 0;
}

.line-bento-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.line-bento-item i {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.line-bento-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--primary-dark);
}

.line-bento-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.line-bento-wide {
    grid-column: span 2;
}

.line-bento-accent {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-color: transparent;
    color: #fff;
}

.line-bento-accent i,
.line-bento-accent h3,
.line-bento-accent p {
    color: #fff;
}

.line-bento-accent p {
    opacity: 0.9;
}

/* —— 统计 —— */
.line-stats {
    background: var(--primary-dark);
    color: #fff;
    padding: 2.5rem 0;
}

.line-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.line-stat strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.line-stat span {
    font-size: 0.88rem;
    opacity: 0.85;
}

.line-stats-note {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 1.25rem 0 0;
}

/* —— 下载 —— */
.line-download {
    background: var(--surface-alt);
}

.line-dl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.line-dl-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.line-dl-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.line-dl-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.line-dl-ios { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.line-dl-android { background: linear-gradient(135deg, #22c55e, #16a34a); }
.line-dl-pc { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.line-dl-web { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }

.line-dl-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--primary-dark);
    line-height: 1.35;
}

.line-dl-card > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    flex-grow: 0;
}

.line-dl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.line-dl-list li {
    padding: 0.2rem 0 0.2rem 1rem;
    position: relative;
}

.line-dl-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.line-dl-card .btn {
    margin-top: auto;
    white-space: normal;
    text-align: center;
    justify-content: center;
}

/* —— 安全 —— */
.line-security {
    background: var(--surface);
}

.line-sec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.line-sec-item {
    text-align: center;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    min-height: 0;
    overflow: hidden;
}

.line-sec-item i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.65rem;
    display: block;
}

.line-sec-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--primary-dark);
}

.line-sec-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* —— FAQ —— */
.line-faq {
    background: var(--surface-muted);
}

.line-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.line-faq-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    overflow: hidden;
}

.line-faq-card h5 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
}

.line-faq-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.line-knowledge {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border: 1px solid var(--border-color);
    border-left-width: 4px;
}

.line-knowledge h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--primary-dark);
}

.line-knowledge p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* —— 文章 —— */
.line-articles {
    background: var(--surface);
}

.line-articles-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.line-articles-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.line-article-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-speed);
}

.line-article-card:hover {
    box-shadow: var(--shadow-md);
}

.line-article-thumb {
    display: block;
    overflow: hidden;
}

.line-article-thumb img,
.z36a5ethumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.line-article-body {
    padding: 0.75rem 0.85rem 0.9rem;
    flex: 1;
    min-width: 0;
}

.line-article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.line-article-body h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.line-article-body h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.line-article-body h3 a:hover {
    color: var(--primary-color);
}

/* —— 页脚 —— */
.line-footer.z36a5efooter,
.z36a5efooter {
    background: #042f2e;
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 1.5rem;
}

.z36a5efooter-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.z36a5efooter-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
}

.z36a5efooter-link:hover {
    color: var(--primary-light);
}

.z36a5efooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z36a5efooter-links li {
    margin-bottom: 0.4rem;
}

.z36a5efooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, 0.55);
}

.z36a5efooter-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.z36a5efriend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.z36a5efriend-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

/* —— 列表/内页 —— */
.z36a5earticle-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

.z36a5earticle-content img {
    max-width: 100%;
    height: auto;
}

.listbox .e2 li {
    overflow: hidden;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* 分页 */
.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
    margin: 0;
}

/* 兼容旧类名 */
.z36a5ehero-section { padding: 0; }
.z36a5estats-section { padding: 0; background: transparent; }
.z36a5edownload-section { padding: 0; background: transparent; }
.z36a5esecurity-section { padding: 0; background: transparent; }

.z36a5efeature-card,
.z36a5edownload-card,
.z36a5esecurity-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* —— 响应式 —— */
@media (max-width: 991px) {
    .line-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .line-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .line-hero-actions {
        justify-content: center;
    }

    .line-bento {
        grid-template-columns: 1fr 1fr;
    }

    .line-bento-wide {
        grid-column: span 2;
    }

    .line-dl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .line-sec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .line-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .z36a5enavbar {
        padding: 0.5rem 0;
    }

    .z36a5enavbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .z36a5enavbar .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .line-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .line-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .line-bento {
        grid-template-columns: 1fr;
    }

    .line-bento-wide {
        grid-column: span 1;
    }

    .line-dl-grid {
        grid-template-columns: 1fr;
    }

    .line-sec-grid {
        grid-template-columns: 1fr;
    }

    .line-faq-grid {
        grid-template-columns: 1fr;
    }

    .line-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .line-articles-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .line-article-thumb img,
    .z36a5ethumb-home {
        height: 96px;
    }

    .z36a5ethumb-list,
    .z36a5ethumb-related {
        height: 72px !important;
    }

    .z36a5ethumb-side {
        height: 50px !important;
    }

    .z36a5ethumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
        margin: 0 auto;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .line-stats-row {
        grid-template-columns: 1fr;
    }

    .line-knowledge {
        padding: 1rem;
    }

    .line-article-thumb img,
    .z36a5ethumb-home {
        height: 88px;
    }

    .z36a5ethumb-list,
    .z36a5ethumb-related {
        height: 64px !important;
    }

    .z36a5ethumb-cover {
        height: 150px !important;
    }

    .pagebar .pagelist {
        gap: 0.35rem;
    }

    .z36a5efooter .row > [class*="col-"] {
        text-align: center;
    }
}
