/* baskiefit's Health/Fitness - Global Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+SC:wght@300;400;500;700;900&display=swap');

:root {
  --font-ui: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Serif SC', 'SimSun', serif;
  --color-primary: #1a1a1a;
  --color-accent: #c8a96a;
  --color-accent-dark: #a8894f;
  --color-bg: #fafafa;
  --color-white: #ffffff;
  --color-gray: #888888;
  --color-light-gray: #e0e0e0;
  --color-dark-gray: #333333;
  --spacing-base: 25px;
  --spacing-lg: 50px;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: all 0.3s ease;
}

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

/* 全局去除超链接默认蓝色和下划线 */
a { text-decoration: none !important; color: inherit; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 所有文字元素间距至少 25px */
h1, h2, h3, h4, h5, h6, p, span, a, li, label, input, textarea, button, blockquote {
  margin-bottom: var(--spacing-base);
}
h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child,
p:last-child, span:last-child, a:last-child, li:last-child, label:last-child {
  margin-bottom: 0;
}

/* UI字体：思源黑体 */
h1, h2, h3, h4, h5, h6,
.nav-link, .btn, .lang-switch, .footer-text,
.nav-brand, .card-title, .section-tag,
.form-label, .price-tag, .service-badge {
  font-family: var(--font-ui);
}

h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: 1px; }
h2 { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.5px; }
h3 { font-size: 1.6rem; font-weight: 500; }
h4 { font-size: 1.3rem; font-weight: 500; }

/* 正文字体：思源宋体 */
p, li, blockquote, .body-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
}

/* 货币符号与数字间距 25px */
.price-tag { letter-spacing: 0; display: flex; align-items: baseline; }
.price-tag .currency { font-size: 1.2rem; color: var(--color-accent); margin-right: 25px; }
.price-tag .amount { font-size: 2rem; }
.price-tag .unit { font-size: 0.9rem; font-weight: 400; color: var(--color-gray); margin-left: 25px; }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.nav-brand {
  font-size: 1.3rem; font-weight: 700; color: var(--color-primary);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-brand .brand-accent { color: var(--color-accent); }
.nav-links { display: flex; list-style: none; align-items: center; gap: 35px; }
.nav-link {
  text-decoration: none; color: var(--color-dark-gray);
  font-size: 0.95rem; font-weight: 400;
  transition: var(--transition); position: relative; margin-bottom: 0;
}
.nav-link:hover, .nav-link.active { color: var(--color-accent); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -8px; left: 0;
  width: 100%; height: 2px; background: var(--color-accent);
}

/* 语言切换 */
.lang-switch { display: flex; align-items: center; gap: 5px; cursor: pointer; margin-bottom: 0; }
.lang-switch button {
  background: none; border: none; font-family: var(--font-ui);
  font-size: 0.85rem; color: var(--color-gray);
  cursor: pointer; padding: 4px 8px; transition: var(--transition); margin-bottom: 0;
}
.lang-switch button.active { color: var(--color-accent); font-weight: 700; }
.lang-switch .divider { color: var(--color-light-gray); margin: 0 2px; }

/* 汉堡菜单 */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.menu-toggle span { width: 25px; height: 2px; background: var(--color-primary); transition: var(--transition); margin-bottom: 0; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
  padding: var(--header-height) 20px var(--spacing-lg);
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; color: var(--color-white); padding: 0 20px; }
.hero-content h1 { color: var(--color-white); margin-bottom: 30px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-subtitle { font-family: var(--font-body); font-size: 1.3rem; margin-bottom: 40px; opacity: 0.95; }
.hero-tag {
  display: inline-block; font-family: var(--font-ui); font-size: 0.85rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 25px; padding: 8px 20px; border: 1px solid var(--color-accent); border-radius: 30px;
}

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 40px; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer; transition: var(--transition);
  border-radius: 2px; letter-spacing: 1px; margin-bottom: 0;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); border: 1px solid var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(200,169,106,0.4); }
.btn-outline { background: transparent; color: var(--color-white); border: 1px solid var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }
.btn-dark { background: var(--color-primary); color: var(--color-white); border: 1px solid var(--color-primary); }
.btn-dark:hover { background: var(--color-dark-gray); transform: translateY(-2px); }

/* SECTIONS */
.section { padding: 80px 40px; max-width: var(--max-width); margin: 0 auto; }
.section-full { padding: 80px 40px; width: 100%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; font-size: 0.8rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 25px;
}
.section-header h2 { margin-bottom: 20px; }
.section-header p { color: var(--color-gray); max-width: 600px; margin: 0 auto; }
.section-light { background: var(--color-white); }
.section-dark { background: var(--color-primary); color: var(--color-white); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.8); }

/* GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

/* CARDS */
.card {
  background: var(--color-white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06); transition: var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.card-img { width: 100%; height: 240px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 15px; }
.card-text { flex: 1; }
.card-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-light-gray); }

/* ABOUT */
.about-hero-img { width: 100%; height: 450px; overflow: hidden; border-radius: 4px; }
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-bottom: 25px; }
.info-list { list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.info-list .info-icon { color: var(--color-accent); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* GALLERY */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.gallery-item { overflow: hidden; border-radius: 4px; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }

/* VIDEO */
.video-section {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto;
  border-radius: 8px; overflow: hidden; box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}
.video-section video { width: 100%; display: block; }

/* SERVICES */
.service-card {
  background: var(--color-white); padding: 40px; border-radius: 4px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06); transition: var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.service-icon { font-size: 2.5rem; margin-bottom: 25px; display: inline-block; }
.service-badge {
  display: inline-block; font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--color-accent);
  background: rgba(200,169,106,0.1); padding: 6px 16px; border-radius: 20px;
  margin-bottom: 20px; align-self: flex-start;
}
.service-price { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--color-light-gray); }
.service-features { list-style: none; margin-top: 25px; }
.service-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem; margin-bottom: 25px;
}
.service-features li::before { content: '\2713'; color: var(--color-accent); font-weight: 700; flex-shrink: 0; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info-item {
  display: flex; align-items: center; gap: 20px; margin-bottom: 25px;
  padding: 18px 25px; background: var(--color-white);
  border: 1px solid var(--color-light-gray); border-radius: 16px;
  text-decoration: none; color: var(--color-primary); transition: var(--transition);
}
.contact-info-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(200,169,106,0.15);
  transform: translateY(-2px);
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(200,169,106,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--color-accent); flex-shrink: 0;
}
.contact-info-label {
  font-family: var(--font-ui); font-size: 0.85rem; color: var(--color-gray);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.contact-info-value { font-family: var(--font-body); font-size: 1.05rem; color: var(--color-primary); }

/* FORM */
.contact-form { background: var(--color-white); padding: 40px; border-radius: 4px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 30px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--color-dark-gray); margin-bottom: 10px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--color-light-gray); border-radius: 4px;
  background: var(--color-bg); transition: var(--transition); margin-bottom: 0;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--color-accent); background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(200,169,106,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.form-message { padding: 15px 20px; border-radius: 4px; margin-top: 20px; display: none; margin-bottom: 0; }
.form-message.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-message.error { background: #fbe9e7; color: #c62828; display: block; }

/* SOCIAL LINKS */
.social-links { display: flex; gap: 20px; margin-top: 25px; }
.social-link {
  width: 45px; height: 45px; border-radius: 50%;
  background: rgba(200,169,106,0.1); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none; transition: var(--transition); margin-bottom: 0;
}
.social-link:hover { background: var(--color-accent); color: var(--color-white); transform: translateY(-3px); }
.social-link svg, .contact-info-icon svg { display: block; }

/* FOOTER */
.footer { background: var(--color-primary); color: var(--color-white); padding: 60px 40px 30px; }
.footer-content { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.footer-brand .brand-accent { color: var(--color-accent); }
.footer-text { font-family: var(--font-body); font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: var(--transition); margin-bottom: 0; }
.footer ul li a:hover { color: var(--color-accent); }
.footer-bottom { max-width: var(--max-width); margin: 40px auto 0; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 0; }

/* BLOG SECTION */
.blog-card { background: var(--color-white); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.06); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.blog-card-img { width: 100%; height: 220px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 30px; }
.blog-date { font-family: var(--font-ui); font-size: 0.8rem; color: var(--color-accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.blog-card-body h3 { font-size: 1.3rem; margin-bottom: 15px; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-number { font-family: var(--font-ui); font-size: 3rem; font-weight: 700; color: var(--color-accent); margin-bottom: 10px; }
.stat-label { font-family: var(--font-body); font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .header { padding: 0 20px; }
  .nav-links {
    position: fixed; top: var(--header-height); left: 0; width: 100%;
    background: var(--color-white); flex-direction: column;
    padding: 30px 20px; gap: 20px; transform: translateY(-200%);
    transition: var(--transition); box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section, .section-full { padding: 50px 20px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .hero-content .hero-subtitle { font-size: 1.1rem; }
  .gallery { grid-template-columns: 1fr; }
  .about-hero-img { height: 300px; }
  .gallery-item img { height: 220px; }
  .lang-switch { margin-left: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 30px; font-size: 0.85rem; }
  .nav-brand { font-size: 1rem; }
  .contact-form { padding: 25px; }
  .service-card { padding: 25px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.8s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 1s ease forwards; }

/* === 语言切换过渡 === */
[data-i18n], [data-i18n-ph] {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lang-switching [data-i18n],
.lang-switching [data-i18n-ph] {
  opacity: 0;
  transform: translateY(-4px);
}

/* === 页面入场动画 === */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: pageEnter 0.5s ease forwards; }

/* === Hero 渐进式入场 === */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { opacity: 0; }
.hero-content > *:nth-child(1) { animation: heroEnter 0.6s ease 0.15s forwards; }
.hero-content > *:nth-child(2) { animation: heroEnter 0.7s ease 0.35s forwards; }
.hero-content > *:nth-child(3) { animation: heroEnter 0.7s ease 0.55s forwards; }
.hero-content > *:nth-child(4) { animation: heroEnter 0.7s ease 0.75s forwards; }

/* === 表单消息滑入 === */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-message.success, .form-message.error {
  animation: slideDown 0.4s ease forwards;
}

/* === 移动端菜单滑动增强 === */
.nav-links { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }

/* === 导航高亮指示器过渡 === */
.nav-link::after { transition: width 0.3s ease, opacity 0.3s ease; }

/* === 按钮按压反馈 === */
.btn:active { transform: scale(0.97); transition: transform 0.1s ease; }

/* === 卡片悬停过渡增强 === */
.card, .service-card, .blog-card, .gallery-item, .contact-info-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* === 图片缩放过渡 === */
.card-img img, .gallery-item img, .blog-card-img img {
  transition: transform 0.4s ease;
}

/* UTILITIES */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-50 { margin-top: 50px; }
.mb-50 { margin-bottom: 50px; }
.hidden { display: none; }
