/* =========================================================
   Sumer · 全站共享样式
   品牌色：深灰黑 #0a0a0b / 青金石蓝 #2a4d8f / 古铜金 #c9a45a
   ========================================================= */

/* 全局 */
html { scroll-behavior: smooth; }
body {
    background-color: #070709;
    color: #d9d9df;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv11";
}
::selection { background: rgba(201,164,90,0.35); color: #fff; }

/* 滚动条（细腻） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070709; }
::-webkit-scrollbar-thumb { background: #1c1c21; border-radius: 8px; border: 2px solid #070709; }
::-webkit-scrollbar-thumb:hover { background: #26262d; }

/* ============ 背景层 ============ */
.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}
/* Hero 径向光：青金石蓝 + 古铜金双色 */
.radial-sumer {
    background:
        radial-gradient(700px 400px at 20% 0%, rgba(42,77,143,0.22), transparent 60%),
        radial-gradient(600px 400px at 80% 10%, rgba(201,164,90,0.18), transparent 60%);
}
.radial-lapis { background: radial-gradient(600px 400px at 50% 0%, rgba(42,77,143,0.22), transparent 60%); }
.radial-bronze { background: radial-gradient(600px 400px at 50% 0%, rgba(201,164,90,0.18), transparent 60%); }

/* 细分割线 */
.hairline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* ============ 文字渐变 ============ */
.text-gradient-bronze {
    background: linear-gradient(135deg, #f5d89a 0%, #c9a45a 40%, #7d6231 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-lapis {
    background: linear-gradient(135deg, #9ab4e6 0%, #4a72c4 45%, #2a4d8f 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 组合渐变：古文明金蓝 */
.text-gradient-sumer {
    background: linear-gradient(120deg, #e0bd78 0%, #c9a45a 30%, #6d88c0 65%, #2a4d8f 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ 卡片 ============ */
.card-surface {
    background: linear-gradient(180deg, rgba(20,20,24,0.78) 0%, rgba(10,10,11,0.78) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.card-surface:hover {
    border-color: rgba(201,164,90,0.45);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,164,90,0.15);
}
.card-lapis:hover {
    border-color: rgba(74,114,196,0.55);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(74,114,196,0.2);
}

/* ============ 按钮 ============ */
.btn-primary {
    background: linear-gradient(180deg, #d9b06a 0%, #c9a45a 60%, #a88443 100%);
    color: #0a0a0b;
    box-shadow: 0 10px 30px -12px rgba(201,164,90,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 16px 40px -12px rgba(201,164,90,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.14);
    color: #f4f4f6;
    transition: border-color .25s ease, background-color .25s ease;
}
.btn-ghost:hover {
    border-color: rgba(201,164,90,0.55);
    background-color: rgba(201,164,90,0.06);
}
.btn-lapis {
    background: linear-gradient(180deg, #4a72c4 0%, #2a4d8f 100%);
    color: #f4f4f6;
    box-shadow: 0 10px 30px -12px rgba(42,77,143,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-lapis:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ============ 导航 ============ */
.nav-scrolled {
    background: rgba(7,7,9,0.75);
    border-bottom-color: rgba(255,255,255,0.06) !important;
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
}
/* 当前页面高亮 */
.nav-link.active {
    color: #e0bd78 !important;
}
.nav-link.active::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 4px;
    background: linear-gradient(90deg, transparent, #c9a45a, transparent);
}

/* ============ 滚动渐入 ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============ 楔形装饰（苏美尔楔形符号） ============ */
.cuneiform::before {
    content: "";
    display: inline-block;
    width: 10px; height: 10px;
    margin-right: 10px;
    background: linear-gradient(135deg, #c9a45a, #7d6231);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform: translateY(1px);
}
.cuneiform-lapis::before {
    content: "";
    display: inline-block;
    width: 10px; height: 10px;
    margin-right: 10px;
    background: linear-gradient(135deg, #6d88c0, #2a4d8f);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform: translateY(1px);
}

/* ============ 动画 ============ */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseSlow {
    0%,100% { opacity: .35 }
    50% { opacity: .85 }
}
.animate-fade-up { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.animate-pulse-slow { animation: pulseSlow 4s ease-in-out infinite; }

/* 工具类：额外字距 */
.tracking-ultra { letter-spacing: 0.25em; }

/* 光晕 */
.shadow-glow-bronze { box-shadow: 0 0 40px -10px rgba(201,164,90,0.35); }
.shadow-glow-lapis { box-shadow: 0 0 40px -10px rgba(74,114,196,0.4); }

/* 标注块 */
.kbd {
    display: inline-flex; align-items: center; justify-content: center;
    height: 22px; padding: 0 8px;
    font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #d9d9df;
    border: 1px solid rgba(255,255,255,0.12);
    background: #141418;
    border-radius: 6px;
}
