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

:root {
  --bg-color: #faf8f5;
  --text-primary: #4d3f3f;
  --text-secondary: #6b6b6b;
  --accent-color: #e8a87c;
  --green-accent: #7d9b76;
  --green-light: #e8f0e6;
  --green-dark: #5a7a54;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: #e0ddd8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(250, 248, 245, 0.98);
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--green-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--green-accent);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.cart-btn:hover {
  background-color: var(--green-light);
  color: var(--green-accent);
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.profile-btn:hover {
  background-color: var(--green-light);
  color: var(--green-accent);
}

.contact-hero {
  margin-top: 80px;
  padding: 60px 0 40px;
  text-align: center;
}

.contact-hero h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.contact-main {
  padding: 20px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form-section h2,
.contact-info-section h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--card-bg);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #444;
}

.contact-info-list {
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-accent);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.info-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.subscription-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.subscription-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-item {
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  transition: var(--transition);
}

.subscription-item.featured {
  border-color: var(--accent-color);
}

.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sub-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.sub-price {
  font-size: 13px;
  color: var(--text-secondary);
}

.subscription-item.featured .sub-price {
  color: var(--green-accent);
}

.sub-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.bottom-nav {
  padding: 40px 0;
  border-top: 1px solid #e8e5e0;
  background-color: var(--bg-color);
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.nav-column {
  text-decoration: none;
  color: var(--text-primary);
}

.nav-title {
  font-size: 14px;
  font-weight: 500;
  display: block;
}

footer {
  padding: 30px 0;
  background-color: #f0ede8;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-copyright a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: var(--green-accent);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--green-accent);
}

/* ========== 登录弹窗 ========== */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

.login-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.login-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

@media (max-width: 768px) {
  .header-nav {
    gap: 12px;
  }

  .header-nav a:not(.cart-btn):not(.profile-btn) {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .bottom-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
