/* ============================
   Flow From Cosmos — 官网专属样式
   ============================ */

/* 导航栏 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    text-decoration: none;
}
.nav-logo {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #e2e8f0;
}
.nav-links .btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Hero 区域 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
                var(--bg-primary);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 40px 20px;
}
.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.5));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e2e8f0 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 36px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-lg {
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 8px;
}
.btn-ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: #e2e8f0;
    border-color: #3b82f6;
}

/* 通用 section */
.section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.section-dark {
    background: var(--bg-secondary);
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #e2e8f0;
}

/* 特性卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.feature-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 快速接入步骤 */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.step {
    text-align: center;
}
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}
.step h3 {
    color: #e2e8f0;
    margin-bottom: 8px;
    font-size: 1rem;
}
.step p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 注册页 */
.register-page {
    background: var(--bg-primary);
}
.register-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.register-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 640px;
    width: 100%;
}
.register-header {
    text-align: center;
    margin-bottom: 32px;
}
.register-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
}
.register-header h1 {
    font-size: 1.5rem;
    color: #e2e8f0;
    margin-bottom: 8px;
}
.register-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
}
.register-form .form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.register-form .form-section h3 {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 16px;
}
.register-form .form-group {
    margin-bottom: 16px;
}
.register-form label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.register-form input[type="text"],
.register-form input[type="url"],
.register-form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
}
.register-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.register-form small {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.radio-group,
.checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
}
.register-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.register-info {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.info-grid h4 {
    color: #e2e8f0;
    margin-bottom: 12px;
    font-size: 1rem;
}
.info-grid ul {
    list-style: none;
    padding: 0;
}
.info-grid li {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.info-grid li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
}
.info-grid p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
}
.result-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.result-msg.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}
.result-msg.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 40px 24px;
    margin-top: 40px;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-logo {
    width: 36px;
    height: 36px;
}
.footer-brand p {
    color: #64748b;
    font-size: 0.85rem;
}
.footer-links h4 {
    color: #e2e8f0;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.footer-links a {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #3b82f6;
}
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p {
    color: #64748b;
    font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar { padding: 12px 16px; }
    .hero h1 { font-size: 2rem; }
    .hero-logo { width: 80px; height: 80px; }
    .section { padding: 60px 16px; }
    .register-card { padding: 24px; }
    .footer-content { grid-template-columns: 1fr; }
}