/* 星辰云盘 - StarCloud Drive */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --primary-bg: #eef2ff;
  --accent: #06b6d4;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar-inner {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
  letter-spacing: -.3px;
}
.navbar-logo .logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
}
.navbar-links { display: flex; gap: 32px; align-items: center; }
.navbar-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.navbar-links a:hover { color: var(--primary); }
.navbar-actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  line-height: 1.5;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 3px rgba(79,70,229,.25);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-bg); }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 5px 14px; font-size: 13px; }

/* Hero */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,70,229,.06) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: 48px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 32px;
  position: relative;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; position: relative; }

/* Sections */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px; font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.section-title p {
  font-size: 15px; color: var(--text-muted);
}

/* Features Grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .2s;
}
.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 46px; height: 46px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.3px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all .2s;
  position: relative;
}
.plan-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.08);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 20px;
  letter-spacing: .5px;
}
.plan-card h3 { font-size: 20px; margin-bottom: 4px; }
.plan-price { font-size: 42px; font-weight: 800; margin: 12px 0 4px; letter-spacing: -1px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.plan-features {
  list-style: none; text-align: left;
  margin-bottom: 24px;
}
.plan-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
}
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 13px; }
.plan-card .btn { width: 100%; justify-content: center; }

/* Stats Bar */
.stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  display: flex; justify-content: space-around;
  max-width: 900px; margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Footer */
.footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: #94a3b8; font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid #334155;
  text-align: center; font-size: 12px; color: #64748b;
}

/* Login / Dashboard pages */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg-alt);
}
.auth-card {
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 { font-size: 24px; margin-bottom: 4px; }
.auth-card .subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-secondary); }
.form-group input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; outline: none; transition: border-color .15s;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 22px; }
.form-options label { display: flex; align-items: center; gap: 5px; color: var(--text-muted); cursor: pointer; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-footer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* Dashboard */
.dashboard { padding-top: 80px; }
.dash-header {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 16px 24px; position: fixed; top: 64px; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; gap: 16px;
}
.dash-content { max-width: 1200px; margin: 0 auto; padding: 80px 24px 40px; }

/* File Table */
.file-toolbar {
  display: flex; gap: 12px; align-items: center; margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-box {
  flex: 1; min-width: 200px; max-width: 360px;
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px; background: var(--bg);
}
.search-box input { border: none; outline: none; font-size: 14px; flex: 1; background: transparent; }
.file-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.file-table table { width: 100%; border-collapse: collapse; }
.file-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
  padding: 12px 20px; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.file-table td {
  padding: 14px 20px; font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}
.file-table tr:last-child td { border-bottom: none; }
.file-table tr:hover td { background: var(--primary-bg); }
.file-name { display: flex; align-items: center; gap: 10px; }
.file-icon { font-size: 20px; }
.file-meta { font-size: 13px; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 14px; margin-bottom: 16px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
  margin: 24px 0;
  transition: all .2s;
  cursor: pointer;
  color: var(--text-muted);
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-bg); }
.upload-zone .icon { font-size: 40px; margin-bottom: 10px; }

/* Storage bar */
.storage-info { margin: 20px 0; }
.storage-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.storage-bar-bg { height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.storage-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width .3s; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .features, .pricing-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .navbar-links { display: none; }
}
