/* ============================================
   🦞 龙虾AI云工场 — 完整样式表
   ============================================ */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --accent: #f4a261;
    --bg-dark: #0d1b2a;
    --bg-card: #1b2838;
    --bg-alt: #1a1a2e;
    --text: #e0e0e0;
    --text-muted: #8899aa;
    --text-light: #f5f5f5;
    --border: #2a3a4a;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-online {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Button sizes */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
}

.btn-ghost:hover {
    color: var(--text-light);
    background: rgba(255,255,255,0.05);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 16px;
}

.highlight {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.node-animation {
    position: relative;
    width: 260px;
    height: 260px;
}

.node-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.node-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: spin 12s linear infinite;
}

.node-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px) rotate(calc(-1 * var(--angle)));
    transition: var(--transition);
}

.node-dot:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

.page-header {
    margin-bottom: 40px;
}

/* ============================================
   Stats Grid
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.stat-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   About Cards
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Features List
   ============================================ */

.features-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-tag {
    flex-shrink: 0;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    height: fit-content;
}

.feature-content h4 {
    color: var(--text-light);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Nodes Grid
   ============================================ */

.node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.node-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

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

.node-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.node-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.node-online .node-status-dot {
    background: var(--success);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    animation: blink 2s ease-in-out infinite;
}

.node-pending .node-status-dot {
    background: var(--warning);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
}

.node-offline .node-status-dot {
    background: var(--danger);
}

.node-status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.node-card h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.node-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.node-specs span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.node-role {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
}

.node-online .node-role {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}

.node-pending .node-role {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

/* Node Metrics */
.node-metrics {
    margin-top: 16px;
    text-align: left;
}

.metric-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metric-bar label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 50px;
}

.bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mem-fill {
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.metric-val {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

.node-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Node Card Large */
.node-lg {
    text-align: left;
}

.node-header {
    margin-bottom: 16px;
}

.node-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.node-title-row h3 {
    font-size: 1.2rem;
    color: var(--text-light);
}

.node-type {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.node-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-online {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}

.badge-pending {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.badge-offline {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.node-body {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.node-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.node-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.node-info-item label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.node-info-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.node-metrics-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.big-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-lg {
    height: 20px;
    border-radius: 10px;
}

.big-metric {
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

.metric-block h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.node-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.node-placeholder p {
    margin-bottom: 12px;
}

/* ============================================
   Tasks Table
   ============================================ */

.task-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.task-table th,
.task-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.task-table th {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.task-table code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
}

.task-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-running {
    background: rgba(52, 152, 219, 0.12);
    color: #3498db;
}

.task-completed {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}

.task-queued {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.task-failed {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.task-pending {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.task-paid {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}

.task-expired {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.task-cancelled {
    background: rgba(149, 165, 166, 0.12);
    color: #95a5a6;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-sm {
    height: 4px;
    width: 80px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.empty-state-card {
    background: var(--bg-card);
    border: 1px solid dashed;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-alt);
}

.timeline-date {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-content h4 {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Pricing
   ============================================ */

.pricing-preview {
    text-align: center;
}

.pricing-cta {
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

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

.pricing-featured {
    border-color: var(--primary);
    transform: scale(1.03);
}

.pricing-featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header {
    padding: 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.pricing-price {
    margin-bottom: 12px;
}

.price-currency {
    font-size: 1.2rem;
    color: var(--text-muted);
    vertical-align: super;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-body {
    padding: 24px;
    flex: 1;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text);
}

.feature-check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-footer {
    padding: 16px 24px 24px;
}

/* ============================================
   Auth (Login / Register)
   ============================================ */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-input::placeholder {
    color: #4a5a6a;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--danger);
}

/* ============================================
   Invite Section (控制台推广区块)
   ============================================ */

.invite-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.invite-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.invite-header-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.invite-header h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.invite-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.invite-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.invite-link-row {
    margin-bottom: 16px;
}

.invite-link-row label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.invite-link-box {
    display: flex;
    gap: 8px;
}

.invite-link-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    color: var(--accent);
    font-size: 0.85rem;
    font-family: "SF Mono", "Fira Code", monospace;
    outline: none;
    cursor: text;
}

.invite-link-input:focus {
    border-color: var(--primary);
}

.invite-link-box .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.invite-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.invite-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    min-width: 90px;
}

.invite-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.invite-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.invite-actions {
    margin-bottom: 12px;
}

.invite-tip {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* 注册页 — 邀请提示 */
.invite-info {
    background: rgba(244, 162, 97, 0.08);
    border: 1px solid rgba(244, 162, 97, 0.25);
    color: #f4a261;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.invite-info strong {
    color: var(--text-light);
}

/* ============================================
   User Console
   ============================================ */

.user-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 24px;
}

.user-info-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    font-size: 3rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230,57,70,0.1);
    border-radius: 50%;
}

.user-details h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.user-details p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.user-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.action-icon {
    font-size: 1.8rem;
}

.action-card span:last-child {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h4 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   About Page
   ============================================ */

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.arch-tag {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.arch-layer p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.about-card-sm {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.about-card-sm h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 8px;
}

.about-card-sm p {
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   Admin - Logs
   ============================================ */

.log-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.82rem;
}

.log-entry {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-info {
    color: var(--text);
}

.log-warn {
    background: rgba(243, 156, 18, 0.05);
    color: var(--warning);
}

.log-error {
    background: rgba(231, 76, 60, 0.05);
    color: var(--danger);
}

.log-level {
    flex-shrink: 0;
}

.log-module {
    color: var(--accent);
    flex-shrink: 0;
}

.log-msg {
    flex: 1;
    color: var(--text-muted);
}

.log-time {
    color: #4a5a6a;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-motto {
    color: var(--accent);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-links {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

.footer-eco-label {
    color: var(--text-muted);
    font-weight: 600;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .node-animation {
        width: 200px;
        height: 200px;
    }

    .node-center {
        font-size: 3rem;
    }

    .node-dot {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-85px) rotate(calc(-1 * var(--angle)));
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 12px;
    }

    .feature-tag {
        align-self: flex-start;
    }

    .timeline {
        padding-left: 20px;
    }

    .node-info-grid,
    .node-metrics-detailed {
        grid-template-columns: 1fr;
    }

    .pricing-featured {
        transform: none;
    }

    .pricing-featured:hover {
        transform: translateY(-4px);
    }

    .user-info-main {
        flex-direction: column;
        text-align: center;
    }

    .user-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .about-grid,
    .node-grid,
    .contact-grid,
    .pricing-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Utilities
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
