/* ============================================
   NewsPenny 官网样式
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #C8E6C9;
  --accent: #FFC107;
  --bg-dark: #0F1923;
  --bg-card: #1A2634;
  --bg-section: #152029;
  --text-primary: #FFFFFF;
  --text-secondary: #B0BEC5;
  --text-muted: #78909C;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,25,35,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand {
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600; font-size: .85rem;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(76,175,80,.12) 0%, transparent 60%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; padding: 14px 32px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem;
  transition: all .2s; border: none; cursor: pointer;
}
.hero-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(76,175,80,.3); }

/* --- Features Grid --- */
.features { padding: 80px 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.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: var(--radius); padding: 32px;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(76,175,80,.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: .95rem; }

/* --- How It Works --- */
.how-it-works { padding: 80px 0; background: var(--bg-section); }
.how-it-works h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.step {
  text-align: center; flex: 1; min-width: 200px; max-width: 260px;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin: 0 auto 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: .9rem; }

/* --- Legal Pages --- */
.legal-page { padding: 100px 0 60px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 6px; }
.legal-page .updated { color: var(--text-muted); margin-bottom: 36px; font-size: .9rem; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 {
  font-size: 1.2rem; margin-bottom: 12px;
  color: var(--primary);
}
.legal-section p, .legal-section ul {
  color: var(--text-secondary); font-size: 1rem; line-height: 1.8;
}
.legal-section ul { padding-left: 24px; }
.legal-section li { margin-bottom: 8px; }

/* --- Account Deletion Page --- */
.delete-page { padding: 100px 0 60px; }
.delete-page .container { max-width: 560px; }
.delete-page h1 { font-size: 2rem; margin-bottom: 12px; text-align: center; }
.delete-page .subtitle {
  color: var(--text-secondary); text-align: center;
  margin-bottom: 36px; font-size: 1rem;
}
.delete-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .9rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text-secondary);
}
.form-group input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-dark);
  color: var(--text-primary); font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.warning-box {
  background: rgba(244,67,54,.1); border: 1px solid rgba(244,67,54,.3);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 24px;
}
.warning-box h4 { color: #EF5350; margin-bottom: 6px; font-size: .95rem; }
.warning-box p { color: var(--text-secondary); font-size: .85rem; }
.warning-box ul { color: var(--text-secondary); font-size: .85rem; padding-left: 20px; margin-top: 8px; }
.warning-box li { margin-bottom: 4px; }
.btn-danger {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: #F44336; color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-danger:hover { background: #D32F2F; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.form-result {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; display: none;
}
.form-result.success { display: block; background: rgba(76,175,80,.15); color: var(--primary); }
.form-result.error { display: block; background: rgba(244,67,54,.15); color: #EF5350; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { color: var(--text-muted); font-size: .85rem; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-secondary); font-size: .85rem; }
.footer-links a:hover { color: var(--text-primary); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
