/* Hero */
.fr-hero {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #222 100%);
    padding: 80px 0 60px;
    color: #e5e5e5;
    position: relative;
    overflow: hidden;
}
.fr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.fr-hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.fr-hero-content { position: relative; z-index: 1; }
.fr-hero-code .fr-terminal { margin: 0; }
.fr-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px; padding: 6px 18px; font-size: 13px; margin-bottom: 24px;
    color: #aaa; letter-spacing: 0.5px;
}
.fr-title {
    font-size: 52px; font-weight: 900; margin-bottom: 18px; line-height: 1.1;
    color: #fff;
}
.fr-subtitle { font-size: 17px; color: #999; line-height: 1.8; margin-bottom: 40px; }
.fr-stats { display: flex; justify-content: flex-start; gap: 0; }
.fr-stat {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 20px 40px; border-right: 1px solid rgba(255,255,255,0.1);
}
.fr-stat:last-child { border-right: none; }
.fr-stat span { font-size: 36px; font-weight: 800; color: #fff; }
.fr-stat small { font-size: 12px; color: #888; letter-spacing: 0.5px; }

/* Key区域 */
.fr-key-section { background: #f5f5f5; padding: 48px 0; }
.fr-key-card {
    max-width: 100%; margin: 0 auto;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 16px; padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.fr-key-title { font-size: 13px; font-weight: 600; color: #333; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; text-align: center; }
.fr-key-loading { text-align: center; color: #94a3b8; padding: 20px; }
.fr-key-logged-out { text-align: center; padding: 20px; }
.fr-key-logged-out p { color: #64748b; margin-bottom: 20px; font-size: 14px; }
.fr-key-info { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.fr-key-inner { max-width: 800px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.fr-key-row { display: flex; align-items: center; gap: 10px; }
.fr-copy-btn {
    flex-shrink: 0; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: #111; color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: background 0.2s, transform 0.1s;
}
.fr-copy-btn:hover { background: #333; transform: translateY(-1px); }
.fr-copy-btn:active { transform: translateY(0); }
.fr-key-value {
    flex: 1; background: #f8f8f8; border: 1px solid #e0e0e0;
    border-radius: 8px; padding: 12px 16px; font-family: 'Courier New', monospace;
    font-size: 13px; word-break: break-all; color: #1e293b;
}
.fr-key-meta { display: flex; gap: 24px; font-size: 12px; color: #94a3b8; }
.fr-usage-bar { background: #e5e5e5; border-radius: 4px; height: 6px; overflow: hidden; }
.fr-usage-fill { background: linear-gradient(90deg, #333, #111); height: 100%; border-radius: 4px; transition: width 0.5s; }

/* 步骤区域 */
.fr-steps-section { background: #fff; padding: 64px 0; }
.fr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.fr-step {
    background: #fafafa; border: 1px solid #e5e5e5; border-radius: 16px; padding: 32px 24px;
    text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.fr-step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.fr-step-num {
    width: 44px; height: 44px;
    background: #111;
    color: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.fr-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #1e293b; }
.fr-step p { font-size: 14px; color: #64748b; line-height: 1.7; }
.fr-step code { background: #f0f0f0; padding: 2px 7px; border-radius: 4px; font-size: 12px; color: #333; }

/* 终端代码块 */
.fr-terminal {
    background: #1e1e2e; border-radius: 12px; overflow: hidden;
    border: 1px solid #313244; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.fr-terminal-bar {
    background: #181825; padding: 12px 16px;
    display: flex; align-items: center; gap: 8px;
}
.fr-terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.fr-terminal-title { flex: 1; text-align: center; font-size: 12px; color: #6c7086; }
.fr-terminal-copy { font-size: 12px; color: #6c7086; cursor: pointer; padding: 4px 10px; border: 1px solid #313244; border-radius: 6px; background: none; transition: color 0.2s; }
.fr-terminal-copy:hover { color: #cdd6f4; }
.fr-terminal pre { margin: 0; padding: 24px; font-size: 13px; line-height: 1.8; overflow-x: auto; color: #cdd6f4; }
.fr-terminal .t-comment { color: #6c7086; }
.fr-terminal .t-str { color: #a6e3a1; }
.fr-terminal .t-cmd { color: #f38ba8; }

/* 模型列表 */
.fr-models-section { background: #f5f5f5; padding: 64px 0; }
.fr-models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.fr-model-card {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 12px;
    padding: 16px 20px; display: flex; align-items: center; gap: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fr-model-card:hover { border-color: #999; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.fr-model-rank {
    width: 32px; height: 32px; border-radius: 8px;
    background: #f0f0f0; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #94a3b8; flex-shrink: 0;
}
.fr-model-rank.top1 { background: #111; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.fr-model-rank.top2 { background: #555; color: #fff; }
.fr-model-rank.top3 { background: #888; color: #fff; }
.fr-model-info { flex: 1; min-width: 0; }
.fr-model-name { font-size: 14px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-model-meta { font-size: 12px; color: #94a3b8; margin-top: 3px; }

@media (max-width: 768px) {
    .fr-title { font-size: 32px; }
    .fr-hero-layout { grid-template-columns: 1fr; gap: 32px; }
    .fr-stats { flex-wrap: wrap; }
    .fr-stat { padding: 12px 16px; }
    .fr-stat span { font-size: 26px; }
    .fr-steps { grid-template-columns: 1fr; }
    .fr-models-grid { grid-template-columns: 1fr; }
    .fr-key-card { padding: 20px; }
    .fr-model-card { min-width: 0; overflow: hidden; }
    .fr-model-name { white-space: normal; word-break: break-all; }
    .fr-key-meta { flex-wrap: wrap; gap: 8px; }
    .fr-terminal pre { font-size: 12px; }
    .fr-terminal { overflow: hidden; }
}

/* 覆盖全局section-tag为黑色 */
.fr-steps-section .section-tag,
.fr-models-section .section-tag {
    background: #111;
}
