/* ==========================================================
   光影视觉 · 前台样式
   设计基调：深色影调 + 大图留白 + 暖调点缀
   ========================================================== */

:root {
    --ink: #0d0e12;
    --ink-2: #14161c;
    --ink-3: #1c1f27;
    --line: rgba(255, 255, 255, .10);
    --text: #e8eaef;
    --text-2: #a2a8b6;
    --text-3: #6b7280;
    --accent: #d97757;
    --accent-2: #e8a87c;
    --radius: 14px;
    --wrap: 1240px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; border: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .35s, backdrop-filter .35s, border-color .35s;
    border-bottom: 1px solid transparent;
}
/* 只在滚动后加实底，避免鼠标悬停时整条 header 变色 */
.site-header.solid {
    background: rgba(13, 14, 18, .86);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--line);
}
.header-inner {
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px; flex: none;
    background: linear-gradient(135deg, var(--accent), #b05c3c);
    display: grid; place-items: center; color: #fff; font-size: 17px;
    box-shadow: 0 6px 18px rgba(217, 119, 87, .32);
}
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.logo-text small {
    display: block; font-size: 10px; letter-spacing: 2.4px;
    color: var(--text-3); font-weight: 400; text-transform: uppercase;
}
.logo img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 9px 15px; border-radius: 9px; font-size: 14.5px;
    color: var(--text-2);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.active { color: #fff; font-weight: 600; }
.nav a.active::after {
    content: ''; display: block; height: 2px; width: 18px; margin: 4px auto -6px;
    background: var(--accent); border-radius: 2px;
}
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line);
    color: var(--text); width: 40px; height: 38px; border-radius: 9px;
    cursor: pointer; font-size: 17px;
}

/* ---------------- 首页轮播 ---------------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
    background-size: cover; background-position: center;
    background-color: var(--ink-2);
}
.hero-slide.on { opacity: 1; }
.hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,14,18,.62) 0%, rgba(13,14,18,.30) 42%, rgba(13,14,18,.94) 100%);
}
/* 无图时的纹理背景 */
.hero-slide.no-img {
    background-image:
        radial-gradient(900px 500px at 78% 18%, rgba(217,119,87,.24), transparent 62%),
        radial-gradient(700px 460px at 12% 78%, rgba(90,130,190,.20), transparent 64%),
        linear-gradient(160deg, #16181f, #0d0e12);
}
.hero-body {
    position: relative; z-index: 3; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 760px;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
    padding: 6px 15px; border-radius: 100px; margin-bottom: 22px;
    background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    font-size: 12.5px; letter-spacing: 1.6px; color: var(--accent-2);
    text-transform: uppercase;
}
.hero-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(217,119,87,.20);
}
.hero h1 {
    font-size: clamp(38px, 6.4vw, 68px); line-height: 1.14;
    letter-spacing: -1.5px; margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.hero-sub {
    font-size: clamp(15px, 1.6vw, 18.5px); color: #c4c9d4;
    max-width: 560px; margin-bottom: 36px; line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 28px; border-radius: 100px; font-size: 14.5px; font-weight: 500;
    border: 1px solid transparent; cursor: pointer; transition: .25s;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #c26343); color: #fff;
    box-shadow: 0 10px 30px rgba(217, 119, 87, .30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(217,119,87,.42); }
.btn-ghost {
    border-color: rgba(255, 255, 255, .24); color: #fff;
    background: rgba(255, 255, 255, .05); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255,255,255,.4); }

.hero-dots {
    position: absolute; left: 0; right: 0; bottom: 46px; z-index: 4;
    display: flex; gap: 10px; justify-content: center;
}
.hero-dots i {
    width: 30px; height: 3px; border-radius: 3px; cursor: pointer;
    background: rgba(255, 255, 255, .26); transition: .3s;
}
.hero-dots i.on { background: var(--accent); width: 46px; }

.scroll-hint {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 4; color: var(--text-3); font-size: 10px; letter-spacing: 2.4px;
    white-space: nowrap; pointer-events: none;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 100px 0; }
.section.alt { background: var(--ink-2); }
.sec-head { margin-bottom: 52px; }
.sec-head.center { text-align: center; }
.sec-tag {
    font-size: 12px; letter-spacing: 3.2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.6px; }
.sec-head p { color: var(--text-2); margin-top: 12px; max-width: 620px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

/* ---------------- 作品宫格 ---------------- */
.works-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.work-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: var(--ink-3); aspect-ratio: 4 / 3; display: block;
    border: 1px solid var(--line);
}
.work-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.work-card:hover img { transform: scale(1.07); }
.work-card .ph {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #22252e, #16181f);
    display: grid; place-items: center; color: #3a3f4b; font-size: 34px;
}
.work-meta {
    position: absolute; inset: auto 0 0 0; padding: 46px 20px 18px;
    background: linear-gradient(transparent, rgba(9, 10, 13, .92));
    transform: translateY(6px); transition: transform .35s;
}
.work-card:hover .work-meta { transform: translateY(0); }
.work-meta h3 { font-size: 16.5px; margin-bottom: 4px; color: #fff; }
.work-meta span { font-size: 12.5px; color: var(--text-2); }
.work-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: 4px 11px; border-radius: 100px; font-size: 11.5px;
    background: rgba(13, 14, 18, .7); backdrop-filter: blur(8px);
    border: 1px solid var(--line); color: var(--text);
}
/* 首页首图放大 */
.works-grid.featured > .work-card:first-child { grid-column: span 2; aspect-ratio: auto; min-height: 340px; }
@media (max-width: 700px) {
    .works-grid.featured > .work-card:first-child { grid-column: span 1; min-height: 260px; }
}

/* ---------------- 筛选标签 ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 40px; }
.filters a {
    padding: 8px 19px; border-radius: 100px; font-size: 14px;
    border: 1px solid var(--line); color: var(--text-2);
    background: rgba(255, 255, 255, .03);
}
.filters a:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.filters a.on {
    background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500;
}

/* ---------------- 文章列表 ---------------- */
.article-list { display: grid; gap: 16px; }
.article-card {
    display: grid; grid-template-columns: 250px 1fr; gap: 26px;
    padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
    background: rgba(255, 255, 255, .022); transition: .28s;
}
.article-card:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(217, 119, 87, .34);
    transform: translateY(-2px);
}
.article-thumb {
    aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, #23262f, #16181f);
    display: grid; place-items: center; color: #3a3f4b; font-size: 26px;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { display: flex; flex-direction: column; justify-content: center; }
.article-body h3 { font-size: 19px; margin-bottom: 10px; }
.article-card:hover h3 { color: var(--accent-2); }
.article-body p { color: var(--text-2); font-size: 14.5px; margin-bottom: 14px; }
.article-meta {
    display: flex; gap: 18px; font-size: 12.5px; color: var(--text-3);
    margin-top: auto;
}

/* ---------------- 页面头 ---------------- */
.page-head {
    padding: 150px 0 60px;
    background:
        radial-gradient(700px 320px at 22% 0%, rgba(217, 119, 87, .16), transparent 66%),
        linear-gradient(180deg, var(--ink-2), var(--ink));
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.8px; }
.page-head p { color: var(--text-2); margin-top: 14px; max-width: 640px; }
.crumb { font-size: 13px; color: var(--text-3); margin-top: 18px; }
.crumb a:hover { color: var(--accent); }

/* ---------------- 文章详情 ---------------- */
.article-wrap { max-width: 800px; margin: 0 auto; }
.article-wrap h1 { font-size: clamp(25px, 3.6vw, 36px); margin-bottom: 18px; letter-spacing: -.6px; }
.article-info {
    display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 26px;
    border-bottom: 1px solid var(--line); margin-bottom: 38px;
    font-size: 13.5px; color: var(--text-3);
}
.article-content { font-size: 16px; line-height: 2; color: #d3d7e0; }
.article-content h2,
.article-content h3 { margin: 40px 0 16px; color: #fff; font-size: 21px; }
.article-content h3 { font-size: 18px; }
.article-content p { margin: 0 0 22px; }
.article-content img { border-radius: 10px; margin: 26px 0; }
.article-content blockquote {
    margin: 26px 0; padding: 4px 0 4px 22px;
    border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic;
}
.article-content a { color: var(--accent-2); text-decoration: underline; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 24px; }
.article-content li { list-style: disc; margin-bottom: 8px; }
.article-content ol li { list-style: decimal; }
.article-cover { border-radius: var(--radius); margin-bottom: 34px; width: 100%; }

/* ---------------- 关于 / 联系 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.about-content { font-size: 16px; line-height: 2; color: #d3d7e0; }
.about-content p { margin-bottom: 20px; }
.about-content h3 { margin: 34px 0 14px; color: #fff; }

.info-card {
    padding: 30px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.info-card h3 {
    font-size: 16px; margin-bottom: 20px; padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}
.info-item { display: flex; gap: 13px; margin-bottom: 17px; font-size: 14.5px; }
.info-item .ico { width: 20px; flex: none; color: var(--accent); font-size: 15px; }
.info-item .lbl { color: var(--text-3); font-size: 12.5px; display: block; }
.info-item .val { color: var(--text); word-break: break-all; }

/* ---------------- 表单 ---------------- */
.form-box {
    max-width: 660px; padding: 34px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
    width: 100%; padding: 12px 15px; border-radius: 10px; font-family: inherit;
    font-size: 14.5px; color: var(--text); background: rgba(0, 0, 0, .3);
    border: 1px solid var(--line); transition: .2s; outline: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.75; }
.field input:focus, .field textarea:focus {
    border-color: var(--accent); background: rgba(0, 0, 0, .45);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #4d5361; }

.alert {
    padding: 13px 17px; border-radius: 10px; font-size: 14px; margin-bottom: 24px;
}
.alert.ok  { background: rgba(66, 160, 110, .14); border: 1px solid rgba(66,160,110,.36); color: #7fd3a4; }
.alert.err { background: rgba(200, 70, 70, .13); border: 1px solid rgba(200,70,70,.36); color: #f0918f; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; gap: 7px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px;
    display: grid; place-items: center; font-size: 14px;
    border: 1px solid var(--line); color: var(--text-2);
}
.pager a:hover { border-color: var(--accent); color: #fff; }
.pager span.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    border-top: 1px solid var(--line); background: #0a0b0e;
    padding: 60px 0 30px; margin-top: 0;
}
.footer-top {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--text-2); font-size: 14px; max-width: 340px; margin-top: 16px; }
.footer-col h4 { font-size: 13px; letter-spacing: 1.6px; color: var(--text-3); margin-bottom: 18px; text-transform: uppercase; }
.footer-col li { margin-bottom: 11px; font-size: 14px; color: var(--text-2); }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
    padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-3);
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------------- 404 ---------------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty-state .big { font-size: 56px; margin-bottom: 16px; opacity: .35; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .section { padding: 70px 0; }
    .nav-toggle { display: block; }
    .nav {
        position: fixed; top: 72px; left: 0; right: 0; flex-direction: column;
        align-items: stretch; gap: 2px; padding: 14px 20px 22px;
        background: rgba(13, 14, 18, .97); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: transform .32s; z-index: 99;
    }
    .nav.open { transform: translateY(0); }
    .nav a { padding: 13px 14px; }
    .nav a.active::after { display: none; }
    .hero { height: 88vh; min-height: 540px; }
    .hero-body { max-width: 100%; }
    .article-card { grid-template-columns: 1fr; gap: 16px; }
    .article-thumb { aspect-ratio: 16 / 9; }
    .works-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-box { padding: 24px 20px; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .page-head { padding: 120px 0 46px; }
}
