/* 中华养生与中国厨房 - 自定义样式 */

/* 全局样式 */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1c40f;
  --text-color: #333333;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a1a;
  --gold: #d4af37;
  --red: #c0392b;
  --green: #27ae60;
  --font-primary: 'Noto Serif SC', serif;
  --font-secondary: 'Noto Sans SC', sans-serif;
}

/* 强制重置body margin为0 */
body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
}

/* 导航栏样式 */
.main-header-menu {
  font-family: var(--font-primary);
  font-weight: 500;
}

.main-header-menu a {
  transition: color 0.3s ease;
}

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

/* 英雄区样式 */
.hero-section {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* 按钮样式 */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #c1272d;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button-secondary {
  background-color: transparent;
  border: 2px solid white;
}

.cta-button-secondary:hover {
  background-color: white;
  color: var(--secondary-color);
}

/* 特色区域 */
.features-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.feature-box {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* 课程卡片 */
.course-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  background-color: white;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.course-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.course-content {
  padding: 1.5rem;
}

.course-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.course-description {
  color: #666;
  margin-bottom: 1.5rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.course-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* 会员区域 */
.membership-section {
  padding: 5rem 0;
  background-color: var(--secondary-color);
  color: white;
}

.pricing-table {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: var(--text-color);
}

.pricing-table:hover {
  transform: translateY(-10px);
}

.pricing-header {
  padding: 2rem;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.pricing-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
}

.pricing-period {
  font-size: 1rem;
  opacity: 0.8;
}

.pricing-features {
  padding: 2rem;
  list-style: none;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-footer {
  padding: 1.5rem 2rem;
  text-align: center;
}

/* 推荐区域 */
.testimonial-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content:before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  left: -1.5rem;
  top: -2rem;
  opacity: 0.1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-title {
  font-size: 0.9rem;
  color: #666;
}

/* 页脚样式 */
.site-footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 3rem 0;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: white;
}

.social-icons {
  display: flex;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* 中国风元素 */
.chinese-pattern {
  background-image: url('/wp-content/uploads/chinese-pattern.png');
  background-repeat: repeat;
  opacity: 0.05;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.chinese-border {
  border: 2px solid var(--gold);
  position: relative;
}

.chinese-border:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--gold);
}

/* 视频播放器样式 */
.video-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(230, 57, 70, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-play-button:hover {
  background-color: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button:before {
  content: '';
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid white;
  margin-left: 5px;
}

/* 五行元素颜色 */
.element-wood {
  color: var(--green);
}

.element-fire {
  color: var(--red);
}

.element-earth {
  color: var(--gold);
}

.element-metal {
  color: #a5a5a5;
}

.element-water {
  color: #3498db;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag-new {
  background-color: var(--primary-color);
  color: white;
}

.tag-popular {
  background-color: var(--accent-color);
  color: white;
}

.tag-beginner {
  background-color: var(--green);
  color: white;
}

/* 倒计时样式 */
.countdown {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.countdown-item {
  text-align: center;
  margin: 0 1rem;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  background-color: var(--dark-bg);
  color: white;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
} 