/* ==========================================================================
   Fit 2 Learn (适学通) 官方网站 - 核心样式系统 (v3.0 本土化优雅版)
   设计特点：地道专业中文 + 温暖关怀感 + 右上角中英双语切换 + 纯国内秒开优化
   ========================================================================== */

:root {
  --primary: #1f242d;
  --primary-light: #3b3b3b;
  --primary-dark: #14171d;
  --accent: #e71174;
  --accent-hover: #c60d63;
  --accent-light: #fdf2f7;
  --teal: #38aa32;
  --teal-hover: #2d8e28;
  --teal-light: #eef9ee;
  --gold: #e71174;
  
  --text-main: #3b3b3b;
  --text-muted: #5e5e5e;
  --text-light: #8a8a8a;
  
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #e1dfd9;
  --bg-stone: #e1dfd9;
  
  --border-color: #dcd9d0;
  --border-light: #eceae4;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.13);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置与基准 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 顶部公告条 */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-bar-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: bold;
}
.top-bar a:hover {
  color: #fff;
}

/* 语言切换胶囊按钮 */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 2px 6px;
  font-size: 0.8rem;
  gap: 4px;
}
.lang-switcher a {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  color: #cbd5e1;
  font-weight: 500;
}
.lang-switcher a.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.lang-switcher a:hover:not(.active) {
  color: #fff;
}

/* 导航栏 Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo .logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -1px;
}
.brand-logo .logo-text {
  display: flex;
  flex-direction: column;
}
.brand-logo .logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.brand-logo .logo-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--teal);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* 下拉菜单 */
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #fff;
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.92rem;
  color: var(--text-main);
}
.dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--teal);
  padding-left: 24px;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(56, 170, 50, 0.28);
}
.btn-primary:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 170, 50, 0.38);
}
.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(56, 170, 50, 0.25);
}
.btn-teal:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 170, 50, 0.35);
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: var(--border-color);
}
.btn-white:hover {
  background: #f7f6f2;
  border-color: #c5c1b7;
}
.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* 移动端汉堡按钮 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* 通用区块 Section */
.section {
  padding: 80px 0;
}
.section-alt {
  background-color: var(--bg-alt);
}
.section-dark {
  background: linear-gradient(180deg, #eae8e3 0%, var(--bg-stone) 100%);
  color: var(--text-main);
}
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}
.section-tag {
  display: inline-block;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-dark .section-tag {
  color: var(--accent);
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #000000;
}
.section-dark .section-title {
  color: #000000;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.section-dark .section-subtitle {
  color: var(--text-main);
}

/* 网格系统与卡片 Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 35px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover::before {
  opacity: 1;
}
.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}
.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.35;
}
.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
}
.card-link:hover {
  color: var(--primary);
  gap: 10px;
}

/* 团队与专家专栏 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}
.founder-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 280px;
  transition: var(--transition);
}
.founder-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.founder-photo {
  position: relative;
  background: var(--bg-stone);
  padding: 0;
  overflow: hidden;
  min-height: 260px;
}
.founder-photo img.founder-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.5s ease;
}
.founder-card:hover .founder-portrait {
  transform: scale(1.03);
}
.founder-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.founder-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.founder-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.founder-role {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.founder-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 见证卡片 Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--teal);
  margin-bottom: 25px;
}
.testimonial-quote {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.85;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-role {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

/* 表单组件 Form */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(55, 172, 50, 0.16);
}
textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* 国内特色板块高亮框 */
.china-highlight-box {
  background: linear-gradient(135deg, #f3fbf3 0%, #fdf2f7 100%);
  border: 2px solid #d5ebd4;
  border-radius: var(--radius-lg);
  padding: 35px;
}
.china-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}
.qr-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.qr-img {
  width: 140px;
  height: 140px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 页脚 Footer */
.site-footer {
  background: var(--bg-stone);
  color: var(--text-main);
  padding: 60px 0 30px 0;
  font-size: 0.92rem;
  border-top: 1px solid #d1cec5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col-title {
  color: #000000;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-main);
}
.footer-links a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #cfccc3;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 浮动微信客服按钮 */
.floating-wechat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
  cursor: pointer;
  transition: var(--transition);
}
.floating-btn:hover {
  transform: scale(1.1);
}
.floating-qr-popover {
  position: absolute;
  bottom: 66px;
  right: 0;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  width: 200px;
  display: none;
}
.floating-wechat::after {
  content: '';
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 60px;
  height: 14px;
}
.floating-wechat:hover .floating-qr-popover,
.floating-wechat.open .floating-qr-popover {
  display: block;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .founder-card {
    grid-template-columns: 1fr;
  }
  .founder-photo {
    height: 300px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brand-logo .logo-img {
    height: 28px;
  }
  .top-bar {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .china-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
