/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff2442;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a:hover, .nav-links a.active {
  color: #ff2442;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
}

/* 主内容区域 */
.main-content {
  margin-top: 70px;
  min-height: calc(100vh - 70px - 200px);
}

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  background: white;
  color: #ff2442;
}

.cta-button:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.secondary-button {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid white;
}

.secondary-button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* 功能特性 */
.features {
  padding: 6rem 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 20px;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: #ff2442;
  margin-bottom: 1.5rem;
}

/* 下载页面 */
.download-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-description {
  color: #666;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.download-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.download-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  color: #ff2442;
  margin-bottom: 1.5rem;
}

.card-features {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: #666;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  background: #ff2442;
  transition: all 0.3s;
}

.download-button:hover {
  background: #e61e39;
  transform: translateY(-2px);
}

.download-button.primary {
  background: #ff2442;
}

/* 安装指南 */
.installation-guide {
  margin-top: 4rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.guide-steps {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.guide-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #ff2442;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* 认证页面 */
.auth-section {
  padding: 4rem 0;
  min-height: calc(100vh - 70px - 200px);
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: #333;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #666;
}

.error-message {
  background: #ffe5e5;
  color: #ff2442;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.form-group input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input:focus {
  border-color: #ff2442;
  outline: none;
}

.submit-button {
  background: #ff2442;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.submit-button:hover {
  background: #e61e39;
  transform: translateY(-2px);
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.auth-links a {
  color: #ff2442;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* 页脚 */
.footer {
  background: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #333;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #ff2442;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .guide-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }
}

/* 语言切换按钮样式 */
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #eee;
}

.language-switch a {
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #666;
}

.language-switch a:hover {
  background-color: #f5f5f5;
  color: #ff2442;
}

.language-switch a.active {
  background-color: #ff2442;
  color: white;
}

.language-switch span {
  color: #ddd;
  font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .language-switch {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
}

/* 错误消息样式 */
.error-message {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message i {
  font-size: 1.1rem;
}

/* 管理员页面样式 */
.admin-section {
  padding: 2rem 0;
}

.admin-header {
  margin-bottom: 2rem;
  text-align: center;
}

.admin-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button.active {
  background: #ff2442;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.action-button {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  background: #ff2442;
  color: white;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: #333;
  text-align: center;
}

.modal-content .form-group {
  margin-bottom: 1.5rem;
}

.modal-content label {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
}

.modal-content select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  color: #333;
  background-color: white;
}

.modal-content select:focus {
  border-color: #ff2442;
  outline: none;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.modal-buttons button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-buttons .submit-button {
  background: #ff2442;
  color: white;
}

.modal-buttons .submit-button:hover {
  background: #e61e39;
}

.modal-buttons .cancel-button {
  background: #f5f5f5;
  color: #666;
}

.modal-buttons .cancel-button:hover {
  background: #eee;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons button {
    width: 100%;
  }
}

.subscription-actions {
  margin-bottom: 1rem;
}

.add-subscription-btn {
  padding: 0.5rem 1rem;
  background: #ff2442;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-button.secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
} 