/* =========================================================
   NyouOS 开发者页样式 · css/developer.css
   ========================================================= */

/* ---------- Hero ---------- */
.dev-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
    border-bottom: 1px solid var(--line-soft);
}

.dev-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 120, 212, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 60% at 90% 30%, rgba(91, 60, 196, 0.12), transparent 60%);
    z-index: 0;
}

[data-theme="dark"] .dev-hero {
    background: linear-gradient(180deg, #0a0a0c, #000);
}

.dev-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.dev-hero-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 12px 0 22px;
}

.dev-hero-content .lede {
    margin-bottom: 32px;
}

.dev-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- 步骤卡片 ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 21px;
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0 0 18px;
}

.step-card strong {
    color: var(--text);
}

.step-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.step-link:hover {
    gap: 4px;
}

/* ---------- 邮件卡片 ---------- */
.section-email .email-card {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.email-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.email-to {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-to-label {
    font-size: 12px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.email-to-addr {
    font-size: 16px;
    font-weight: 600;
    color: #2997ff;
    font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

.email-body {
    padding: 22px;
}

.email-line {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 14px;
    line-height: 1.6;
}

.email-line:last-child {
    border-bottom: none;
}

.email-key {
    flex-shrink: 0;
    width: 92px;
    color: #86868b;
}

.email-val {
    color: #f5f5f7;
    flex: 1;
}

.email-line-link .email-val {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    color: #30d158;
    word-break: break-all;
}

.email-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(48, 209, 88, 0.15);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: #30d158;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.02em;
}

.email-note {
    padding: 16px 22px 20px;
    background: rgba(255, 159, 10, 0.06);
    border-top: 1px solid rgba(255, 159, 10, 0.15);
    font-size: 13px;
    color: #c7d8e8;
    line-height: 1.6;
}

.email-note strong {
    color: #ffd60a;
}

.email-note ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.email-note li {
    margin-bottom: 6px;
}

.email-note li strong {
    color: #f5f5f7;
}

/* ---------- 资源卡片 ---------- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.resource-card {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
    display: block;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.resource-icon img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.resource-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 600;
}

.resource-card p {
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.55;
    margin: 0 0 14px;
}

.resource-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: background 0.2s ease;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.07);
}

.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #f5f5f7;
    list-style: none;
    position: relative;
    padding-right: 50px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #86868b;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    padding: 0 22px 20px;
    margin: 0;
    font-size: 14.5px;
    color: #a1a1a6;
    line-height: 1.65;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .steps-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .steps-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .email-card-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .email-line {
        flex-direction: column;
        gap: 4px;
    }
    .email-key {
        width: auto;
    }
}
