@import url('../../css/zc-vertical-tokens.css');

/* jiaju vertical intro */
:root { --wood: #c4a574; --wood-dark: #8b6914; --wood-light: #f5ebe0; }

    .jj-hero {
      background: linear-gradient(135deg, #1f1410 0%, #3d2b1f 40%, #5c4033 100%);
      color: #fff;
      padding: 64px 24px;
      text-align: center;
      border-radius: 16px;
      margin-bottom: 48px;
      position: relative;
      overflow: hidden;
    }
    .jj-hero::before {
      content: '';
      position: absolute;
      top: -50%; left: -50%; width: 200%; height: 200%;
      background: radial-gradient(circle at 30% 70%, rgba(196,165,116,0.1) 0%, transparent 50%),
                  radial-gradient(circle at 70% 30%, rgba(139,105,20,0.06) 0%, transparent 50%);
      pointer-events: none;
    }
    .jj-hero > * { position: relative; z-index: 1; }
    .jj-hero .badge {
      display: inline-block;
      background: rgba(196,165,116,0.15);
      border: 1px solid rgba(196,165,116,0.35);
      color: var(--wood);
      padding: 6px 18px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 16px;
    }
    .jj-hero h1 { font-size: 38px; font-weight: 700; margin: 0 0 12px; color: #fff; }
    .jj-hero h1 span { color: var(--wood); }
    .jj-hero .subtitle { font-size: 17px; color: #b8a090; margin: 0 0 8px; line-height: 1.7; }
    .jj-hero .client-info { font-size: 14px; color: #807060; margin: 0 0 28px; }
    .jj-hero .tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
    .jj-hero .tag {
      background: rgba(196,165,116,0.15);
      border: 1px solid rgba(196,165,116,0.3);
      color: var(--wood);
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 500;
    }

    .jj-delivery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
      gap: 14px;
      margin: -24px 0 40px;
    }
    .jj-delivery__item {
      background: #fff;
      border: 1px solid #f1f5f9;
      border-left: 3px solid var(--wood);
      border-radius: 10px;
      padding: 16px 18px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }
    .jj-delivery__item strong { display: block; font-size: 15px; color: #1e293b; margin-bottom: 6px; }
    .jj-delivery__item span { display: block; font-size: 13px; line-height: 1.6; color: #64748b; }
    .jj-delivery__note { grid-column: 1 / -1; font-size: 12px; color: #94a3b8; text-align: center; margin: -4px 0 0; }

    .overview-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
      gap: 20px;
      margin-bottom: 56px;
    }
    .ov-card {
      background: #fff;
      border-radius: 12px;
      padding: 24px 20px;
      text-align: center;
      box-shadow: 0 2px 12px rgba(0,0,0,0.05);
      border: 1px solid #f1f5f9;
      border-top: 3px solid var(--wood);
    }
    .ov-card .num { font-size: 36px; font-weight: 700; color: var(--wood-dark); line-height: 1; margin-bottom: 6px; }
    .ov-card .label { font-size: 14px; color: #64748b; }

    .sec-title { text-align: center; font-size: 28px; font-weight: 700; margin: 0 0 8px; color: #1e293b; }
    .sec-desc { text-align: center; color: #64748b; margin: 0 0 36px; font-size: 15px; }

    .arch-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
      gap: 16px;
      margin-bottom: 56px;
    }
    .arch-card {
      background: #fff;
      border-radius: 10px;
      padding: 20px 18px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      border: 1px solid #f1f5f9;
      border-left: 3px solid var(--wood);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .arch-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
    .arch-card .a-icon { font-size: 24px; margin-bottom: 8px; }
    .arch-card h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: #1e293b; }
    .arch-card p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.5; }
    .arch-card .sub-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
    .arch-card .sub-list li { background: var(--wood-light); color: var(--wood-dark); padding: 2px 10px; border-radius: 4px; font-size: 12px; }

    .rules-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
      gap: 16px;
      margin-bottom: 56px;
    }
    .rule-card {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      border: 1px solid #f1f5f9;
    }
    .rule-card h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: #1e293b; }
    .rule-card p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.55; }

    .flow-pipeline {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0;
      margin-bottom: 56px;
      padding: 24px;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.05);
      border: 1px solid #f1f5f9;
      justify-content: center;
    }
    .flow-node {
      background: linear-gradient(135deg, #5c4033, #3d2b1f);
      color: var(--wood);
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }
    .flow-arrow { color: var(--wood-dark); font-size: 20px; margin: 0 4px; }

    .gallery-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 32px;
      justify-content: center;
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(245,247,250,0.96);
      backdrop-filter: blur(8px);
      padding: 14px 0;
      border-bottom: 1px solid #e2e8f0;
    }
    .gallery-tabs button {
      padding: 8px 16px;
      border-radius: 999px;
      background: #fff;
      color: #475569;
      font-size: 13px;
      font-weight: 500;
      border: 1px solid #e2e8f0;
      cursor: pointer;
      transition: all 0.2s;
    }
    .gallery-tabs button:hover { background: var(--wood-light); color: var(--wood-dark); border-color: var(--wood); }
    .gallery-tabs button.active { background: var(--wood-dark); color: #fff; border-color: var(--wood-dark); }

    .tab-panel { display: none; }
    .tab-panel.active { display: block; }
    .tab-panel h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #1e293b; }
    .tab-panel .tab-desc { font-size: 14px; color: #64748b; margin: 0 0 20px; }

    .thumb-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
      gap: 16px;
      margin-bottom: 48px;
    }
    .thumb-card {
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.06);
      border: 1px solid #f1f5f9;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .thumb-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
    .thumb-card img { width: 100%; height: 180px; object-fit: cover; object-position: top left; border-bottom: 1px solid #f1f5f9; }
    .thumb-card .thumb-label { padding: 10px 14px; font-size: 13px; font-weight: 500; color: #334155; text-align: center; }

    .lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.88); align-items: center; justify-content: center; padding: 24px; }
    .lightbox.show { display: flex; }
    .lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 12px 48px rgba(0,0,0,0.4); }
    .lightbox .lb-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; opacity: 0.8; }
    .lightbox .lb-close:hover { opacity: 1; }
    .lightbox .lb-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,0.5); padding: 6px 18px; border-radius: 6px; }

    .cta-banner {
      background: linear-gradient(135deg, var(--wood-dark) 0%, #6b4f2a 100%);
      color: #fff;
      padding: 48px 24px;
      border-radius: 16px;
      text-align: center;
      margin-top: 48px;
    }
    .cta-banner h2 { font-size: 28px; font-weight: 700; margin: 0 0 12px; color: #fff; }
    .cta-banner p { font-size: 16px; color: rgba(255,255,255,0.85); margin: 0 0 24px; line-height: 1.7; }
    .cta-banner .btn-w {
      display: inline-block;
      background: #fff;
      color: var(--wood-dark);
      padding: 14px 36px;
      border-radius: 999px;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s;
      margin: 0 8px 8px;
    }
    .cta-banner .btn-w:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
    .cta-banner .btn-ghost {
      background: transparent;
      color: #fff;
      border: 2px solid rgba(255,255,255,0.5);
    }
    .cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }

    @media (max-width: 768px) {
      .jj-hero { padding: 36px 16px; border-radius: 12px; margin-bottom: 32px; }
      .jj-hero h1 { font-size: 24px; }
      .jj-hero .subtitle { font-size: 14px; }
      .overview-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
      .ov-card .num { font-size: 28px; }
      .sec-title { font-size: 20px; }
      .gallery-tabs { position: static; background: transparent; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
      .gallery-tabs button { white-space: nowrap; flex-shrink: 0; }
      .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
      .thumb-card img { height: 110px; }
      .flow-pipeline { padding: 16px; }
      .flow-node { font-size: 11px; padding: 8px 12px; }
    }
    @media (max-width: 480px) {
      .jj-hero h1 { font-size: 20px; }
      .thumb-grid { grid-template-columns: repeat(2, 1fr); }
      .thumb-card img { height: 90px; }
      .flow-pipeline { flex-direction: column; align-items: stretch; }
      .flow-arrow { transform: rotate(90deg); text-align: center; margin: 4px auto; }
    }
