/* ===== 全局 ===== */
body {
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
    padding: 0;   /* ✅ 必须去掉 */
    padding-bottom: clamp(60px, 10vw, 120px);
    padding-top: 28px;
    color: #e2e8f0;
    line-height: 1.8;
    min-height: 100vh;                 /* ✅ 关键 */
    background:
        radial-gradient(circle at 20% 20%, rgba(56,189,248,0.25), transparent 60%),
        radial-gradient(circle at 80% 60%, rgba(99,102,241,0.2), transparent 60%),
        radial-gradient(circle at 50% 90%, rgba(14,165,233,0.12), transparent 70%),
        linear-gradient(180deg, #020617 0%, #0b1220 50%, #020617 100%);
}
.header-inner {
    width: 100%;                  /* ✅ 撑满 */
    max-width: none;              /* ✅ 取消 800px 限制 */
    margin: 0;                    /* ✅ 不再居中 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px clamp(24px, 6vw, 60px);  /* ✅ header 自己留边距 */
    box-sizing: border-box;
}
.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    max-width: 800px;   /* 👈 稍微放宽一点 */
    margin: auto;
    padding: clamp(12px, 5vw, 40px);
    padding-top: clamp(30px, 5vh, 60px);
}
.content {
    max-width: 800px;
    margin: auto;
    padding: clamp(16px, 5vw, 40px);
    padding-bottom: clamp(60px, 10vw, 120px);
    line-height: 1.8;
    font-size: clamp(14px, 2.8vw, 16px);
}
/* ===== Header ===== */
.header {
    width: 100%;
}
html, body {
    overflow-x: hidden;
}
.ai-box {
    margin-top: 12px;
    width: 100%;
    max-width: 640px;
    padding: 18px;
    border-radius: 14px;
    /* ✅ 核心：更浅的玻璃 */
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* ✅ 边缘高光 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* ✅ 柔和阴影 */
    box-shadow:
        0 10px 30px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
}

.ai-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(56,189,248,0.08), transparent 70%);
    pointer-events: none;
}

.ai-row {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-top: 1px;
}
.ai-key {
    flex: 1;
    height: 34px;
    box-sizing: border-box;
    /* ✅ 改这里 */
    background: rgba(2,6,23,0.65);
    border: 1px solid rgba(148,163,184,0.25);
    color: #e2e8f0;
    padding: 0 10px;
    border-radius: 6px;
    box-sizing: border-box;
}
.ai-input {
    width: 100%;
    box-sizing: border-box;
    height: 95px;
    background: rgba(2,6,23,0.7);
    border: 1px solid rgba(148,163,184,0.25);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    resize: vertical;
}
.ai-btn {
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 10px 0;     /* ↓ 小一点 */
    font-size: 14px;     /* ↓ */
}
.ai-output {
    margin-top: 15px;
    padding: 15px;
    background: rgba(2,6,23,0.9);
    border: 1px solid #334155;
    border-radius: 8px;
    white-space: pre-wrap;
}
.ai-output:empty {
    display: none;
}
.ai-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 3px;
    margin-bottom: 0px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}
.container p {
    margin-top: 4px;
}
.logo {
    font-weight: 600;
    font-size: clamp(16px, 2vw, 18px);
}

/* ===== 导航 ===== */
.nav a {
    transition: 0.2s;
    margin-left: clamp(8px, 2vw, 15px);
    color: #94a3b8;
    text-decoration: none;
    font-size: clamp(13px, 2.5vw, 14px);
}

.nav a:hover {
    color: #e2e8f0;
}
/* ===== 标题 ===== */
h1 {
    font-size: clamp(28px, 5vw, 48px);  /* ✅ 自适应 */
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(56,189,248,0.25);
}
/* 副标题 */
p {
    color: #94a3b8;
    font-size: clamp(14px, 2.8vw, 16px);
}
/* ===== 按钮区域 ===== */
.actions {
    margin-top: clamp(10px, 2vw, 20px);
    display: flex;
    justify-content: center;
    gap: clamp(60px, 20vw, 80px);
    opacity: 0.85;
    font-size: 16px;
}
/* ===== 按钮 ===== */
.button {
    display: inline-block;
    padding: clamp(10px, 2.5vw, 12px) clamp(20px, 5vw, 26px);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.2s ease;
    text-align: center;
}

/* 主按钮 */
.button.primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #020617;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;

}
.button.primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
}

/* 次按钮 */
.button.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.button.secondary {
    font-size: 14px;
    padding: 8px 18px;
}
.button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== h2 ===== */
h2 {
    border-left: none;
    padding-left: 0;
}
h2:not(.ai-title) {
    border-left: 3px solid #38bdf8;
    padding-left: 10px;
}
/* ===== 分割线（低存在感） ===== */
hr {
    border: none;
    height: 1px;
    background: rgba(148, 163, 184, 0.18);  /* ✅ 靠近背景 */
    margin: 50px 0;
}

/* ===== 代码块（未来 blog 可复用） ===== */
pre {
    background: #020617;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
}

code {
    background: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    color: #38bdf8;
}

