:root {
    --primary-color: #1b4332;
    --primary-light: #2d6a4f;
    --secondary-color: #081c15;
    --accent-color: #e85d04;
    --accent-soft: #fff3e6;
    --surface: #ffffff;
    --surface-alt: #f4f7f5;
    --text-color: #1a1a1a;
    --text-muted: #5c6b63;
    --border-color: rgba(27, 67, 50, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 12px rgba(8, 28, 21, 0.06);
    --shadow-md: 0 8px 28px rgba(8, 28, 21, 0.1);
    --transition-speed: 0.25s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.65;
    background: var(--surface);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ========== 导航 ========== */
.z7571cnavbar,
.line-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.65rem 0;
}

.z7571cnavbar-brand img {
    height: 42px;
    width: auto;
}

.z7571cnav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.45rem 0.85rem !important;
    transition: color var(--transition-speed);
    border-radius: var(--radius-sm);
}

.z7571cnav-link:hover {
    color: var(--accent-color) !important;
    background: var(--accent-soft);
}

.navbar-collapse {
    background: var(--surface);
}

/* ========== LINE 首页：英雄区 ========== */
.line-hero.z7571chero-section {
    position: relative;
    padding: 4.5rem 0 4rem;
    color: #fff;
    background: linear-gradient(145deg, var(--secondary-color) 0%, var(--primary-color) 55%, var(--primary-light) 100%);
    overflow: hidden;
}

.line-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(232, 93, 4, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.line-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
}

.line-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    margin-bottom: 1rem;
}

.line-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.line-hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.line-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.line-btn--light {
    background: #fff;
    color: var(--primary-color);
}

.line-btn--accent {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.line-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.line-btn--solid {
    background: var(--primary-color);
    color: #fff;
    width: 100%;
    border-color: var(--primary-color);
}

.line-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.line-btn--solid:hover {
    background: var(--primary-light);
    color: #fff;
}

.line-device-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    backdrop-filter: blur(8px);
}

.line-device-img {
    max-width: 260px;
    margin: 0 auto;
    border-radius: var(--radius-md);
}

.line-device-tags {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.line-device-tags li {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

/* ========== 简介条 ========== */
.line-intro {
    padding: 2.5rem 0;
    background: var(--surface-alt);
}

.line-intro-panel {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.line-section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.line-intro-panel p {
    margin: 0;
    color: var(--text-muted);
}

/* ========== 区块标题 ========== */
.line-section-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.line-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.line-section-head p {
    color: var(--text-muted);
    margin: 0;
}

/* ========== Bento 功能 ========== */
.line-features {
    padding: 4rem 0;
    background: var(--surface);
}

.line-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.line-bento-item {
    padding: 1.35rem;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    min-height: 0;
    overflow: hidden;
}

.line-bento-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.line-bento-item--wide {
    grid-column: span 2;
}

.line-bento-item--accent {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-color: transparent;
}

.line-bento-item--accent p {
    color: rgba(255, 255, 255, 0.88);
}

.line-bento-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.line-bento-item--accent i {
    color: #ffd6a5;
}

.line-bento-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.line-bento-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========== 统计 ========== */
.line-stats.z7571cstats-section {
    padding: 3rem 0;
    background: var(--secondary-color);
    color: #fff;
}

.line-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.line-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.line-stat:last-child {
    border-right: none;
}

.line-stat-num,
.z7571cstat-number {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.line-stat-txt,
.z7571cstat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ========== 下载区 ========== */
.line-download.z7571cdownload-section {
    padding: 4rem 0;
    background: var(--surface-alt);
}

.line-dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.line-dl-card.z7571cdownload-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    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);
    transform: none;
}

.line-dl-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #fff;
}

.z7571cios-icon {
    background: linear-gradient(135deg, #333, #111);
}

.z7571candroid-icon {
    background: linear-gradient(135deg, #3ddc84, #2a9d5c);
}

.line-dl-card .z7571cplatform-icon:not(.z7571cios-icon):not(.z7571candroid-icon) {
    background: linear-gradient(135deg, #0078d4, #005a9e);
}

.line-dl-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.line-dl-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.line-dl-list,
.z7571cdownload-info {
    list-style: none;
    padding: 1rem;
    margin: 0 0 1.25rem;
    flex: 1;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.line-dl-list li,
.z7571cinfo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.line-dl-list li:last-child,
.z7571cinfo-item:last-child {
    margin-bottom: 0;
}

.line-dl-list i,
.z7571cinfo-item i {
    color: var(--accent-color);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ========== 安全区 ========== */
.line-security.z7571csecurity-section {
    padding: 4rem 0;
    background: var(--surface);
}

.line-sec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.line-sec-card.z7571csecurity-card {
    padding: 1.35rem;
    height: 100%;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: none;
    text-align: left;
}

.line-sec-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.line-sec-icon,
.z7571csecurity-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
    margin: 0 0 0.85rem;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-sec-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 0.5rem;
}

.line-sec-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.line-knowledge {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--accent-soft);
}

.line-knowledge-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.line-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.line-knowledge-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.line-knowledge-item strong {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ========== FAQ ========== */
.line-faq {
    padding: 4rem 0;
    background: var(--surface-alt);
}

.line-faq-grid {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.line-faq-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 1.15rem;
    overflow: hidden;
}

.line-faq-item summary {
    padding: 1rem 0;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

.line-faq-item summary::-webkit-details-marker {
    display: none;
}

.line-faq-item p {
    padding: 0 0 1rem;
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

/* ========== 文章区 ========== */
.line-articles {
    padding: 4rem 0;
    background: var(--surface);
}

.line-article-card {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
}

.line-article-thumb-wrap {
    overflow: hidden;
}

.line-article-thumb,
.z7571cthumb-home {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.line-article-link {
    color: var(--text-color);
}

.line-article-link:hover {
    color: var(--accent-color);
}

/* ========== 页脚 ========== */
.z7571cfooter,
.line-footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.z7571cfooter-title,
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z7571cfooter-link,
.footer-link {
    color: rgba(255, 255, 255, 0.65);
}

.z7571cfooter-link:hover {
    color: var(--accent-color);
}

.z7571cfooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 2rem;
}

.z7571cfooter-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== 列表/内页 ========== */
.z7571cpy-5 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.z7571carticle-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z7571carticle-content img {
    max-width: 100%;
    height: auto;
}

.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;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 兼容旧类名 */
.z7571cfeature-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 100%;
}

.z7571chero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.z7571cbtn {
    border-radius: var(--radius-sm);
}

/* ========== 响应式 ========== */
@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-item--wide {
        grid-column: span 2;
    }

    .line-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .line-stat:nth-child(2) {
        border-right: none;
    }

    .line-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1.25rem;
    }

    .line-stat:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .line-dl-grid {
        grid-template-columns: 1fr;
    }

    .line-sec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .line-knowledge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .line-hero.z7571chero-section {
        padding: 3rem 0 2.5rem;
    }

    .line-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .line-hero-actions .line-btn {
        width: 100%;
    }

    .line-intro-panel {
        padding: 1.15rem;
    }

    .line-bento {
        grid-template-columns: 1fr;
    }

    .line-bento-item--wide {
        grid-column: span 1;
    }

    .line-features,
    .line-download,
    .line-security,
    .line-faq,
    .line-articles {
        padding: 2.5rem 0;
    }

    .line-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .line-sec-grid {
        grid-template-columns: 1fr;
    }

    .line-dl-card.z7571cdownload-card {
        padding: 1.15rem;
    }

    .z7571cnavbar {
        padding: 0.5rem 0;
    }

    .z7571cnavbar .navbar-collapse {
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .z7571cnavbar .navbar-nav .nav-link {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.95rem;
    }

    .z7571cfooter .row > [class*="col-"] {
        text-align: center;
    }

    .z7571cfooter-links {
        padding: 0;
    }

    #article .card-body,
    .line-article-card .card-body {
        padding: 0.75rem;
    }

    .line-article-thumb,
    .z7571cthumb-home {
        height: 96px !important;
    }

    #article h3.h6,
    #article h3.h5 {
        font-size: 0.95rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listbox .e2 li {
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .listbox .e2 li h2.h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .z7571cthumb-list,
    .z7571cthumb-related {
        height: 72px !important;
    }

    .z7571cthumb-side {
        height: 50px !important;
    }

    .z7571cthumb-cover {
        max-width: 100% !important;
        width: 100%;
        height: 170px !important;
    }

    .btn {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

@media (max-width: 575px) {
    .line-stats-row {
        grid-template-columns: 1fr;
    }

    .line-stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .line-stat:last-child {
        border-bottom: none;
    }

    .line-article-thumb,
    .z7571cthumb-home {
        height: 88px !important;
    }

    .z7571cthumb-list,
    .z7571cthumb-related {
        height: 64px !important;
    }

    .z7571cthumb-cover {
        height: 150px !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
