:root {
  --primary-color: #e74c3c;
  --secondary-color: #3498db;
  --accent-color: #f39c12;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #2c3e50;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* 导航栏 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* 移动端菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 标题区域 */
.hero {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(52, 152, 219, 0.9));
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  animation: fadeIn 1s ease-in;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* 区块样式 */
.section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  animation: slideUp 0.6s ease-out;
}

.section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  font-size: 2rem;
}

.section h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.section p, .section li {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.section ul {
  padding-left: 2rem;
}

/* 图片展示 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.photo-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.photo-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.photo-card .caption {
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  color: var(--primary-color);
}

/* 表单样式 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  background: #2980b9;
}

/* 时间轴样式 */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s;
}

.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.timeline-time {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 联系信息 */
.contact-info {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.contact-info h3 {
  color: white;
  margin-bottom: 1rem;
}

.contact-item {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
}

/* 投票卡片 */
.vote-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.vote-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.vote-card:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.vote-card.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.vote-card input[type="radio"] {
  display: none;
}

/* 页脚 */
.footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  border-radius: 15px 15px 0 0;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* 提示消息 */
.message {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  animation: slideUp 0.3s ease-out;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

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

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

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

  .vote-options {
    grid-template-columns: 1fr;
  }
}
