/* LINE 官网主题 — 青绿 + 珊瑚橙，与旧版蓝色渐变完全不同 */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #14b8a6;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --surface: #ffffff;
    --surface-muted: #f0fdfa;
    --surface-alt: #ecfdf5;
    --text: #134e4a;
    --text-muted: #5f7a78;
    --border: rgba(15, 118, 110, 0.12);
    --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 118, 110, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
    --container-max: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.line-site {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--surface);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* —— 导航 —— */
.line-nav.z3103dnavbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.z3103dnavbar-brand img {
    height: 42px;
    width: auto;
}

.z3103dnav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.z3103dnav-link:hover,
.z3103dnav-link.active {
    color: var(--primary) !important;
    background: var(--surface-alt);
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
}

.navbar-collapse {
    background: var(--surface);
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* —— 按钮 —— */
.line-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: normal;
    text-align: center;
}

.line-btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
}

.line-btn--accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff !important;
}

.line-btn--outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.line-btn--outline:hover {
    background: var(--primary);
    color: #fff !important;
}

/* —— Hero —— */
.line-hero.z3103dhero-section {
    position: relative;
    padding: 4rem 0 3.5rem;
    background: linear-gradient(160deg, #ecfdf5 0%, #f0fdfa 45%, #fff 100%);
    color: var(--text);
    overflow: hidden;
}

.line-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.line-hero .z3103dcontainer {
    position: relative;
    z-index: 1;
}

.line-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.line-hero__title.z3103dhero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.line-hero__lead.z3103dhero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.line-hero__actions.z3103dhero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.line-hero__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.line-hero__tags li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.line-hero__tags i {
    color: var(--primary);
}

.line-hero__visual.z3103dhero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: auto;
    margin-top: 0;
}

.line-hero__img.z3103dhero-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--surface);
}

.z3103dhero-image-shadow {
    display: none;
}

/* —— 通用区块 —— */
.line-section {
    padding: 4rem 0;
}

.line-section:nth-child(even) {
    background: var(--surface-muted);
}

.line-section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.line-section__head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.line-section__head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* —— Bento 亮点 —— */
.line-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.line-bento__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
    min-height: 0;
}

.line-bento__item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 118, 110, 0.25);
}

.line-bento__item--wide {
    grid-column: span 2;
}

.line-bento__item--accent {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    border-color: transparent;
}

.line-bento__item--accent h3,
.line-bento__item--accent p {
    color: #fff;
}

.line-bento__item--accent .line-bento__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.line-bento__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.line-bento__item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.line-bento__item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .line-bento {
        grid-template-columns: 1fr;
    }

    .line-bento__item--wide {
        grid-column: span 1;
    }
}

/* —— 统计 —— */
.line-stats.z3103dstats-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
}

.line-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.line-stats__item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.line-stats__item:last-child {
    border-right: none;
}

.line-stats__num.z3103dstat-number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.z3103dstat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .line-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .line-stats__item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 1rem;
    }

    .line-stats__item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .line-stats__item:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* —— 下载卡片 —— */
.line-download.z3103ddownload-section {
    padding: 4rem 0;
    background: var(--surface);
}

.z3103ddownload-header {
    max-width: 640px;
    margin: 0 auto 2rem;
}

.line-dl-card.z3103ddownload-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.line-dl-card:hover {
    box-shadow: var(--shadow-md);
}

.line-dl-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), var(--shadow-md);
}

.line-dl-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.line-dl-card__head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--primary-dark);
}

.line-dl-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.line-dl-card__icon--ios {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.line-dl-card__icon--android {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.line-dl-card__icon--pc {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.line-dl-card__list.z3103ddownload-info {
    list-style: none;
    padding: 0.85rem 1rem;
    margin: 0 0 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    flex-grow: 1;
}

.line-dl-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.line-dl-card__list li:last-child {
    margin-bottom: 0;
}

.line-dl-card__list i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.line-dl-card .line-btn {
    margin-top: auto;
}

/* —— 百科 —— */
.line-knowledge__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.line-knowledge__card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.65rem;
}

.line-knowledge__card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* —— 安全 —— */
.line-security.z3103dsecurity-section {
    background: var(--surface-muted);
}

.line-sec-card.z3103dsecurity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    text-align: center;
    overflow: hidden;
}

.line-sec-card__icon.z3103dsecurity-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.line-sec-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.line-sec-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.line-sec-card__list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.line-sec-card__list li:last-child {
    border-bottom: none;
}

/* —— FAQ —— */
.line-faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.line-faq__item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.line-faq__item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* —— 文章 —— */
.line-articles {
    background: var(--surface-alt);
}

.line-article-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm) !important;
}

.line-article-card__thumb-wrap {
    overflow: hidden;
}

.line-article-card__thumb.z3103dthumb-home {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.line-article-card .card-body {
    padding: 0.75rem;
}

.line-article-card h6 {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* —— 页脚 —— */
.line-footer.z3103dfooter {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.z3103dfooter-title.footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.z3103dfooter-link.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
}

.z3103dfooter-link:hover {
    color: var(--accent);
}

.z3103dfooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z3103dfooter-links li {
    margin-bottom: 0.5rem;
}

.z3103dfooter-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
}

.z3103dfooter-bottom a {
    color: rgba(255, 255, 255, 0.85);
}

/* —— 列表/内页 —— */
.line-inner-page {
    padding: 2rem 0 3rem;
    background: var(--surface-muted);
    min-height: 50vh;
}

.line-inner-page .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.line-inner-page .card-body {
    padding: 1.25rem;
}

.z3103darticle-content {
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.z3103darticle-content img {
    max-width: 100%;
    height: auto;
}

.z3103dthumb-list,
.z3103dthumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.z3103dthumb-side {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.z3103dthumb-cover {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* —— 兼容旧类名 —— */
.z3103dfeature-card,
.z3103dcertificate-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.btn.z3103dbtn {
    border-radius: 10px;
}

/* —— 响应式：Hero —— */
@media (max-width: 991px) {
    .line-hero {
        padding: 3rem 0 2.5rem;
    }

    .line-hero__visual {
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .line-section {
        padding: 2.75rem 0;
    }

    .line-hero__actions {
        flex-direction: column;
    }

    .line-hero__actions .line-btn {
        width: 100%;
    }

    .line-hero__tags {
        flex-direction: column;
        gap: 0.5rem;
    }

    .line-hero__img {
        max-width: 220px;
    }

    .line-dl-card {
        padding: 1rem;
    }

    .line-dl-card__head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #article .row-cols-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .line-article-card__thumb.z3103dthumb-home {
        height: 90px;
    }

    .line-inner-page .card-body {
        padding: 1rem;
    }

    .listbox .e2 li .row {
        flex-wrap: nowrap;
    }

    .z3103dthumb-list,
    .z3103dthumb-related {
        height: 72px;
    }

    .z3103dthumb-cover {
        max-height: 200px;
    }

    .z3103dnavbar .navbar-nav .nav-link {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .line-stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    #article .row-cols-2 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .line-article-card__thumb.z3103dthumb-home {
        height: 140px;
    }

    .z3103dthumb-list,
    .z3103dthumb-related {
        height: 64px;
    }

    .line-footer .row > [class*="col-"] {
        text-align: center;
    }

    .z3103dfooter-brand {
        display: block;
        text-align: center;
    }
}

/* 防止边框溢出 */
.container,
.z3103dcontainer {
    max-width: var(--container-max);
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
}

.row {
    margin-left: -12px;
    margin-right: -12px;
}

[class*="col-"] {
    min-width: 0;
}

.card,
.line-bento__item,
.line-dl-card,
.line-sec-card,
.line-faq__item,
.line-knowledge__card {
    max-width: 100%;
}
