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

:root {
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --success: #16a34a;
  --success-light: #86efac;
  --danger: #dc2626;
  --danger-light: #fca5a5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--gray-50);
}

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

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.logo-img {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  margin-top: 60px;
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #60a5fa 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* About */
.about {
  padding: 80px 0;
  background: #fff;
}

.about .container > p {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.about-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.about-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.about-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--gray-50);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.feature-item.reverse {
  flex-direction: row-reverse;
}

.feature-img {
  width: 400px;
  height: 260px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.feature-text ul {
  list-style: none;
  padding: 0;
}

.feature-text li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-600);
}

.feature-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Vote Section */
.vote-section {
  padding: 80px 0;
  background: #fff;
}

.vote-desc {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.vote-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--gray-200);
}

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

.countdown-label {
  color: var(--gray-600);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 12px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.time-unit {
  background: var(--gray-900);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  min-width: 64px;
  text-align: center;
}

.time-unit span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-unit small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.vote-progress {
  margin-bottom: 32px;
}

.progress-bar {
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  background: var(--gray-200);
  margin-bottom: 12px;
}

.progress-support {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  height: 100%;
  transition: width 0.5s ease;
  min-width: 0;
}

.progress-oppose {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  height: 100%;
  transition: width 0.5s ease;
  min-width: 0;
}

.vote-counts {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.count-support {
  color: var(--success);
  font-weight: 600;
}

.count-oppose {
  color: var(--danger);
  font-weight: 600;
}

.vote-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.vote-buttons .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1.05rem;
}

.vote-buttons img {
  width: 24px;
  height: 24px;
}

.btn-support {
  background: var(--success);
  color: #fff;
}

.btn-support:hover:not(:disabled) {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-oppose {
  background: var(--danger);
  color: #fff;
}

.btn-oppose:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

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

.vote-message {
  text-align: center;
  min-height: 24px;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.vote-message.error {
  color: var(--danger);
}

.vote-message.success {
  color: var(--success);
}

.vote-result {
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  display: none;
}

.vote-result.pass {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.vote-result.fail {
  display: block;
  background: #fef2f2;
  color: #991b1b;
}

.vote-result.pending {
  display: block;
  background: #fef9c3;
  color: #854d0e;
}

/* Footer */
footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 32px 0;
  text-align: center;
}

footer p {
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .feature-item,
  .feature-item.reverse {
    flex-direction: column;
  }

  .feature-img {
    width: 100%;
    height: 200px;
  }

  .vote-buttons {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }
}
