/* ============================================================
   PCL-Eleven 官网 UI v2 —— Minecraft 像素风 × 芙宁娜水蓝
   芙宁娜（水之女神）：水蓝/海蓝为主、白与淡金点缀
   MC：像素方块、硬边、阶梯阴影、浮雕像素字
   ============================================================ */
:root {
    --water:  #3FA9F5;     /* 芙宁娜水蓝（主） */
    --azure:  #7CC7FF;     /* 水蓝浅（渐变起点） */
    --deep:   #0B5ED7;     /* 深海蓝（主边框） */
    --abyss:  #0A3E9E;     /* 深渊蓝（深边框/渐变端） */
    --night:  #0B2C4D;     /* 深夜蓝（文字/页脚底） */
    --ink:    #113355;     /* 正文深蓝 */
    --ice:    #EAF6FF;     /* 冰蓝白（浅底） */
    --mist:   #F4FBFE;     /* 雾白（卡片底） */
    --gold:   #F5C518;     /* 芙宁娜金（点缀） */
    --gold-d: #C79A00;     /* 金深 */
    --border: #B7DCF7;
    --px: 3px;
    --shadow: 4px 5px 0 rgba(10, 62, 158, 0.16);
    --shadow-lg: 7px 8px 0 rgba(10, 62, 158, 0.20);
    --grad: linear-gradient(160deg, #7CC7FF 0%, #1E8AE8 48%, #0B5ED7 100%);
    --pixel-font: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--pixel-font);
    color: var(--ink);
    background: var(--ice);
    background-image:
        linear-gradient(rgba(59,139,222,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,139,222,0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    line-height: 1.7;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 像素字标题通用 */
.px-title { font-weight: 900; letter-spacing: 1px; text-shadow: 2px 2px 0 rgba(11,94,215,0.14); }

/* ===== 顶部导航 ===== */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 251, 254, 0.96);
    border-bottom: var(--px) solid var(--deep);
    box-shadow: 0 3px 0 rgba(11,94,215,0.10);
}
.nav { display: flex; align-items: center; gap: 22px; height: 66px; }
.nav .logo { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 19px; color: var(--night); text-decoration: none; text-shadow: 2px 2px 0 rgba(11,94,215,0.12); }
.nav .logo img {
    width: 36px; height: 36px; image-rendering: pixelated;
    border: 2px solid var(--deep); background: #fff;
    box-shadow: 2px 2px 0 rgba(11,46,96,0.25);
}
.nav .links { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; }
.nav .links a {
    color: var(--night); text-decoration: none; font-size: 14px; font-weight: 700;
    padding: 7px 13px; border: 2px solid transparent; position: relative;
    transition: all .15s;
}
.nav .links a:hover { color: var(--deep); border-color: var(--water); background: #fff; }
.nav .links a.active {
    color: #fff; background: var(--grad); border-color: var(--deep);
    box-shadow: 2px 3px 0 rgba(11,46,96,0.28);
}
.nav .links a.active::after { /* 金色像素下角 */
    content: ""; position: absolute; right: -2px; top: -2px;
    width: 9px; height: 9px; background: var(--gold); border: 2px solid var(--deep);
}

/* ===== Hero：芙宁娜水幕 ===== */
.hero {
    position: relative; overflow: hidden;
    background: var(--grad);
    color: #fff; padding: 84px 0 70px; text-align: center;
    border-bottom: var(--px) solid var(--abyss);
}
/* 水波像素方块（左） */
.hero::before {
    content: ""; position: absolute; left: -46px; bottom: -38px; width: 260px; height: 260px;
    background:
        linear-gradient(45deg, rgba(255,255,255,0.12) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.12) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.12) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.12) 75%);
    background-size: 34px 34px; background-position: 0 0, 17px 17px;
    transform: rotate(-8deg); pointer-events: none;
}
/* 金色像素角（右） */
.hero::after {
    content: ""; position: absolute; right: 30px; top: 30px; width: 84px; height: 84px;
    background:
        linear-gradient(45deg, rgba(245,197,24,0.85) 25%, transparent 25%, transparent 75%, rgba(245,197,24,0.85) 75%),
        linear-gradient(45deg, rgba(245,197,24,0.85) 25%, transparent 25%, transparent 75%, rgba(245,197,24,0.85) 75%);
    background-size: 26px 26px; background-position: 0 0, 13px 13px;
    border: 3px solid rgba(245,197,24,0.9); opacity: .45; pointer-events: none;
}
/* 底部水方块层（芙宁娜水元素像素带） */
.hero .water-layer {
    position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
    background:
        repeating-linear-gradient(90deg,
            rgba(255,255,255,0.28) 0 20px, rgba(11,46,96,0.18) 20px 40px);
    border-top: 3px solid rgba(255,255,255,0.35);
    pointer-events: none;
}
.hero h1 {
    font-size: 52px; font-weight: 900; letter-spacing: 3px;
    color: #fff; text-shadow: 3px 3px 0 rgba(10,62,158,0.65), 6px 6px 0 rgba(11,46,96,0.18);
}
.hero .slogan { margin-top: 16px; font-size: 18px; opacity: .97; text-shadow: 1px 1px 0 rgba(10,62,158,0.5); }
.hero .version-badge {
    display: inline-block; margin-top: 26px;
    background: rgba(11,46,96,0.38); border: 2px solid #fff;
    padding: 6px 18px; font-size: 14px; font-weight: 800;
    box-shadow: 3px 3px 0 rgba(11,46,96,0.45);
}
.hero .version-badge::before { content: "▮ "; color: var(--gold); }
.hero .actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 28px; font-size: 13px; opacity: .82; }

/* ===== MC 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px; font-size: 16px; font-weight: 900;
    text-decoration: none; cursor: pointer; border: 3px solid var(--deep);
    transition: transform .07s, box-shadow .07s, filter .15s;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.22);
    box-shadow: 3px 4px 0 rgba(11,46,96,0.30);
}
.btn::before { content: "▸ "; }
.btn:hover { filter: brightness(1.1); transform: translate(-1px, -1px); box-shadow: 5px 6px 0 rgba(11,46,96,0.30); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 rgba(11,46,96,0.3); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.18); color: #fff; border-color: #fff; }

/* ===== 区块 ===== */
.section { padding: 60px 0; }
.section.soft { background: rgba(255,255,255,0.55); }
.section-title {
    font-size: 28px; font-weight: 900; text-align: center; margin-bottom: 10px;
    color: var(--night); text-shadow: 2px 2px 0 rgba(11,94,215,0.14);
    display: flex; align-items: center; justify-content: center; gap: 12px;
}
/* 标题两侧像素短线 */
.section-title::before, .section-title::after {
    content: ""; width: 56px; height: 6px; flex: 0 0 56px;
    background: repeating-linear-gradient(90deg, var(--water) 0 10px, transparent 10px 16px);
}
.section-title::after { background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px); }
.section-sub { text-align: center; color: #4a6a8c; margin-bottom: 38px; font-size: 15px; }

/* 特性卡片：MC 硬边 + 顶部像素条 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
    position: relative; overflow: hidden;
    background: var(--mist); border: 2px solid var(--deep);
    padding: 24px 18px 20px; box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s;
}
.feature::before { /* 顶部芙宁娜像素条 */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
    background: var(--grad);
}
.feature::after { /* 右下金角 */
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px;
    background: var(--gold); border: 2px solid var(--deep); opacity: .85;
}
.feature:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-lg); }
.feature .icon {
    width: 46px; height: 46px; background: var(--ice); border: 2px solid var(--deep);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    color: var(--deep); box-shadow: 2px 2px 0 rgba(11,46,96,0.22);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; color: var(--night); }
.feature p { font-size: 13px; color: #4a6a8c; }

/* 下载卡片 */
.download-card {
    position: relative;
    max-width: 640px; margin: 0 auto; background: var(--mist);
    border: var(--px) solid var(--deep); box-shadow: var(--shadow-lg);
    padding: 36px 30px 32px; text-align: center;
}
.download-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
    background: var(--grad);
}
.download-card .ver { font-size: 34px; font-weight: 900; color: var(--deep); text-shadow: 2px 2px 0 rgba(11,94,215,0.14); }
.download-card .info { color: #4a6a8c; font-size: 14px; margin: 10px 0 26px; }
.btn-dl {
    background: var(--grad); color: #fff; font-size: 17px; padding: 15px 44px;
    position: relative; border-color: var(--abyss);
}
.btn-dl::after {
    content: ""; position: absolute; left: -3px; top: -3px;
    width: 20px; height: 20px; background: var(--gold); border: 3px solid var(--deep);
}

/* 列表项（公告/更新日志） */
.list-item {
    position: relative; background: var(--mist); border: 2px solid var(--deep);
    padding: 20px 22px 18px 30px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.list-item::before { /* 左侧水蓝方块 */
    content: ""; position: absolute; left: 8px; top: 22px; width: 12px; height: 12px;
    background: var(--water); border: 2px solid var(--deep);
    box-shadow: 2px 2px 0 rgba(11,46,96,0.2);
}
.list-item .tag {
    display: inline-block; font-size: 12px; padding: 2px 10px; font-weight: 800;
    background: var(--deep); color: #fff; box-shadow: 2px 2px 0 rgba(11,46,96,0.25);
}
.list-item .tag.important { background: var(--gold); color: #5c4300; }
.list-item .tag.stable { background: #2e8b57; color: #fff; }
.list-item h3 { font-size: 17px; margin: 9px 0 4px; color: var(--night); }
.list-item .date { font-size: 13px; color: #4a6a8c; }
.list-item ul { margin: 10px 0 0 22px; color: #4a6a8c; font-size: 14px; }
.list-item ul li { margin-bottom: 4px; }
.list-item ul li::marker { color: var(--water); }

/* FAQ */
.faq-item {
    position: relative; background: var(--mist); border: 2px solid var(--deep);
    padding: 20px 22px 18px 30px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.faq-item::before {
    content: "?"; position: absolute; left: 8px; top: 18px; width: 16px; height: 16px;
    background: var(--gold); color: #5c4300; border: 2px solid var(--deep);
    font-size: 11px; font-weight: 900; text-align: center; line-height: 12px;
}
.faq-item h3 { font-size: 15px; color: var(--deep); margin-bottom: 8px; }
.faq-item p { color: #4a6a8c; font-size: 14px; }

/* ===== 页脚 ===== */
footer {
    background: var(--night); color: rgba(255,255,255,0.85); padding: 36px 0 0;
    font-size: 13px; border-top: var(--px) solid var(--deep);
    position: relative;
}
footer::before { /* 顶部金线 */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold);
}
footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding-bottom: 24px; }
footer h4 { color: var(--gold); font-size: 14px; margin-bottom: 10px; }
footer h4::before { content: "▮ "; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; display: block; margin-bottom: 6px; }
footer a:hover { color: #fff; }
footer .copyright {
    margin: 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center; font-size: 12px; opacity: .72;
}

/* 子页面页头 */
.page-head {
    position: relative; overflow: hidden;
    background: var(--grad); color: #fff; padding: 48px 0 44px; text-align: center;
    border-bottom: var(--px) solid var(--abyss);
}
.page-head::before {
    content: ""; position: absolute; right: 20px; bottom: -16px; width: 110px; height: 110px;
    background: linear-gradient(45deg, rgba(245,197,24,0.42) 25%, transparent 25%, transparent 75%, rgba(245,197,24,0.42) 75%);
    background-size: 26px 26px; pointer-events: none;
}
.page-head::after {
    content: ""; position: absolute; left: -30px; top: -30px; width: 120px; height: 120px;
    background:
        linear-gradient(45deg, rgba(255,255,255,0.12) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.12) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.12) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.12) 75%);
    background-size: 30px 30px; background-position: 0 0, 15px 15px; pointer-events: none;
}
.page-head h1 { font-size: 32px; font-weight: 900; text-shadow: 3px 3px 0 rgba(10,62,158,0.6); }
.page-head p { margin-top: 10px; opacity: .92; font-size: 14px; }

/* 关于页卡片 */
.download-card img { image-rendering: pixelated; border: 3px solid var(--deep); box-shadow: 3px 3px 0 rgba(11,46,96,0.2); }

@media (max-width: 720px) {
    .nav .links { display: none; }
    .hero h1 { font-size: 32px; letter-spacing: 1px; }
    .hero { padding: 58px 0 50px; }
    .btn { padding: 12px 22px; font-size: 15px; }
    .section { padding: 42px 0; }
    .section-title::before, .section-title::after { width: 26px; flex-basis: 26px; }
    .feature::after { display: none; }
}
