/*
Theme Name: TG Shop 爱心商店
Theme URI: https://tgshop.local
Author: devops
Description: UNICEF 风格公益商城主题，前台复刻静态设计，商品接入 WooCommerce。
Version: 1.0.0
Text Domain: tgshop
Requires Plugins: woocommerce
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { font-family: "PingFang SC", "Microsoft YaHei", "Sarabun", "Noto Sans Thai", sans-serif; color: #222; background: #fff; }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }

  :root {
    --unicef-blue: #1CABE2;
    --unicef-dark: #00558C;
    --unicef-yellow: #FFC20E;
    --gray-50: #f7f9fb;
    --gray-100: #eef2f5;
    --gray-300: #cdd6dd;
    --gray-600: #5a6770;
    --gray-800: #2a3340;
  }

  /* ===== Top bar ===== */
  .topbar {
    background: var(--unicef-dark);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 101;
  }
  .topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .topbar .links a { margin-right: 16px; opacity: 0.85; }
  .topbar .links a:hover { opacity: 1; }
  .lang-switch {
    display: flex; gap: 4px; align-items: center;
  }
  /* 自定义语言选择器：按钮 + 弹出菜单（替代原生 select，移动端弹出位置可控） */
  .lang-picker { position: relative; display: inline-flex; }
  .lang-picker-btn {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    font-family: inherit;
    outline: none; cursor: pointer;
    transition: border-color 0.15s;
    line-height: 1.5;
  }
  /* topbar（深蓝底）：白字 + 半透明白边 + 白色箭头 */
  .lang-switch .lang-picker-btn {
    color: #fff;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 3px 26px 3px 10px;
    border-radius: 14px;
    font-size: 12px;
  }
  .lang-switch .lang-picker-btn:hover,
  .lang-switch .lang-picker-btn:focus { border-color: var(--unicef-yellow); }
  /* 抽屉（白底）：深色字 + 灰边框 + 灰色箭头 */
  .drawer-lang .lang-picker-btn {
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6770' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--gray-300);
    padding: 5px 28px 5px 12px;
    border-radius: 14px;
    font-size: 13px;
  }
  .drawer-lang .lang-picker-btn:hover,
  .drawer-lang .lang-picker-btn:focus { border-color: var(--unicef-blue); }
  /* 弹出菜单：白底深字，定位在按钮下方（抽屉内改为向上，避免被滚动区裁剪） */
  .lang-picker-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 330;
    min-width: 132px;
    background: #fff; border: 1px solid var(--gray-100); border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,85,140,0.16);
    display: none; flex-direction: column; padding: 5px;
  }
  .lang-picker-menu.show { display: flex; }
  .lang-picker-menu button {
    padding: 9px 14px; border-radius: 8px;
    font-size: 13px; color: #333; text-align: left;
    background: none; cursor: pointer; white-space: nowrap;
  }
  .lang-picker-menu button:hover { background: var(--gray-50); }
  .lang-picker-menu button.active { color: var(--unicef-blue); font-weight: 600; background: rgba(28,171,226,0.08); }
  .drawer-lang .lang-picker-menu { top: auto; bottom: calc(100% + 6px); }

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

  /* ===== Header ===== */
  .header { background: #fff; border-bottom: 1px solid var(--gray-100); position: sticky; top: 30px; z-index: 100; }
  .header .container { display: flex; align-items: center; padding: 16px 20px; gap: 30px; }
  .logo { display: flex; align-items: center; gap: 12px; }
  .logo svg { width: 46px; height: 46px; }
  .logo .brand-text { line-height: 1.2; }
  .logo .brand-text .zh { font-size: 16px; font-weight: 700; color: var(--unicef-dark); }
  .logo .brand-text .en { font-size: 11px; color: var(--gray-600); letter-spacing: 0.5px; }

  .nav { display: flex; gap: 28px; flex: 1; }
  .nav a { font-size: 15px; color: #333; padding: 8px 0; border-bottom: 2px solid transparent; transition: 0.2s; }
  .nav a:hover, .nav a.active { color: var(--unicef-blue); border-color: var(--unicef-blue); }

  .header-actions { display: flex; align-items: center; gap: 14px; }
  .search-box {
    display: flex; align-items: center;
    background: var(--gray-100);
    border-radius: 22px;
    padding: 6px 14px;
    width: 220px;
  }
  .search-box input {
    border: none; background: none; outline: none;
    flex: 1; font-size: 13px;
  }
  .search-box .icon { color: var(--gray-600); font-size: 14px; }
  .icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); color: var(--unicef-dark);
    position: relative; font-size: 16px;
  }
  .btn-auth {
    padding: 7px 16px; border-radius: 18px;
    font-size: 13px; font-weight: 600;
    transition: 0.15s;
  }
  .btn-login {
    color: var(--unicef-dark);
    border: 1.5px solid var(--unicef-dark);
    background: #fff;
  }
  .btn-login:hover { background: var(--unicef-dark); color: #fff; }
  .btn-register {
    color: #fff;
    background: var(--unicef-blue);
    border: 1.5px solid var(--unicef-blue);
  }
  .btn-register:hover { background: var(--unicef-dark); border-color: var(--unicef-dark); }
  #auth-buttons { display: flex; gap: 8px; }
  .user-pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--gray-100); border-radius: 22px;
    padding: 4px 6px 4px 4px;
  }
  .user-pill .up-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #1CABE2, #00558C); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
  }
  .user-pill .up-name { font-size: 13px; font-weight: 600; color: var(--unicef-dark); }
  .user-pill .up-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .user-pill .up-link:hover .up-name { color: var(--unicef-blue); }
  .user-pill .up-logout {
    font-size: 12px; color: var(--gray-600);
    padding: 4px 10px; border-radius: 14px;
  }
  .user-pill .up-logout:hover { background: rgba(0,0,0,0.06); color: var(--unicef-dark); }
  .icon-btn .badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--unicef-yellow); color: var(--unicef-dark);
    font-size: 10px; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }

  /* ===== Hero ===== */
  .hero {
    background: linear-gradient(135deg, #1CABE2 0%, #00558C 100%);
    color: #fff; padding: 70px 0; position: relative; overflow: hidden;
    min-height: calc(100vh - 110px);
    display: flex; align-items: center;
  }
  .hero > .container { width: 100%; }
  .hero::before {
    content: ""; position: absolute; right: -100px; top: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
  }
  .hero::after {
    content: ""; position: absolute; left: 20%; bottom: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,194,14,0.15);
  }
  .hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
  .hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 20px; font-weight: 700; }
  .hero .subtitle { font-size: 17px; opacity: 0.92; margin-bottom: 30px; line-height: 1.7; }
  .hero .cta-group { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn {
    padding: 14px 32px; border-radius: 28px;
    font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
  .btn-primary { background: var(--unicef-yellow); color: var(--unicef-dark); }
  .btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
  .btn-donate { background: #E2231A; color: #fff; }

  .hero-illust {
    background: rgba(255,255,255,0.12);
    border-radius: 16px; padding: 30px;
    backdrop-filter: blur(10px);
  }
  .hero-illust .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-illust .stat {
    background: rgba(255,255,255,0.15);
    border-radius: 12px; padding: 20px; text-align: center;
  }
  .hero-illust .stat .num { font-size: 32px; font-weight: 700; color: var(--unicef-yellow); }
  .hero-illust .stat .label { font-size: 13px; opacity: 0.9; margin-top: 4px; }
  .hero-illust .progress-wrap { margin-top: 22px; }
  .hero-illust .progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
  .hero-illust .progress-bar { height: 10px; background: rgba(255,255,255,0.2); border-radius: 5px; overflow: hidden; }
  .hero-illust .progress-fill { height: 100%; width: 73%; background: var(--unicef-yellow); border-radius: 5px; }

  /* ===== Notice banner ===== */
  .notice {
    background: #FFF9E6; border-left: 4px solid var(--unicef-yellow);
    padding: 14px 20px; margin: 30px auto; max-width: 1160px;
    font-size: 14px; color: #6b5a00;
    display: flex; align-items: center; gap: 12px;
  }

  /* ===== Section heading ===== */
  section.block {
    padding: 60px 0;
    scroll-margin-top: 110px;
    min-height: calc(100vh - 110px);
    display: flex; align-items: center;
  }
  section.block > .container { width: 100%; }
  html { scroll-behavior: smooth; }
  .section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
  .section-head h2 { font-size: 28px; color: var(--unicef-dark); }
  .section-head .sub { color: var(--gray-600); font-size: 14px; margin-top: 6px; }
  .section-head .more { color: var(--unicef-blue); font-size: 14px; }

  /* ===== Category grid ===== */
  .cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .cat-card {
    background: var(--gray-50); border-radius: 14px; padding: 24px;
    text-align: center; transition: 0.2s; cursor: pointer;
  }
  .cat-card:hover { background: var(--unicef-blue); color: #fff; transform: translateY(-4px); }
  .cat-card .ico { font-size: 36px; margin-bottom: 10px; }
  .cat-card .name { font-size: 15px; font-weight: 600; }
  .cat-card .desc { font-size: 12px; opacity: 0.7; margin-top: 4px; }

  /* ===== Product grid ===== */
  .prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .prod-card {
    background: #fff; border: 1px solid var(--gray-100);
    border-radius: 14px; overflow: hidden;
    transition: 0.2s; display: flex; flex-direction: column;
  }
  .prod-card:hover { box-shadow: 0 12px 28px rgba(0, 85, 140, 0.12); transform: translateY(-4px); }
  .prod-img {
    aspect-ratio: 1; background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .prod-img .placeholder { font-size: 70px; }
  .prod-tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--unicef-yellow); color: var(--unicef-dark);
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 12px;
  }
  .prod-tag.donate { background: #E2231A; color: #fff; }
  .prod-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
  .prod-info .name { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; min-height: 42px; }
  .prod-info .desc { font-size: 12px; color: var(--gray-600); margin-bottom: 12px; line-height: 1.5; }
  .prod-info .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
  .prod-info .price { font-size: 20px; font-weight: 700; color: #E2231A; }
  .prod-info .orig { font-size: 12px; color: var(--gray-600); text-decoration: line-through; }
  .prod-actions { display: flex; gap: 8px; margin-top: auto; }
  .btn-sm {
    flex: 1; padding: 10px 0; border-radius: 22px;
    font-size: 13px; font-weight: 600; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: 0.15s;
  }
  .btn-buy { background: var(--unicef-blue); color: #fff; }
  .btn-buy:hover { background: var(--unicef-dark); }
  .btn-donate-sm { background: #fff; color: #E2231A; border: 1.5px solid #E2231A; }
  .btn-donate-sm:hover { background: #E2231A; color: #fff; }

  /* ===== Campaign banner ===== */
  .campaign {
    background: linear-gradient(90deg, #FFC20E 0%, #FF9800 100%);
    border-radius: 18px; padding: 40px;
    display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: center;
    margin: 20px;
  }
  .campaign h3 { font-size: 26px; color: var(--unicef-dark); margin-bottom: 10px; }
  .campaign p { color: #6b4500; line-height: 1.7; margin-bottom: 16px; }

  /* ===== Member ===== */
  .member-wrap {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px;
  }
  .member-card {
    background: linear-gradient(135deg, #1CABE2 0%, #00558C 100%);
    color: #fff; border-radius: 18px; padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,85,140,0.18);
  }
  .member-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.3);
  }
  .member-card h3 { font-size: 22px; margin-bottom: 8px; }
  .member-tip { font-size: 13px; opacity: 0.9; margin-bottom: 24px; line-height: 1.6; }
  .member-actions { display: flex; gap: 12px; }
  .btn-member {
    flex: 1; padding: 12px 0; border-radius: 24px;
    font-size: 15px; font-weight: 600;
    transition: 0.15s;
  }
  .btn-login-lg { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid #fff; }
  .btn-login-lg:hover { background: #fff; color: var(--unicef-dark); }
  .btn-register-lg { background: var(--unicef-yellow); color: var(--unicef-dark); }
  .btn-register-lg:hover { background: #ffb800; }

  .profile-card {
    background: linear-gradient(135deg, #1CABE2 0%, #00558C 100%);
    color: #fff; border-radius: 18px; padding: 30px;
    box-shadow: 0 10px 30px rgba(0,85,140,0.18);
  }
  .profile-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  }
  .profile-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
  }
  .profile-head h3 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
  .vip-badge {
    display: inline-block;
    background: var(--unicef-yellow); color: var(--unicef-dark);
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 12px;
  }
  .profile-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    margin-bottom: 22px;
  }
  .profile-stat {
    background: rgba(255,255,255,0.12);
    border-radius: 12px; padding: 16px 10px; text-align: center;
  }
  .profile-stat .num { font-size: 22px; font-weight: 700; color: var(--unicef-yellow); }
  .profile-stat .lbl { font-size: 12px; opacity: 0.92; margin-top: 4px; }
  .profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .profile-card .profile-actions { margin-top: 16px; }
    /* 会员中心 VIP 升级横幅里的按钮：复用 apply-btn 但改为紧凑胶囊，避免被卡底全宽样式挤成圆团 */
    .tg-vip-upgrade .apply-btn { margin-top: 0; padding: 10px 18px; width: auto; white-space: nowrap; }
  .profile-actions button {
    flex: 1; min-width: 80px;
    padding: 10px 0; border-radius: 22px;
    font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,0.15); color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: 0.15s;
  }
  .profile-actions button:hover { background: #fff; color: var(--unicef-dark); }

  /* 我的天使卡（会员蓝卡内子区块，随卡白字） */
  .tg-bill-card {
    margin-top: 14px; margin-bottom: 18px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
  }
  .tg-bill-title { font-weight: 700; margin-bottom: 8px; }
  .tg-bill-num {
    font-size: 16px; font-weight: 700; letter-spacing: 2px;
    color: var(--unicef-yellow); margin: 4px 0 10px;
  }
  /* 卡面明细：默认掩码，眼睛按钮切换明文 */
  .tg-bill-detail { position: relative; padding-right: 40px; }
  .tg-bill-eye {
    position: absolute; top: 0; right: 0;
    background: rgba(255,255,255,0.15); border: none; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 16px; line-height: 1; transition: 0.15s;
  }
  .tg-bill-eye:hover { background: rgba(255,255,255,0.3); }
  .tg-bill-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
  .tg-bill-meta i { font-style: normal; font-size: 11px; opacity: 0.75; display: block; }
  .tg-bill-meta b { font-size: 14px; letter-spacing: 1px; }
  .tg-bill-note { font-size: 13px; opacity: 0.92; margin-bottom: 12px; }
  .tg-bill-note.err { color: #ffd7d7; opacity: 1; }
  /* 开通区块（蓝卡内）：深灰标签/紧凑负边距在蓝底上不可读，改随卡白字并拉开间距 */
  .tg-bill-card .tg-field-label {
    color: rgba(255,255,255,0.85); font-size: 12px;
    margin: 0 0 6px; letter-spacing: 0.3px;
  }
  .tg-bill-card .auth-input {
    max-width: 240px; margin: 0 0 12px; display: block;
    border: none; border-radius: 10px; padding: 11px 14px;
    background: #fff; color: var(--unicef-dark); font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,40,70,0.18);
  }
  .tg-bill-consent {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; line-height: 1.6; opacity: 0.92;
    margin: 0 0 14px; cursor: pointer;
  }
  .tg-bill-consent input { margin-top: 3px; flex: none; }
  .tg-bill-btn {
    display: inline-block; padding: 10px 24px; border-radius: 22px;
    background: var(--unicef-yellow); color: var(--unicef-dark);
    font-size: 13px; font-weight: 700; text-decoration: none;
    border: none; cursor: pointer; transition: 0.15s;
  }
  .tg-bill-btn:hover { background: #ffb800; color: var(--unicef-dark); }
  
    /* BILL 数据一览：状态徽章（真实语义色，浅底深字保 WCAG AA） */
    .tg-badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
    .tg-badge-ok { background: #e6f4ea; color: #1e7e34; }
    .tg-badge-warn { background: #fdf6e3; color: #8a6d1a; }
    .tg-badge-err { background: #fdecea; color: #b3261e; }
    .tg-overview-refresh:hover { background: #f0f6fb; }
    .tg-overview-refresh:active { transform: scale(0.97); }

  .member-benefits {
    background: #fff; border-radius: 18px; padding: 30px;
    box-shadow: 0 6px 16px rgba(0,85,140,0.06);
  }
  .member-benefits h3 {
    font-size: 18px; color: var(--unicef-dark); margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 2px solid var(--gray-100);
  }
  .benefit-item {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px dashed var(--gray-100);
    align-items: center;
  }
  .benefit-item:last-child { border-bottom: none; }
  .benefit-ico {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
  }
  .benefit-name { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 4px; }
  .benefit-desc { font-size: 12px; color: var(--gray-600); line-height: 1.5; }

  /* ===== Auth modal ===== */
  .auth-tabs {
    display: flex; border-bottom: 2px solid var(--gray-100);
    margin-bottom: 20px;
  }
  .auth-tab {
    flex: 1; padding: 12px 0;
    font-size: 15px; font-weight: 600;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; cursor: pointer;
  }
  .auth-tab.active { color: var(--unicef-blue); border-color: var(--unicef-blue); }
  .auth-form { display: flex; flex-direction: column; gap: 12px; }
  .auth-input {
    padding: 12px 14px; border: 1px solid var(--gray-300);
    border-radius: 10px; font-size: 14px; outline: none;
    font-family: inherit;
  }
  .auth-input:focus { border-color: var(--unicef-blue); }
  .auth-input.error { border-color: #E2231A; background: #fff5f5; }
  .auth-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--gray-600); margin: 4px 0;
  }
  .auth-row a { color: var(--unicef-blue); }
  .btn-auth-submit {
    background: var(--unicef-blue); color: #fff;
    padding: 13px 0; border-radius: 24px;
    font-size: 15px; font-weight: 600;
    margin-top: 8px;
    transition: 0.15s;
  }
  .btn-auth-submit:hover { background: var(--unicef-dark); }

  /* ===== Report ===== */
  .report-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px;
  }
  .report-stat {
    background: #fff; border-radius: 14px; padding: 24px; text-align: center;
    box-shadow: 0 4px 12px rgba(0,85,140,0.06);
    transition: 0.2s;
  }
  .report-stat:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,85,140,0.12); }
  .report-stat .ico { font-size: 40px; margin-bottom: 8px; }
  .report-stat .num { font-size: 28px; font-weight: 700; color: var(--unicef-dark); }
  .report-stat .label { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

  .report-card {
    background: #fff; border-radius: 16px; padding: 30px;
    box-shadow: 0 6px 16px rgba(0,85,140,0.06);
    margin-bottom: 30px;
  }
  .report-card-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
  }
  .report-card-head h3 { font-size: 20px; color: var(--unicef-dark); }
  .report-period {
    background: var(--gray-100); color: var(--gray-600);
    padding: 4px 12px; border-radius: 12px; font-size: 12px;
  }
  .report-bars { display: flex; flex-direction: column; gap: 14px; }
  .bar-row {
    display: grid; grid-template-columns: 160px 1fr 50px; gap: 14px; align-items: center;
  }
  .bar-label { font-size: 14px; color: #444; }
  .bar-track { height: 10px; background: var(--gray-100); border-radius: 5px; overflow: hidden; }
  .bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
  .bar-val { font-size: 13px; font-weight: 700; color: var(--unicef-dark); text-align: right; }

  .report-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .story-card {
    background: #fff; border-radius: 14px; padding: 20px;
    display: flex; gap: 14px;
    box-shadow: 0 4px 12px rgba(0,85,140,0.06);
    transition: 0.2s;
  }
  .story-card:hover { transform: translateY(-3px); }
  .story-img {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #1CABE2, #FFC20E);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; flex-shrink: 0;
  }
  .story-body h4 { font-size: 14px; color: var(--unicef-dark); margin-bottom: 6px; }
  .story-body p { font-size: 12px; color: var(--gray-600); line-height: 1.6; }

  /* ===== Address form ===== */
  .addr-block {
    background: #f0f9ff;
    border-radius: 12px; padding: 16px; margin-bottom: 18px;
    border: 1px dashed var(--unicef-blue);
  }
  .addr-block .title {
    font-size: 14px; font-weight: 600; color: var(--unicef-dark);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
  }
  .addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .addr-input {
    padding: 10px 12px; border: 1px solid var(--gray-300);
    border-radius: 8px; font-size: 13px; outline: none;
    font-family: inherit; width: 100%;
  }
  .addr-input:focus { border-color: var(--unicef-blue); }
  .addr-input.full { grid-column: span 2; }
  .addr-input.error { border-color: #E2231A; background: #fff5f5; }

  /* ===== Footer ===== */
  footer {
    background: var(--unicef-dark); color: #fff; padding: 50px 0 20px; margin-top: 60px;
  }
  footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
  footer h4 { font-size: 15px; margin-bottom: 16px; color: var(--unicef-yellow); }
  footer ul { list-style: none; }
  footer ul li { margin-bottom: 10px; font-size: 13px; opacity: 0.85; }
  footer ul li:hover { opacity: 1; cursor: pointer; }
  footer .intro p { font-size: 13px; opacity: 0.85; line-height: 1.7; margin-bottom: 14px; }
  footer .socials { display: flex; gap: 10px; }
  footer .socials a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
  }
  footer .socials a:hover { background: var(--unicef-yellow); color: var(--unicef-dark); }
  footer .bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 12px; opacity: 0.7; }

  /* ===== Modal ===== */
  .modal-mask {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
  }
  .modal-mask.show { display: flex; }
  .modal {
    background: #fff; border-radius: 18px;
    max-width: 480px; width: 100%;
    overflow: hidden;
    animation: pop 0.25s ease;
  }
  /* 爱心义拍 iframe 弹窗：加宽 + 自适应高度 */
  .modal.yipai-modal {
    max-width: 960px;
    width: 96vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  .yipai-body {
    flex: 1;
    min-height: 0;
    padding: 0;
  }
  .yipai-body iframe {
    width: 100%;
    height: 70vh;
    max-height: calc(90vh - 80px);
    border: 0;
    display: block;
  }
  @keyframes pop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .modal-head {
    background: linear-gradient(135deg, #1CABE2 0%, #00558C 100%);
    color: #fff; padding: 24px; position: relative;
  }
  .modal-head h3 { font-size: 22px; margin-bottom: 4px; }
  .modal-head .sub { font-size: 13px; opacity: 0.9; }
  .modal-close {
    position: absolute; top: 16px; right: 16px;
    color: #fff; font-size: 22px; opacity: 0.85;
  }
  .modal-body { padding: 24px; }
  .modal-body .item-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px; background: var(--gray-50); border-radius: 12px;
    margin-bottom: 18px;
  }
  .modal-body .item-row .ico { font-size: 36px; }
  .modal-body .item-row .info { flex: 1; }
  .modal-body .item-row .info .n { font-size: 14px; font-weight: 600; }
  .modal-body .item-row .info .p { font-size: 13px; color: #E2231A; font-weight: 700; }
  .donate-block { background: #FFF9E6; border-radius: 12px; padding: 16px; margin-bottom: 18px; }
  .donate-block .title { font-size: 14px; font-weight: 600; color: #6b5a00; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
  .donate-block .desc { font-size: 12px; color: #8a7000; margin-bottom: 12px; line-height: 1.6; }
  .donate-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .donate-opt {
    padding: 10px 0; border: 1.5px solid var(--gray-300);
    border-radius: 10px; text-align: center;
    font-size: 14px; font-weight: 600; color: #555;
    transition: 0.15s;
  }
  .donate-opt:hover, .donate-opt.active {
    border-color: #E2231A; background: #E2231A; color: #fff;
  }
  .donate-custom {
    margin-top: 8px;
    width: 100%; padding: 10px; border: 1.5px solid var(--gray-300);
    border-radius: 10px; font-size: 14px; outline: none;
  }
  .donate-custom:focus { border-color: var(--unicef-blue); }
  .total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-top: 1px dashed var(--gray-300);
    font-size: 15px; margin-bottom: 14px;
  }
  .total-row .amount { font-size: 22px; color: #E2231A; font-weight: 700; }
  .modal-actions { display: flex; gap: 10px; }
  .modal-actions button { flex: 1; padding: 14px 0; border-radius: 24px; font-size: 15px; font-weight: 600; }
  .btn-cancel { background: var(--gray-100); color: #555; }
  .btn-confirm { background: var(--unicef-blue); color: #fff; }
  .btn-confirm:hover { background: var(--unicef-dark); }

  /* ===== 多规格商品选择弹窗（列表页直选，样式对齐详情页 .variations select） ===== */
  .var-modal { max-width: 420px; }
  .var-attrs { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .var-attrs .var-attr-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--unicef-dark); margin-bottom: 6px;
  }
  .var-attrs select {
    width: 100%; border: 1px solid var(--gray-300); border-radius: 10px;
    padding: 10px 14px; font-size: 14px; font-family: inherit;
    outline: none; background: #fff;
  }
  .var-attrs select:focus { border-color: var(--unicef-blue); }
  .var-hint { font-size: 13px; color: #E2231A; margin-bottom: 12px; line-height: 1.6; }
  #var-confirm:disabled { opacity: 0.55; cursor: not-allowed; }

  /* ===== Floating action buttons (all viewports) ===== */
  .float-fabs {
    display: flex;
    position: fixed;
    right: 14px;
    bottom: 90px;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
  }
  .fab {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--unicef-blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,85,140,0.35);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 10px;
    position: relative;
    transition: transform 0.15s, background 0.2s;
  }
  .fab:active { transform: scale(0.92); }
  .fab .fab-ico { font-size: 20px; line-height: 1; margin-bottom: 2px; }
  .fab .fab-lbl { font-size: 10px; line-height: 1; }
  .fab .fab-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--unicef-yellow);
    color: var(--unicef-dark);
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
  }
  .fab-cart { background: var(--unicef-blue); }
  /* 白底+阴影：避免与 footer 深蓝同色导致贴底时看不出轮廓 */
  .fab-service {
    background: #fff; color: var(--unicef-dark);
    box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  }
  .fab-faq { background: #FFC20E; color: var(--unicef-dark); }

  /* ===== Mobile drawer nav (≤900px) ===== */
  .hamburger {
    display: none;
    font-size: 22px;
    line-height: 1;
    padding: 6px 8px;
    color: var(--unicef-dark);
    background: none;
  }
  .drawer-mask {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 498;
  }
  .drawer-mask.show { display: block; }
  .mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(78vw, 300px);
    background: #fff;
    z-index: 499;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex; flex-direction: column;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0,85,140,0.18);
  }
  .mobile-drawer.show { transform: translateX(0); }
  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    background: var(--unicef-blue);
    color: #fff;
  }
  .drawer-head .drawer-title { font-size: 16px; font-weight: 700; }
  .drawer-head .drawer-close { font-size: 16px; color: #fff; background: none; padding: 4px; }
  .drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
  .drawer-nav a {
    padding: 13px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid var(--gray-100);
  }
  .drawer-nav a.active { color: var(--unicef-blue); font-weight: 600; }
  .drawer-nav a.drawer-sub { padding-left: 38px; font-size: 14px; color: var(--gray-600); }
  .drawer-links {
    display: flex; flex-direction: column;
    padding: 8px 0;
    background: var(--gray-100);
  }
  .drawer-links a { padding: 11px 20px; font-size: 13px; color: var(--gray-600); }
  .drawer-lang {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid var(--gray-100);
    font-size: 13px; color: var(--gray-600);
  }
  .drawer-lang select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding: 5px 30px 5px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6770' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
    outline: none; cursor: pointer;
    transition: border-color 0.15s;
  }
  .drawer-lang select:hover,
  .drawer-lang select:focus { border-color: var(--unicef-blue); }
  /* 抽屉底部用户区（登录时显示，收纳移动端退出按钮） */
  .drawer-user {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
  }
  .drawer-user .up-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #1CABE2, #00558C); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
  }
  .drawer-user .up-name {
    flex: 1; min-width: 0;
    font-size: 14px; font-weight: 600; color: var(--unicef-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .drawer-user .up-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; }
  .drawer-user .up-link:hover .up-name { color: var(--unicef-blue); }
  .drawer-user .up-logout {
    flex-shrink: 0;
    font-size: 12px; color: var(--gray-600);
    padding: 5px 12px; border-radius: 14px;
  }
  .drawer-user .up-logout:hover { background: rgba(0,0,0,0.06); color: var(--unicef-dark); }
  body.drawer-open { overflow: hidden; }

  /* ===== FAQ items ===== */
  .faq-item {
    padding: 14px 0;
    border-bottom: 1px dashed var(--gray-100);
  }
  .faq-item:last-child { border-bottom: none; padding-bottom: 0; }
  .faq-q {
    font-size: 14px; font-weight: 600;
    color: var(--unicef-dark);
    margin-bottom: 6px; line-height: 1.5;
  }
  .faq-a {
    font-size: 13px; color: var(--gray-600);
    line-height: 1.7;
  }
  .modal.modal-faq { max-width: 540px; }
  .modal-faq .modal-body { max-height: 60vh; overflow-y: auto; }

  /* ===== Service modal ===== */
  .modal.modal-service { max-width: 460px; }
  .modal-service .modal-body { padding: 0; }
  .service-hero {
    background: linear-gradient(135deg, #1CABE2 0%, #00558C 100%);
    height: 180px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .service-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 30% 60%, rgba(255,255,255,0.08), transparent 60%),
      radial-gradient(circle at 75% 30%, rgba(255,194,14,0.18), transparent 50%);
  }
  .service-hero .girl-ico {
    font-size: 90px; position: relative; z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  }
  .service-hero .corner-tag {
    position: absolute; top: 16px; right: 16px; z-index: 1;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 6px 12px; border-radius: 14px;
    font-size: 11px; backdrop-filter: blur(4px);
  }
  .service-close {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.3); color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .service-list { padding: 0; }
  .service-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; transition: 0.15s;
    font-size: 14px; color: #333;
  }
  .service-item:hover { background: var(--gray-50); }
  .service-item:last-child { border-bottom: none; }
  .service-item .arrow { color: var(--gray-300); font-size: 20px; line-height: 1; }

  /* ===== Phone modal ===== */
  .modal.modal-phone { max-width: 420px; }
  .modal-phone .modal-body { padding: 0; }
  .phone-prompt {
    background: #fff;
    margin: 20px;
    border-radius: 14px;
    padding: 24px 20px 0;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  }
  .ph-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 16px; }
  .phone-input {
    width: 100%;
    background: var(--gray-100);
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px; color: #222;
    text-align: center;
    outline: none;
    font-family: inherit;
  }
  .phone-input::placeholder { color: var(--gray-300); }
  .phone-actions {
    display: flex;
    border-top: 1px solid var(--gray-100);
    margin: 18px -20px 0;
  }
  .phone-actions button {
    flex: 1; padding: 14px 0;
    background: none; font-size: 15px;
    border: none; cursor: pointer; font-family: inherit;
  }
  .phone-actions .ph-cancel { color: #555; border-right: 1px solid var(--gray-100); }
  .phone-actions .ph-confirm { color: var(--unicef-blue); font-weight: 600; }
  .phone-actions .ph-confirm:hover { background: rgba(28,171,226,0.05); }

  .phone-hotline {
    background: #e6f4fa;
    padding: 22px 20px;
    text-align: center;
    font-size: 13px; color: #444;
    line-height: 1.8;
    margin: 0 20px;
    border-radius: 14px;
  }
  .phone-hotline .num { color: var(--unicef-blue); font-size: 18px; font-weight: 700; margin: 6px 0 2px; }
  .phone-hotline .work-time { color: var(--gray-600); font-size: 12px; }

  .phone-privacy {
    padding: 18px 20px 22px;
    font-size: 11px;
    color: var(--gray-600);
    line-height: 1.6;
  }
  .phone-privacy a { color: var(--unicef-blue); word-break: break-all; }

  /* ===== Toast ===== */
  .toast {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.85); color: #fff;
    padding: 14px 28px; border-radius: 28px;
    font-size: 14px; z-index: 2000;
    opacity: 0; transition: 0.3s;
    pointer-events: none;
  }
  .toast.show { opacity: 1; bottom: 60px; }

  /* ===== 企业卡片网格（慈善天使商城：首页区块/全部企业/angel 归档） ===== */
  .tg-company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  /* 企业详情页头部：logo + 名称/认证/沟通按钮 */
  .tg-company-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }

  /* ===== Responsive ===== */
  @media (max-width: 900px) {
    .nav { display: none; }
    .hero .container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .campaign { grid-template-columns: 1fr; }
    footer .grid { grid-template-columns: 1fr 1fr; }
    .search-box { display: none; }
    .report-grid { grid-template-columns: repeat(2, 1fr); }
    .report-stories { grid-template-columns: 1fr; }
    .bar-row { grid-template-columns: 100px 1fr 40px; }
    .addr-grid { grid-template-columns: 1fr; }
    .addr-input.full { grid-column: span 1; }
    .member-wrap { grid-template-columns: 1fr; }
    .btn-auth { padding: 6px 12px; font-size: 12px; }

    /* Hide top language bar on mobile */
    .topbar { display: none; }
    .header { top: 0; }

    /* Mobile: snap one screen per scroll */
    html {
      scroll-snap-type: y proximity;
      scroll-padding-top: 80px;
    }
    .hero, section.block {
      scroll-snap-align: start;
      min-height: 100vh;
      display: flex !important;
      align-items: center;
      padding-top: 100px;
      padding-bottom: 30px;
    }
    footer { scroll-snap-align: start; }

    /* Hide the duplicate header cart icon on mobile (we have a fab now) */
    .header-actions .icon-btn { display: none; }
    /* Hamburger entry for the drawer nav */
    .hamburger { display: block; }

    /* ---- 移动端 header 紧凑化，防止 logo+用户区+汉堡 横向溢出 ---- */
    .header .container { padding: 8px 12px; gap: 8px; }
    .logo { gap: 8px; }
    .logo svg { width: 32px; height: 32px; }
    .logo .brand-text .zh { font-size: 14px; }
    .header-actions { gap: 8px; }
    .user-pill { gap: 4px; padding: 3px 4px 3px 3px; }
    .header .user-pill .up-name { max-width: 60px; font-size: 12px; }
    /* 移动端退出按钮移入抽屉，避免 header 溢出 */
    .user-pill .up-logout { display: none; }
    /* 移动端窄卡片：价格行允许换行，避免价格+原价横向溢出 */
    .prod-info .price-row { flex-wrap: wrap; row-gap: 2px; }

    /* 企业网格：3 列 → 2 列 */
    .tg-company-grid { grid-template-columns: repeat(2, 1fr); }
  }
  /* 超窄屏：企业网格 2 列 → 1 列；企业详情页头部纵向排列 */
  @media (max-width: 480px) {
    .tg-company-grid { grid-template-columns: 1fr; }
    .tg-company-hero { align-items: flex-start; }
    .tg-company-hero .tg-company-logo { width: 64px; height: 64px; }
  }
/* ===================================================== */
/* ===== WooCommerce 内页风格统一（账户/购物车/结算） ===== */
/* ===================================================== */

/* 页面标题横幅 */
.tg-page-banner {
  background: linear-gradient(135deg, #1CABE2 0%, #00558C 100%);
  color: #fff; padding: 44px 0;
}
.tg-page-banner h1 { font-size: 30px; font-weight: 700; }
.tg-wc-main { padding: 40px 20px 70px; min-height: 55vh; }

/* ---- 我的账户：左侧导航 ---- */
.woocommerce-MyAccount-navigation {
  width: 240px; float: left;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 10px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,85,140,0.08);
}
.woocommerce-MyAccount-navigation li { margin: 2px 0; }
.woocommerce-MyAccount-navigation li a {
  display: block; padding: 12px 18px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--gray-800); transition: 0.15s;
}
.woocommerce-MyAccount-navigation li a:hover {
  background: var(--gray-50); color: var(--unicef-blue);
}
.woocommerce-MyAccount-navigation li.is-active a {
  background: rgba(28,171,226,0.1);
  color: var(--unicef-blue); font-weight: 700;
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #E2231A; }

/* ---- 我的账户：右侧内容卡 ---- */
.woocommerce-MyAccount-content {
  width: calc(100% - 270px); float: right;
  background: #fff; border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,85,140,0.08);
  padding: 30px;
  font-size: 14px; line-height: 1.8; color: #333;
}
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 { color: var(--unicef-dark); margin: 10px 0 16px; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--unicef-blue); }
.tg-wc-main .woocommerce::after { content: ""; display: table; clear: both; }

/* ---- 按钮统一为圆角蓝 ---- */
.tg-wc-main .button,
.tg-wc-main a.button,
.tg-wc-main button.button,
.tg-wc-main input[type="submit"],
.woocommerce-MyAccount-content .button {
  background: var(--unicef-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 22px !important;
  padding: 11px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
}
.tg-wc-main .button:hover,
.tg-wc-main input[type="submit"]:hover { background: var(--unicef-dark) !important; }

/* ---- 表单输入 ---- */
.tg-wc-main .form-row input.input-text,
.tg-wc-main .form-row textarea,
.tg-wc-main .form-row select,
.tg-wc-main .woocommerce-Input {
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.tg-wc-main .form-row input.input-text:focus,
.tg-wc-main .woocommerce-Input:focus { border-color: var(--unicef-blue); }
.tg-wc-main .form-row label { font-size: 13px; color: var(--gray-600); margin-bottom: 6px; display: inline-block; }
.tg-wc-main fieldset legend { color: var(--unicef-dark); font-weight: 600; }

/* ---- 表格（订单列表等） ---- */
.tg-wc-main table.shop_table {
  border: none !important;
  border-collapse: separate; border-spacing: 0;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,85,140,0.06);
  width: 100%;
}
.tg-wc-main table.shop_table th {
  background: var(--gray-50);
  color: var(--unicef-dark);
  font-size: 13px; font-weight: 700;
  padding: 14px 16px !important;
  border: none !important;
}
.tg-wc-main table.shop_table td {
  padding: 14px 16px !important;
  border: none !important;
  border-top: 1px solid var(--gray-100) !important;
  font-size: 14px;
}

/* ---- 提示条 ---- */
.tg-wc-main .woocommerce-message,
.tg-wc-main .woocommerce-info,
.tg-wc-main .woocommerce-error {
  border-top: none;
  border-left: 4px solid var(--unicef-blue);
  background: #f0f9ff;
  border-radius: 10px;
  padding: 14px 18px !important;
  color: #14506e;
  font-size: 14px;
}
.tg-wc-main .woocommerce-error { border-left-color: #E2231A; background: #fff5f5; color: #8a1f1a; }
.tg-wc-main .woocommerce-message::before,
.tg-wc-main .woocommerce-info::before,
.tg-wc-main .woocommerce-error::before { display: none; }

/* ---- 地址卡片 ---- */
.tg-wc-main .woocommerce-Address,
.tg-wc-main .col2-set .col-1,
.tg-wc-main .col2-set .col-2 { margin-bottom: 20px; }
.tg-wc-main address {
  background: var(--gray-50);
  border-radius: 12px; padding: 16px;
  font-style: normal; line-height: 1.8;
}

/* ---- 购物车/结算区块（React 版）主按钮配色 ---- */
.wc-block-components-button:not(.is-link) {
  background-color: var(--unicef-blue) !important;
  border-radius: 24px !important;
  font-weight: 600;
  color: #fff !important; /* 按钮为 <a>，不定文字色会继承链接蓝→蓝底蓝字不可见 */
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: #fff !important; }
.wc-block-components-button:not(.is-link):hover {
  background-color: var(--unicef-dark) !important;
  color: #fff !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: #E2231A; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content { width: 100%; float: none; }
  .woocommerce-MyAccount-navigation { margin-bottom: 20px; }
  .tg-page-banner { padding: 30px 0; }
  .tg-page-banner h1 { font-size: 24px; }
}

/* ---- 商品详情页：摘要区属性表 ---- */
.tg-attrs { margin: 14px 0 18px; }
.tg-attrs table.woocommerce-product-attributes {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gray-100);
  font-size: 13px;
}
.tg-attrs table.woocommerce-product-attributes th {
  background: var(--gray-50); color: var(--unicef-dark);
  font-weight: 600; padding: 10px 14px; width: 120px;
  border: none; text-align: left;
}
.tg-attrs table.woocommerce-product-attributes td {
  padding: 10px 14px; border: none;
  border-top: 1px solid var(--gray-100); color: #444;
}
.tg-attrs table.woocommerce-product-attributes td p { margin: 0; }

/* ===================================================== */
/* ===== 商品详情页优化 ===== */
/* ===================================================== */

/* 促销角标：黄色药丸（与首页商品卡一致） */
.tg-wc-main span.onsale {
  position: absolute; top: 14px; left: 14px; z-index: 9;
  min-height: 0; min-width: 0; line-height: 1;
  background: var(--unicef-yellow); color: var(--unicef-dark);
  font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 14px;
  border: none; text-transform: none;
}

/* 商品主图：圆角 */
.tg-wc-main .woocommerce-product-gallery { position: relative; }
.tg-wc-main .woocommerce-product-gallery img { border-radius: 16px; }

/* 标题与价格 */
.tg-wc-main .product_title {
  color: var(--unicef-dark); font-size: 26px; font-weight: 700;
  margin-bottom: 10px; line-height: 1.35;
}
.tg-wc-main .summary .price { color: #E2231A; font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.tg-wc-main .summary .price del { color: var(--gray-600); font-size: 15px; font-weight: 400; opacity: 1; margin-right: 6px; }
.tg-wc-main .summary .price ins { text-decoration: none; color: #E2231A; background: none; }
.tg-wc-main .summary .woocommerce-product-details__short-description { color: var(--gray-600); font-size: 14px; line-height: 1.8; margin-bottom: 16px; }

/* 规格选择表 */
.tg-wc-main .variations { margin-bottom: 16px; border: none; }
.tg-wc-main .variations th,
.tg-wc-main .variations td { border: none; padding: 8px 0; vertical-align: middle; }
.tg-wc-main .variations th.label { width: 80px; font-size: 14px; color: var(--unicef-dark); font-weight: 600; text-align: left; }
.tg-wc-main .variations select {
  border: 1px solid var(--gray-300); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; font-family: inherit;
  outline: none; min-width: 220px; background: #fff;
}
.tg-wc-main .variations select:focus { border-color: var(--unicef-blue); }
.tg-wc-main .reset_variations { color: var(--gray-600); font-size: 12px; margin-left: 10px; }
.tg-wc-main .woocommerce-variation-price .price { font-size: 20px; }
.tg-wc-main .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 12px; }

/* 数量输入框 */
.tg-wc-main .quantity .qty {
  border: 1px solid var(--gray-300); border-radius: 10px;
  padding: 10px 6px 10px 14px; font-size: 15px; width: 76px;
  text-align: center; outline: none; font-family: inherit;
}
.tg-wc-main .quantity .qty:focus { border-color: var(--unicef-blue); }
.tg-wc-main form.cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.tg-wc-main form.cart.variations_form { display: block; }

/* 描述/评价标签页 */
.tg-wc-main .woocommerce-tabs { clear: both; padding-top: 30px; }
.tg-wc-main .woocommerce-tabs ul.tabs {
  padding: 0 !important; margin: 0 0 24px !important;
  border-bottom: 2px solid var(--gray-100);
  display: flex; gap: 6px;
}
.tg-wc-main .woocommerce-tabs ul.tabs li {
  background: none !important; border: none !important;
  border-radius: 0 !important; margin: 0 !important; padding: 0 !important;
}
.tg-wc-main .woocommerce-tabs ul.tabs li::before,
.tg-wc-main .woocommerce-tabs ul.tabs li::after { display: none !important; }
.tg-wc-main .woocommerce-tabs ul.tabs li a {
  display: inline-block; padding: 12px 18px !important;
  font-size: 15px; font-weight: 600; color: var(--gray-600) !important;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tg-wc-main .woocommerce-tabs ul.tabs li.active a {
  color: var(--unicef-blue) !important;
  border-bottom-color: var(--unicef-blue);
}
.tg-wc-main .woocommerce-Tabs-panel { font-size: 14px; line-height: 1.9; color: #333; }
.tg-wc-main .woocommerce-Tabs-panel > h2 { color: var(--unicef-dark); font-size: 20px; margin-bottom: 12px; }

/* 相关商品 / 商店列表网格 */
.tg-wc-main section.related > h2,
.tg-wc-main section.upsells > h2 { color: var(--unicef-dark); font-size: 22px; margin: 40px 0 20px; }
.tg-wc-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin: 0 !important; padding: 0 !important;
  list-style: none;
}
.tg-wc-main ul.products::before,
.tg-wc-main ul.products::after { display: none !important; }
.tg-wc-main ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: 14px; overflow: hidden;
  padding: 0 0 16px !important;
  display: flex; flex-direction: column;
  transition: 0.2s; position: relative;
}
.tg-wc-main ul.products li.product:hover { box-shadow: 0 12px 28px rgba(0,85,140,0.12); transform: translateY(-4px); }
.tg-wc-main ul.products li.product img { width: 100%; margin: 0 0 12px !important; border-radius: 0; }
.tg-wc-main ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important; font-weight: 600; color: #222;
  padding: 0 14px !important; margin-bottom: 6px;
}
.tg-wc-main ul.products li.product .price { padding: 0 14px; color: #E2231A !important; font-weight: 700; margin-bottom: 10px; }
.tg-wc-main ul.products li.product .price del { color: var(--gray-600); font-weight: 400; }
.tg-wc-main ul.products li.product .price ins { text-decoration: none; }
.tg-wc-main ul.products li.product .button { margin: auto 14px 0 !important; text-align: center; }
.tg-wc-main ul.products li.product span.onsale { top: 10px; left: 10px; }

/* ---- 加购后 WooCommerce 自动追加的"查看购物车"链接：与蓝色主按钮成对的次级幽灵按钮 ---- */
.tg-wc-main .added_to_cart.wc-forward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 14px 0 !important;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--unicef-dark);
  background: #fff;
  border: 1.5px solid var(--unicef-blue);
  border-radius: 22px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.tg-wc-main .added_to_cart.wc-forward::before {
  content: "";
  width: 15px; height: 15px; flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tg-wc-main .added_to_cart.wc-forward:hover {
  background: rgba(28,171,226,0.12);
  color: var(--unicef-dark);
  border-color: var(--unicef-dark);
}
.tg-wc-main .added_to_cart.wc-forward:active { transform: translateY(1px); }

@media (max-width: 768px) {
  .tg-wc-main ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tg-wc-main .product_title { font-size: 21px; }
}

/* ---- 商店/分类页：排序下拉框与页头 ---- */
.tg-wc-main h1.page-title { display: none; } /* 横幅已显示标题，隐藏正文重复的 */
.tg-wc-main .term-description { color: var(--gray-600); font-size: 14px; margin-bottom: 4px; }
.tg-wc-main .woocommerce-result-count { color: var(--gray-600); font-size: 13px; margin: 6px 0 20px; }

.tg-wc-main form.woocommerce-ordering { margin: 0 0 20px; }
.tg-wc-main .woocommerce-ordering select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 9px 38px 9px 16px;
  font-size: 13px; font-family: inherit; color: var(--gray-800);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6770' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  outline: none; cursor: pointer;
  transition: border-color 0.15s;
}
.tg-wc-main .woocommerce-ordering select:hover,
.tg-wc-main .woocommerce-ordering select:focus { border-color: var(--unicef-blue); }

/* 列表卡片上的促销角标：固定在图片左上角（修复被拉伸成整条） */
.tg-wc-main ul.products li.product span.onsale {
  position: absolute; top: 10px; left: 10px; right: auto; bottom: auto;
  margin: 0; width: auto; align-self: flex-start;
}
.tg-wc-main ul.products { clear: both; }

/* ---- 普通页面正文排版（关于/新闻/帮助等） ---- */
.entry-content { font-size: 15px; line-height: 1.9; color: #333; max-width: 860px; }
.entry-content h2 { color: var(--unicef-dark); font-size: 22px; margin: 28px 0 12px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { color: var(--unicef-dark); font-size: 18px; margin: 22px 0 10px; }
.entry-content p { margin-bottom: 14px; }
.entry-content ul, .entry-content ol { margin: 0 0 14px 22px; }
.entry-content a { color: var(--unicef-blue); }
.entry-content img { border-radius: 12px; }

/* ===================================================== */
/* ===== 会员中心：普通/VIP 申请卡片 ===== */
/* ===================================================== */
.member-apply-grid {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.apply-card {
  border-radius: 18px; padding: 38px 32px;
  background: #f4f7fa;
  display: flex; flex-direction: column; gap: 20px;
}
.apply-card .ap-ico {
  width: 64px; height: 64px; border-radius: 12px;
  background: #dde7f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto;
}
.apply-card h3 { text-align: center; font-size: 23px; color: #1a2b49; margin: 0; }
.apply-card .ap-badge {
  display: block; width: max-content; margin: 0 auto 6px;
  background: #e8eef7; color: #1a3a6b;
  font-weight: 700; font-size: 13px;
  padding: 6px 16px; border-radius: 8px;
}
.apply-feature { display: flex; gap: 14px; align-items: flex-start; }
.apply-feature .af-ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: #e3ecf7; color: #1a3a6b;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.af-t { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.af-d { font-size: 13px; line-height: 1.7; color: var(--gray-600); }
.apply-btn {
  margin-top: auto;
  padding: 13px 0; border-radius: 26px;
  background: var(--unicef-blue); color: #fff;
  font-size: 15px; font-weight: 600; text-align: center;
  transition: 0.15s;
}
.apply-btn:hover { background: var(--unicef-dark); }

/* VIP 卡（品牌蓝渐变，浅色调） */
.apply-card.vip { background: linear-gradient(135deg, #1CABE2 0%, #0e6cad 100%); color: #fff; }
.apply-card.vip .ap-ico { background: rgba(255,255,255,0.2); }
.apply-card.vip h3 { color: #fff; }
.apply-card.vip .ap-badge { background: #fff; color: var(--unicef-dark); }
.apply-card.vip .af-ico { background: rgba(255,255,255,0.2); color: #fff; }
.apply-card.vip .af-d { color: rgba(255,255,255,0.85); }
.apply-card.vip .apply-btn { background: #eaf4fb; color: var(--unicef-dark); border-radius: 10px; }
.apply-card.vip .apply-btn:hover { background: #fff; }

.member-login-tip { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--gray-600); }
.member-login-tip a { color: var(--unicef-blue); font-weight: 600; cursor: pointer; margin-left: 4px; }

/* 注册弹窗：会员类型选择 */
.reg-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reg-type {
  padding: 11px 0;
  border: 1.5px solid var(--gray-300); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #555;
  transition: 0.15s;
}
.reg-type.active {
  border-color: var(--unicef-blue);
  background: rgba(28,171,226,0.08);
  color: var(--unicef-blue);
}

@media (max-width: 900px) {
  .member-apply-grid { grid-template-columns: 1fr; }
}

/* ---- 导航下拉菜单（爱心商城） ---- */
.nav { gap: 20px; }
.nav .has-sub { position: relative; display: flex; align-items: center; }
.nav .has-sub > a::after { content: " ▾"; font-size: 10px; opacity: 0.65; }
.nav-sub {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,85,140,0.16);
  padding: 8px; min-width: 150px; z-index: 300;
}
.nav .has-sub:hover .nav-sub { display: block; }
.nav .nav-sub a {
  display: block; padding: 10px 16px;
  border-radius: 8px; border-bottom: none;
  font-size: 14px; color: #333;
  white-space: nowrap; text-align: center;
}
.nav .nav-sub a:hover { background: var(--gray-50); color: var(--unicef-blue); border-color: transparent; }

/* 爱心汇报书板块整体隐藏（导航入口已移除） */
section[data-page="report"] { display: none !important; }

/* ---- 头部中等宽度自适应（防止导航文字竖排换行） ---- */
.nav a { white-space: nowrap; }
.logo { flex-shrink: 0; }
.brand-text .zh { white-space: nowrap; }

@media (max-width: 1360px) {
  .header .container { gap: 18px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .search-box { width: 150px; }
}
@media (max-width: 1180px) {
  .search-box { display: none; }
  .nav { gap: 12px; }
}
@media (max-width: 1020px) {
  .nav a { font-size: 13px; }
  .logo svg { width: 38px; height: 38px; }
  .logo .brand-text .en { display: none; }
}

/* ---- 头部右侧：登录用户区不折行 ---- */
.header-actions { flex-shrink: 0; }
.user-pill { flex-shrink: 0; white-space: nowrap; }
.user-pill .up-name,
.user-pill .up-logout { white-space: nowrap; }
.user-pill .up-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }

/* ---- 注册页（普通/VIP） ---- */
.tg-reg-card {
  max-width: 520px; margin: 0 auto;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,85,140,0.1);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.tg-reg-card h2 { color: var(--unicef-dark); font-size: 22px; text-align: center; }
.tg-reg-sub { color: var(--gray-600); font-size: 13px; text-align: center; margin-bottom: 8px; }
.tg-form-sec {
  font-size: 13px; font-weight: 700; color: var(--unicef-dark);
  padding-bottom: 6px; border-bottom: 1px dashed var(--gray-100);
  margin-top: 8px;
}
.tg-upload {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--gray-300); border-radius: 10px;
  padding: 18px 14px; cursor: pointer;
  font-size: 13px; color: var(--gray-600);
  transition: 0.15s; text-align: center;
}
.tg-upload:hover { border-color: var(--unicef-blue); color: var(--unicef-blue); }
.tg-upload.has-file { border-color: #00A651; color: #00A651; border-style: solid; background: #f2fbf6; }
.tg-upload.error { border-color: #E2231A; background: #fff5f5; }
.tg-kyc-note { font-size: 11px; color: var(--gray-600); line-height: 1.6; }
/* 日期等不支持 placeholder 的控件：字段名用显式标签标注 */
.tg-field-label {
  display: block; font-size: 13px; color: var(--gray-600);
  margin: 2px 0 -4px; cursor: pointer;
}
.tg-kyc-rejected {
  background: #fff5f5; border-left: 4px solid #E2231A;
  color: #8a1f1a; font-size: 13px;
  padding: 10px 14px; border-radius: 8px;
}
.tg-reg-tip { text-align: center; font-size: 13px; color: var(--gray-600); margin-top: 4px; }
.tg-reg-tip a { color: var(--unicef-blue); font-weight: 600; cursor: pointer; }
.tg-reg-tip .sep { margin: 0 8px; color: var(--gray-300); }
.btn-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- 天使卡申请页：2 列表单（字段多，双列减少纵向滚动） ---- */
.tg-aca-card {
  max-width: 880px; margin: 0 auto;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,85,140,0.1);
  padding: 36px 34px;
}
.tg-aca-card h2 { color: var(--unicef-dark); font-size: 22px; text-align: center; }
.tg-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
/* 分区标题 / 跨行控件：占满两列 */
.tg-form-grid .tg-form-sec,
.tg-form-grid .tg-field-full { grid-column: 1 / -1; }
.tg-form-grid .tg-form-sec { margin-top: 6px; }
/* 覆盖全局 .tg-field-label 的负 margin（2px 0 -4px 会与 date/radio 控件重叠 4px），改为正常间距 */
.tg-form-grid .tg-field-label { margin: 0 0 4px; }
/* 单选组：浅底边框容器，选项横向平铺自动换行 */
.tg-radio-group {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding: 11px 14px; border: 1px solid var(--gray-300);
  border-radius: 10px; background: #fafcfe;
}
.tg-radio-row {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--gray-600); cursor: pointer;
}
.tg-radio-row input { accent-color: var(--unicef-blue); width: 15px; height: 15px; flex: none; }
/* 移动端单列 */
@media (max-width: 640px) {
  .tg-form-grid { grid-template-columns: 1fr; }
  .tg-aca-card { padding: 26px 18px; }
}

/* ---- 订单详情：捐赠协议下载 ---- */
.tg-agreement-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: #f0f9ff; border: 1px solid rgba(28,171,226,0.35);
  border-radius: 14px; padding: 16px 20px; margin: 20px 0;
}
.tg-agreement-info { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #14506e; }
.tg-agreement-ico { font-size: 24px; }
.tg-agreement-btn { white-space: nowrap; }
