/* ========================================
   KuaiPaoCloud - 乐雨丸页面样式
   ======================================== */

/* ---------- 页面 Banner ---------- */
.page-banner {
    position: relative;
    padding: calc(var(--nav-height) + 80px) 24px 80px;
    background: var(--bg-darker);
    overflow: hidden;
    border-bottom:1px solid var(--border);
}

.page-banner::before {
    content: '';
    position: absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

.banner-content-simple {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    z-index:1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap:8px;
    font-size:13px;
    color: var(--text-muted);
    margin-bottom:24px;
}

.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--accent); }

.page-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight:700;
    color: var(--text-primary);
    margin-bottom:12px;
    letter-spacing:-0.5px;
}

.page-subtitle {
    font-size:16px;
    color: var(--text-secondary);
    max-width:600px;
    line-height:1.7;
}

/* ---------- 通用区块 ---------- */
.section { padding:80px 0; }
.section-alt { background: var(--bg-section-alt); }

.section-header { text-align:center; margin-bottom:56px; }

.section-eyebrow {
    display:inline-block;
    font-size:12px;
    font-weight:500;
    color: var(--accent);
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.section-title {
    font-size:clamp(24px, 3vw, 32px);
    font-weight:700;
    color: var(--text-primary);
    margin-bottom:16px;
}

.section-divider {
    width:48px;
    height:2px;
    background: var(--accent);
    margin:0 auto 16px;
    border-radius:1px;
}

.section-desc {
    font-size:15px;
    color: var(--text-muted);
    max-width:600px;
    margin:0 auto;
    line-height:1.7;
}

/* ---------- 服务器介绍 ---------- */
.lyw-intro-layout {
    display:grid;
    grid-template-columns:1.3fr 1fr;
    gap:56px;
    align-items:start;
}

.lyw-lead {
    font-size:15px;
    color: var(--text-secondary);
    line-height:1.8;
    margin-bottom:28px;
}

.lyw-highlights {
    display:flex;
    gap:32px;
    margin-bottom:36px;
    padding-bottom:28px;
    border-bottom:1px solid var(--border);
    flex-wrap:wrap;
}

.lh-item {
    display:flex;
    flex-direction:column;
}

.lh-num {
    font-size:30px;
    font-weight:700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height:1.2;
}

.page-subtitle ~ .stat-plus,
.lyw-highlights .stat-plus {
    font-size:16px;
    color: var(--accent);
    font-weight:600;
}

.lh-val {
    font-size:24px;
    font-weight:700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height:1.2;
}

.lh-label {
    font-size:12px;
    color: var(--text-muted);
    margin-top:4px;
}

/* ---------- 特性列表 ---------- */
.lyw-features-list {
    display:flex;
    flex-direction:column;
    gap:20px;
}

.lyw-feat {
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.lyw-feat-icon {
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(74,155,127,0.08);
    border:1px solid rgba(74,155,127,0.15);
    border-radius:var(--radius);
    color:var(--accent);
    flex-shrink:0;
}

.lyw-feat-icon svg { width:18px; height:18px; }

.lyw-feat h4 {
    font-size:14px;
    font-weight:600;
    color:var(--text-primary);
    margin-bottom:4px;
}

.lyw-feat p {
    font-size:13px;
    color:var(--text-muted);
    line-height:1.6;
}

/* ---------- 控制台模拟 ---------- */
.lyw-console {
    background:#0d0d0d;
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:hidden;
    margin-bottom:20px;
    box-shadow:var(--shadow-lg);
}

.lyw-c-header {
    display:flex;
    align-items:center;
    gap:6px;
    padding:10px 14px;
    background:#151515;
    border-bottom:1px solid var(--border);
}

.lyw-c-dot {
    width:9px;
    height:9px;
    border-radius:50%;
    background:#333;
}

.lyw-c-dot:first-child { background:#c47a7a; }
.lyw-c-dot:nth-child(2) { background:#c4a97a; }
.lyw-c-dot:nth-child(3) { background:#7ac488; }

.lyw-c-title {
    margin-left:10px;
    font-size:11px;
    color:var(--text-muted);
    font-family:var(--font-mono);
}

.lyw-c-body {
    padding:16px 20px;
    font-family:var(--font-mono);
    font-size:12px;
    line-height:1.9;
    max-height:260px;
    overflow-y:auto;
}

.lyw-c-line {
    color:#888;
}

.lyw-c-line .prompt {
    color:var(--accent);
    margin-right:6px;
    font-weight:600;
}

.lyw-c-line .prompt.ok {
    color:#7ac488;
}

.lyw-c-line .accent {
    color:var(--accent-light);
    font-weight:600;
}

/* ---------- 服务器信息 ---------- */
.lyw-server-info {
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:20px 24px;
}

.lsi-row {
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    padding:8px 0;
    border-bottom:1px solid var(--border);
}

.lsi-row:last-child { border-bottom:none; }

.lsi-label {
    font-size:12px;
    color:var(--text-muted);
}

.lsi-value {
    font-size:13px;
    color:var(--accent-light);
    font-family:var(--font-mono);
    font-weight:500;
}

/* ---------- 插件展示 ---------- */
.plugin-showcase {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.ps-card {
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:24px;
    transition:var(--transition);
}

.ps-card:hover {
    border-color:var(--accent-dark);
    transform:translateY(-2px);
    box-shadow:var(--shadow);
}

.ps-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    padding-bottom:12px;
    border-bottom:1px solid var(--border);
}

.ps-name {
    font-size:15px;
    font-weight:600;
    color:var(--text-primary);
    font-family:var(--font-mono);
}

.ps-version {
    font-size:11px;
    color:var(--accent);
    background:rgba(74,155,127,0.1);
    padding:2px 8px;
    border-radius:var(--radius);
    font-family:var(--font-mono);
}

.ps-desc {
    font-size:13px;
    color:var(--text-muted);
    line-height:1.6;
    margin-bottom:14px;
}

.ps-tags {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.ps-tag {
    display:inline-block;
    padding:3px 10px;
    background:#151515;
    border:1px solid var(--border);
    border-radius:var(--radius);
    font-size:11px;
    color:var(--text-secondary);
}

/* ---------- 画廊 ---------- */
.gallery-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    grid-template-rows:repeat(2,200px);
    gap:16px;
}

.gallery-item {
    position:relative;
    border-radius:var(--radius);
    overflow:hidden;
    border:1px solid var(--border);
    background:#0d0d0d;
}

.gallery-item.gallery-large {
    grid-row:span 2;
}

.gallery-item img {
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0.8;
    transition:opacity 0.3s ease, transform 0.5s ease;
}

.gallery-item:hover img {
    opacity:1;
    transform:scale(1.03);
}

.gallery-overlay {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:16px 20px;
    background:linear-gradient(transparent, rgba(0,0,0,0.85));
    transform:translateY(100%);
    transition:transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform:translateY(0);
}

.gallery-overlay span {
    font-size:13px;
    color:#fff;
    font-weight:500;
}

/* ---------- 加入步骤 ---------- */
.join-steps {
    display:flex;
    align-items:flex-start;
    justify-content:center;
    gap:0;
    flex-wrap:wrap;
    margin-bottom:36px;
}

.join-step {
    flex:1;
    min-width:160px;
    max-width:220px;
    text-align:center;
    padding:0 12px;
}

.js-num {
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(74,155,127,0.12);
    border:2px solid var(--accent);
    border-radius:50%;
    font-size:16px;
    font-weight:700;
    color:var(--accent);
    margin:0 auto 12px;
    font-family:var(--font-mono);
}

.join-step h4 {
    font-size:14px;
    font-weight:600;
    color:var(--text-primary);
    margin-bottom:6px;
}

.join-step p {
    font-size:12px;
    color:var(--text-muted);
    line-height:1.6;
}

.join-arrow {
    width:36px;
    height:2px;
    background:repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px);
    margin-top:22px;
    flex-shrink:0;
}

.join-cta {
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

.join-note {
    font-size:12px;
    color:var(--text-muted);
}

/* ---------- 按钮 ---------- */
.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 28px;
    font-size:14px;
    font-weight:500;
    border-radius:var(--radius);
    border:1px solid transparent;
    cursor:pointer;
    transition:var(--transition);
    letter-spacing:0.5px;
}

.btn-primary {
    background:var(--accent);
    color:#fff;
    border-color:var(--accent);
}

.btn-primary:hover {
    background:var(--accent-dark);
    border-color:var(--accent-dark);
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(74,155,127,0.25);
}

/* ---------- 滚动揭示 ---------- */
.reveal {
    opacity:0;
    transform:translateY(30px);
    transition:opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity:1;
    transform:translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width:1024px) {
    .lyw-intro-layout { grid-template-columns:1fr; gap:40px; }
    .plugin-showcase { grid-template-columns:repeat(2,1fr); }
    .gallery-grid { grid-template-columns:repeat(2,1fr); grid-template-rows:auto; }
    .gallery-item.gallery-large { grid-row:span 1; }
}

@media (max-width:768px) {
    .section { padding:56px 0; }
    .page-banner { padding:calc(var(--nav-height) + 56px) 20px 56px; }
    .page-title { font-size:28px; }

    .lyw-highlights { gap:20px; }

    .lyw-c-body { font-size:11px; padding:12px 14px; }

    .plugin-showcase { grid-template-columns:1fr; }

    .gallery-grid { grid-template-columns:1fr; }

    .join-steps { flex-direction:column; align-items:center; gap:20px; }
    .join-arrow {
        width:2px;
        height:24px;
        background:repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px);
        margin:0;
    }
}

@media (max-width:480px) {
    .breadcrumb { font-size:12px; }
    .page-subtitle { font-size:14px; }
    .lyw-server-info { padding:16px 20px; }
}
