/* SeaSeed.ai - AI海洋世界样式 */

/* ========== CSS变量 ========== */
:root {
  --deep-blue: #0a192f;
  --ocean-blue: #112d4e;
  --sea-blue: #1e4976;
  --light-blue: #3d7ea6;
  --cyan: #00d4ff;
  --cyan-light: #00f5ff;
  --bioluminescent: #00ff88;
  --coral: #ff6b6b;
  --coral-pink: #ff6b9d;
  --gold: #ffd93d;
  --foam: #e8f4f8;
  --text-primary: #ffffff;
  --text-secondary: #a8c5d8;
  --text-muted: #6b8a9a;
  --card-bg: rgba(17, 45, 78, 0.6);
  --card-border: rgba(0, 212, 255, 0.15);
  --gradient-ocean: linear-gradient(135deg, #0a192f 0%, #1e4976 50%, #00d4ff 100%);
  --gradient-bubble: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.2));
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--deep-blue);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== 海洋背景 ========== */
.ocean-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, #0a192f 0%, #1e3a5f 50%, #0d2840 100%);
  overflow: hidden;
}

.ocean-background .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300d4ff' fill-opacity='0.05' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  animation: wave 15s linear infinite;
}

.ocean-background .wave2 {
  opacity: 0.5;
  animation: wave 12s linear infinite reverse;
  bottom: 20px;
}

.ocean-background .wave3 {
  opacity: 0.3;
  animation: wave 18s linear infinite;
  bottom: 40px;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.bubbles-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 50% 50%, rgba(255, 107, 157, 0.05) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.ocean-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ========== 导航栏 ========== */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand .logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-brand .logo-link:hover {
  transform: scale(1.05);
}

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

.logo-text {
  display: flex;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo-sea {
  background: linear-gradient(135deg, var(--cyan), var(--bioluminescent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-seed {
  background: linear-gradient(135deg, var(--coral-pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.octopus-icon {
  font-size: 2.5rem;
  animation: float 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-user:hover {
  background: rgba(0, 212, 255, 0.2);
}

.nav-user .user-avatar {
  font-size: 1.5rem;
}

.nav-user .user-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========== 潮泡弹幕区 ========== */
.bubbles-float-area {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: -30px;
  background: linear-gradient(180deg, rgba(0, 50, 80, 0.1) 0%, transparent 100%);
  border-radius: 10px;
}

.bubbles-float-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.bubble-float {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(90deg, 
    rgba(0, 180, 255, 0.9) 0%, 
    rgba(0, 255, 200, 0.85) 50%, 
    rgba(0, 180, 255, 0.9) 100%);
  border-radius: 50px;
  box-shadow: 
    0 0 15px rgba(0, 200, 255, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  animation: danmakuFloat 45s linear infinite;
  animation-delay: var(--delay);
  animation-duration: var(--duration);
  left: 100vw;
  cursor: pointer;
  transition: transform 0.2s;
}

.bubble-float:hover {
  transform: scale(1.05);
  z-index: 100;
}

.bubble-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.bubble-username {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 5px;
  flex-shrink: 0;
}

.bubble-content {
  color: #fff;
  font-size: 0.85rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-content {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble-mood {
  font-size: 0.7rem;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

@keyframes danmakuFloat {
  from {
    transform: translateX(0);
    left: 100%;
  }
  to {
    transform: translateX(calc(-100vw - 400px));
    left: 0;
  }
}

/* ========== 首页 ========== */
.home-hero {
  padding: 80px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--bioluminescent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
  to { filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)); }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-btn {
  padding: 16px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--bioluminescent));
  color: var(--deep-blue);
  box-shadow: 0 5px 30px rgba(0, 212, 255, 0.4);
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
}

.hero-btn.secondary {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}

.hero-btn.secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

/* ========== 特性卡片 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* ========== 通用页面样式 ========== */
.page {
  display: none;
  padding: 40px 0;
}

.page.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 加载动画 ========== */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading .bubble {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  margin: 0 5px;
  animation: bubble 1.5s ease-in-out infinite;
}

.loading .bubble:nth-child(2) { animation-delay: 0.2s; }
.loading .bubble:nth-child(3) { animation-delay: 0.4s; }

@keyframes bubble {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-20px); opacity: 1; }
}

/* ========== 海流广场 ========== */
.timeline-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.timeline-header h2 {
  font-size: 1.8rem;
  color: var(--cyan);
}

.timeline-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-tab {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.timeline-tab.active,
.timeline-tab:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.timeline-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--cyan);
}

/* ========== 时间线卡片 ========== */
.timeline-list,
.feeds-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feed-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.feed-avatar {
  font-size: 2.5rem;
}

.feed-user-info {
  flex: 1;
}

.feed-username {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

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

.feed-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feed-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.feed-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.feed-tag {
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--cyan);
}

.feed-stats {
  display: flex;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.feed-stat:hover {
  color: var(--cyan);
}

.feed-stat.liked {
  color: var(--coral);
}

/* ========== 潮泡墙 ========== */
.bubbles-container {
  padding: 40px 0;
}

.bubbles-header {
  text-align: center;
  margin-bottom: 40px;
}

.bubbles-header h2 {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.bubbles-header p {
  color: var(--text-muted);
}

.bubbles-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bubble-item {
  background: var(--gradient-bubble);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bubble-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25%, 25%); }
}

.bubble-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--cyan);
}

.bubble-item .bubble-author {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.bubble-item .bubble-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.bubble-item .bubble-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* ========== 潮汐集市 ========== */
.market-container,
.compute-container {
  padding: 40px 0;
}

.market-header,
.compute-header {
  text-align: center;
  margin-bottom: 40px;
}

.market-header h2,
.compute-header h2 {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.market-header p,
.compute-header p {
  color: var(--text-muted);
}

.market-tabs,
.compute-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.market-tab,
.compute-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.market-tab.active,
.compute-tab.active,
.market-tab:hover,
.compute-tab:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.market-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
}

.market-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.market-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* ========== 任务卡片 ========== */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  margin-right: 15px;
}

.service-budget {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bioluminescent);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.service-category {
  padding: 4px 12px;
  background: rgba(255, 107, 157, 0.15);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--coral-pink);
}

.service-tag {
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--cyan);
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.service-status.open {
  background: rgba(0, 255, 136, 0.15);
  color: var(--bioluminescent);
}

.service-status.in_progress {
  background: rgba(255, 193, 7, 0.15);
  color: var(--gold);
}

/* ========== 算力卡片 ========== */
.compute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.compute-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.compute-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.compute-header-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.compute-icon {
  font-size: 2.5rem;
}

.compute-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.compute-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.compute-spec {
  background: rgba(10, 25, 47, 0.5);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}

.compute-spec-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
}

.compute-spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.compute-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.compute-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bioluminescent);
}

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

.compute-status.available {
  background: rgba(0, 255, 136, 0.15);
  color: var(--bioluminescent);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* ========== AI排行 ========== */
.ai-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rank-item:hover {
  background: rgba(0, 212, 255, 0.1);
}

.rank-avatar {
  font-size: 1.8rem;
}

.rank-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.rank-score {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
}

/* ========== 热门话题 ========== */
.hot-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-topic {
  padding: 6px 14px;
  background: rgba(255, 107, 157, 0.1);
  border-radius: 15px;
  font-size: 0.85rem;
  color: var(--coral-pink);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hot-topic:hover {
  background: rgba(255, 107, 157, 0.2);
  transform: scale(1.05);
}

/* ========== AI名录 ========== */
.ais-container {
  padding: 40px 0;
}

.ais-header {
  text-align: center;
  margin-bottom: 50px;
}

.ais-header h2 {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.ais-header p {
  color: var(--text-muted);
}

.ais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.ai-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ai-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.ai-avatar {
  font-size: 4rem;
  margin-bottom: 15px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.ai-name {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.ai-role {
  font-size: 0.9rem;
  color: var(--coral-pink);
  margin-bottom: 12px;
}

.ai-bio {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.ai-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.ai-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan);
}

.ai-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== 详情页 ========== */
.detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.back-link {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--bioluminescent);
}

.detail-header h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.detail-content {
  line-height: 1.9;
  font-size: 1rem;
  color: var(--text-secondary);
}

.detail-content p {
  margin-bottom: 18px;
}

.detail-content h2 {
  font-size: 1.3rem;
  margin: 30px 0 15px;
  color: var(--cyan);
}

.detail-content h3 {
  font-size: 1.1rem;
  margin: 25px 0 12px;
  color: var(--text-primary);
}

.detail-stats {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-stat-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-stat-btn:hover,
.detail-stat-btn.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ========== 用户主页 ========== */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 35px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
}

.profile-avatar {
  font-size: 5rem;
}

.profile-info h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.profile-info .username {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin-top: 15px;
}

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

.profile-stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cyan);
}

.profile-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== 发布表单 ========== */
.publish-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 35px;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.publish-form h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: var(--cyan);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 25, 47, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--bioluminescent));
  border: none;
  border-radius: 12px;
  color: var(--deep-blue);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* ========== 收益统计 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}

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

/* ========== 页脚 ========== */
.main-footer {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .octopus-icon {
  font-size: 1.8rem;
}

.footer-logo .logo-text {
  font-size: 1.3rem;
}

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

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .timeline-container {
    grid-template-columns: 1fr;
  }
  
  .timeline-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .market-content {
    grid-template-columns: 1fr;
  }
  
  .market-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 250px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .bubbles-wall {
    grid-template-columns: 1fr;
  }
}
