﻿/* ============================================================
   颐乐源 — 全局样式表
   设计理念：温暖·专业·可信
   背景色 #fffbeb / 注册按钮 #1a4d2e / 登录按钮 #d97706
   ============================================================ */

/* ── 变量 ─────────────────────────────────────────────── */
:root {
    --bg:          #fffbeb;
    --bg-white:    #ffffff;
    --bg-warm:     #fff8e1;
    --primary:     #1a4d2e;   /* 深绿色 - 注册/主按钮 */
    --primary-hover: #153d24;
    --accent:      #d97706;   /* 暖橙色 - 登录/次按钮 */
    --accent-hover: #b45309;
    --text:        #1f2937;
    --text-light:  #6b7280;
    --text-muted:  #9ca3af;
    --border:      #e5e7eb;
    --border-warm: #fde68a;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow:      0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
    --radius:      12px;
    --radius-sm:   8px;
    --radius-full: 999px;
    --font:        -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --max-w:       1200px;
    --header-h:    64px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── 滚动条 ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── 选择文字 ────────────────────────────────────────── */
::selection { background: #fef3c7; color: var(--primary); }

/* ── 容器 ───────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── 通用标题 ────────────────────────────────────────── */
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 32px;
}
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-header .more-link {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

/* ── 卡片 ────────────────────────────────────────────── */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ── 按钮 ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ── 标签 ────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.tag-green { background: #d1fae5; color: #065f46; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-blue  { background: #dbeafe; color: #1e40af; }
.tag-red   { background: #fee2e2; color: #991b1b; }

/* ── 分割线 ─────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

/* ── 空状态 ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* ── 加载动画 ────────────────────────────────────────── */
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 遮罩 & 弹窗 ─────────────────────────────────────── */
.mask-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    display: none;
}
.mask-overlay.show { display: flex; }
.modal {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    padding: 36px;
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

/* ── 会员锁定遮罩 ────────────────────────────────────── */
.vip-lock {
    position: relative;
    overflow: hidden;
}
.vip-lock::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,251,235,0.92) 40%, rgba(255,251,235,1) 100%);
    pointer-events: none;
}
.vip-lock .lock-cta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px;
    text-align: center;
    z-index: 10;
}

/* ── 响应式断点 ─────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section-title { font-size: 22px; }
    .modal { padding: 28px 20px; }
}

/* ── 辅助类 ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.font-bold   { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex   { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── 导航容器 ─────────────────────────────────────────── */
.site-header-simple {
  background: #E5E7EB;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  position: sticky; top:0; z-index:100;
}
.header-simple-inner {
  max-width: 800px; margin:0 auto;
  padding: 12px 20px;
  display:flex; align-items:center; justify-content:space-between;
  height: auto;
}
.logo-simple { display:flex; align-items:center; gap:8px; font-size:20px; font-weight:800; color:var(--primary); }
.logo-img { height:32px; width:auto; }
.logo-text { font-size:20px; font-weight:800; }

/* 导航菜单 */
.nav-simple {
  display:flex; align-items:center; gap:4px;
}
.nav-simple a, .nav-simple .dropdown-trigger {
  font-size:15px; color:#333; padding:6px 12px; border-radius:6px;
  transition:background 0.3s; text-decoration:none;
}
.nav-simple a:hover, .nav-simple .dropdown:hover .dropdown-trigger {
  background:rgba(26,77,46,0.08); color:#2a6e3f;
}
.dropdown { position:relative; }
.dropdown-trigger { cursor:pointer; display:flex; align-items:center; gap:4px; }
.dropdown-trigger::after { content:'▾'; font-size:12px; margin-left:2px; }
.dropdown-menu {
  display:none; position:absolute; top:100%; left:0;
  background:#fff; border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.15); min-width:160px; padding:8px 0; z-index:200;
}
.dropdown:hover .dropdown-menu { display:block; }
.dropdown-menu a { display:block; padding:10px 20px; font-size:14px; color:#333; }
.dropdown-menu a:hover { background:#f9f7f2; color:#2a6e3f; }

.nav-spacer { width:16px; }

/* 注册按钮 — 黄色 */
.nav-register {
  padding:8px 24px !important;
  background:#fbbf24 !important;
  color:#1f2937 !important;
  font-weight:700 !important;
  border-radius:8px !important;
  border:none !important;
  font-size:15px !important;
  transition:all 0.2s !important;
}
.nav-register:hover { background:#f59e0b !important; transform:translateY(-1px); }

/* 登录按钮 — 深绿色 */
.nav-login {
  padding:8px 24px !important;
  background:#1a4d2e !important;
  color:#fff !important;
  font-weight:700 !important;
  border-radius:8px !important;
  border:none !important;
  font-size:15px !important;
  transition:all 0.2s !important;
}
.nav-login:hover { background:#2d6a4f !important; transform:translateY(-1px); }

.nav-members { color:var(--accent) !important; font-weight:600 !important; }

/* ── 底部 ─────────────────────────────────────────────── */
.site-footer {
    background: #E61AFA;
      color: #374151;
    padding: 24px 0;
    margin-top: 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.footer-line { font-size: 13px; line-height: 2; margin: 0; }
.footer-line a { color: #4b5563; transition: color 0.2s; }
.footer-line a:hover { color: #1f2937; }
.footer-line.disclaimer { color: #6b7280; font-size: 12px; max-width: 720px; margin: 8px auto; }
.footer-line.icp { color: #6b7280; font-size: 12px; }
.footer-line.icp a { color: #6b7280; }

.footer-seo { margin-bottom: 20px; }
.footer-seo-title { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 10px; }
.footer-seo-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-seo-links a { font-size: 12px; color: #4b5563; padding: 4px 10px; border: 1px solid rgba(0,0,0,0.15); border-radius: 6px; transition: all 0.2s; }
.footer-seo-links a:hover { color: #1f2937; border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.05); }
.footer-links-row { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }
.footer-links-row a { font-size: 13px; color: #9ca3af; }

/* 移动端导航 */
.mobile-menu-btn { display:none; background:none; border:none; font-size:24px; cursor:pointer; padding:8px; }
.mobile-nav { display:none; position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--border); box-shadow:0 4px 12px rgba(0,0,0,0.1); flex-direction:column; padding:12px 0; z-index:99; }
.mobile-nav.show { display:flex; }
.mobile-nav a { padding:12px 24px; font-size:15px; color:var(--text); border-bottom:1px solid #f3f4f6; }
.mobile-nav a:hover { background:rgba(26,77,46,0.06); color:var(--primary); }

/* 响应式导航 */
@media (max-width:768px) {
  .header-simple-inner { padding:0 16px; height:56px; }
  .nav-simple { display:none; }
  .mobile-menu-btn { display:block; }
  .logo-text { font-size:17px; }
}

