/* ==========================================================================
   鼎廉珠宝 · 样式表
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 基础重置与全局样式
   -------------------------------------------------------------------------- */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #f6f2ec;
      font-family: 'Montserrat', sans-serif;
      color: #1e1a17;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, .serif {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 500;
      letter-spacing: 0.03em;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 2rem 3rem;
    }

    /* 顶栏 */
    .brand-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1.2rem 1.8rem;
      margin-bottom: 2rem;
      padding-bottom: 1.2rem;
      border-bottom: 1px solid rgba(180, 160, 140, 0.25);
    }

    .logo-wrapper {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .brand-text {
      display: flex;
      flex-direction: column;
    }

    .brand-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.1rem;
      font-weight: 600;
      color: #1e1a17;
      line-height: 1.1;
      letter-spacing: 0.04em;
    }

    .brand-location {
      font-size: 0.75rem;
      color: #a48e7c;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      margin-top: 4px;
      font-weight: 400;
    }

    /* 主菜单 */
    .primary-nav {
      flex: 1 1 auto;
      display: flex;
      justify-content: center;
    }

    .primary-menu {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      list-style: none;
      flex-wrap: wrap;
    }

    .primary-menu li {
      display: flex;
      align-items: center;
    }

    .primary-menu li a {
      display: inline-block;
      color: #5a4f46;
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.45rem 0.9rem;
      border-radius: 30px;
      transition: all 0.25s ease;
      position: relative;
    }

    .primary-menu li a:hover {
      color: #1e1a17;
      background: rgba(203, 183, 166, 0.18);
    }

    .primary-menu li a.current-menu-item,
    .primary-menu li a[aria-current="page"] {
      color: #8f7a68;
      font-weight: 500;
    }

    .primary-menu li a.current-menu-item::after,
    .primary-menu li a[aria-current="page"]::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0.15rem;
      width: 16px;
      height: 1px;
      background: #b09b87;
      transform: translateX(-50%);
    }

    .primary-menu li + li::before {
      content: "·";
      color: #d8ccc0;
      margin-right: 0.4rem;
      font-size: 0.9rem;
      line-height: 1;
    }

    .primary-menu li + li a {
      margin-left: 0.2rem;
    }

    .slogan-badge {
      background: transparent;
      padding: 0.5rem 0.2rem;
      font-size: 0.85rem;
      font-weight: 400;
      color: #8f7a68;
      letter-spacing: 0.15em;
      border-left: 2px solid #cbb7a6;
      padding-left: 1.2rem;
      text-transform: uppercase;
      white-space: nowrap;
    }

    /* 介绍区 */
    .intro-section {
      text-align: center;
      max-width: 760px;
      margin: 4.5rem auto 5rem auto;
    }

    .intro-eyebrow {
      display: inline-block;
      font-size: 0.7rem;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: #b09b87;
      font-weight: 500;
      margin-bottom: 1.5rem;
      position: relative;
      padding: 0 1.5rem;
    }

    .intro-eyebrow::before,
    .intro-eyebrow::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 28px;
      height: 1px;
      background: #d8ccc0;
    }

    .intro-eyebrow::before { left: -10px; }
    .intro-eyebrow::after  { right: -10px; }

    .intro-section h1 {
      font-size: 2.6rem;
      line-height: 1.4;
      margin-bottom: 1.8rem;
      font-weight: 500;
      color: #1e1a17;
      letter-spacing: 0.02em;
    }

    .intro-section h1 .accent {
      color: #8f7a68;
      font-style: italic;
      font-weight: 400;
    }

    .intro-section p {
      font-size: 1rem;
      color: #5a4f46;
      font-weight: 300;
      line-height: 2;
      max-width: 640px;
      margin: 0 auto;
    }

    .intro-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      margin: 2rem auto 1.8rem;
    }

    .intro-divider span {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: #cbb7a6;
      display: block;
    }

    .intro-divider span:nth-child(2) {
      width: 24px;
      height: 1px;
      border-radius: 0;
      background: #d8ccc0;
    }

    .intro-section .intro-values {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem;
      font-weight: 500;
      color: #6b5d50;
      letter-spacing: 0.05em;
      line-height: 1.8;
      max-width: 560px;
      margin: 0 auto;
    }

    /* 产品分类 */
    .product-categories {
      margin: 4rem 0 5rem 0;
    }

    .product-categories h2 {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: #1e1a17;
    }

    .product-categories .sub-cat-desc {
      text-align: center;
      color: #9b8a7a;
      margin-bottom: 2.5rem;
      font-weight: 300;
      font-size: 0.9rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    .category-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.9rem;
      max-width: 1000px;
      margin: 0 auto;
    }

    .category-item {
      background: transparent;
      border: 1px solid #d8ccc0;
      padding: 0.65rem 1.6rem;
      text-align: center;
      border-radius: 40px;
      font-size: 0.85rem;
      font-weight: 400;
      color: #3b322b;
      letter-spacing: 0.04em;
      transition: all 0.25s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      white-space: nowrap;
      backdrop-filter: blur(2px);
      background: rgba(255, 255, 255, 0.4);
    }

    .category-item i {
      color: #b09b87;
      font-size: 0.8rem;
    }

    .category-item:hover {
      background: #1e1a17;
      color: #f6f2ec;
      border-color: #1e1a17;
    }

    .category-item:hover i {
      color: #d9c6b4;
    }

    /* ========== 钻石查询 - 暖调深色版 ========== */
    .diamond-banner {
      background: #2b2520;
      color: #f3ede7;
      padding: 4.5rem 4rem;
      margin: 4rem 0 5rem 0;
      position: relative;
      overflow: hidden;
      box-shadow: 0 20px 40px -20px rgba(43, 37, 32, 0.35);
    }

    .diamond-banner::before {
      content: "";
      position: absolute;
      top: -60%;
      left: -10%;
      width: 70%;
      height: 220%;
      background: radial-gradient(circle, rgba(220, 200, 180, 0.08) 0%, transparent 65%);
      pointer-events: none;
    }

    .diamond-banner::after {
      content: "✦";
      position: absolute;
      bottom: 20px;
      right: 30px;
      font-size: 130px;
      color: rgba(220, 200, 180, 0.05);
      font-family: 'Cormorant Garamond', serif;
      line-height: 1;
      pointer-events: none;
    }

    .diamond-inner {
      position: relative;
      z-index: 2;
      max-width: 760px;
      margin: 0 auto;
      text-align: center;
    }

    .diamond-eyebrow {
      display: inline-block;
      font-size: 0.65rem;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: #c4b4a4;
      font-weight: 500;
      margin-bottom: 1.4rem;
      position: relative;
      padding: 0 1.2rem;
    }

    .diamond-eyebrow::before,
    .diamond-eyebrow::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 22px;
      height: 1px;
      background: rgba(200, 180, 160, 0.35);
    }

    .diamond-eyebrow::before { left: -6px; }
    .diamond-eyebrow::after  { right: -6px; }

    .diamond-text h2 {
      font-size: 2.6rem;
      color: #f5ede4;
      margin-bottom: 0.8rem;
      font-weight: 500;
      line-height: 1.25;
      letter-spacing: 0.01em;
    }

    .diamond-text h2 .num {
      font-size: 3.2rem;
      color: #e8d5c0;
      font-style: italic;
      font-weight: 400;
      letter-spacing: 0;
      margin-right: 0.15em;
    }

    .diamond-sub {
      color: #c8bcae;
      font-size: 0.95rem;
      font-weight: 300;
      letter-spacing: 0.1em;
      margin-bottom: 2.4rem;
    }

    .diamond-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.8rem;
      flex-wrap: wrap;
      padding-top: 2rem;
      border-top: 1px solid rgba(200, 180, 160, 0.15);
    }

    .diamond-url {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.65rem 1.6rem;
      border-radius: 50px;
      border: 1px solid rgba(210, 190, 168, 0.3);
      background: rgba(255, 255, 255, 0.04);
      font-size: 0.9rem;
      letter-spacing: 0.3px;
      backdrop-filter: blur(4px);
      transition: all 0.25s ease;
    }

    .diamond-url:hover {
      border-color: rgba(210, 190, 168, 0.55);
      background: rgba(255, 255, 255, 0.08);
    }

    .diamond-url i {
      color: #d8c8b4;
      font-size: 0.8rem;
    }

    .diamond-url a {
      color: #f0e4d5;
      text-decoration: none;
      font-weight: 400;
    }

    .slogan-strong {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.35rem;
      font-weight: 500;
      color: #e8d5c0;
      letter-spacing: 0.08em;
      white-space: nowrap;
    }

    /* 扫码区 */
    .scan-section {
      margin: 4rem 0 2rem 0;
    }

    .scan-header {
      text-align: center;
      margin-bottom: 3.5rem;
    }

    .scan-header h2 {
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    .scan-header p {
      color: #9b8a7a;
      font-size: 0.9rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    .qr-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
      justify-items: center;
      margin-top: 1rem;
    }

    .qr-card {
      background: #ffffff;
      padding: 2rem 1.5rem 1.8rem 1.5rem;
      box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.03);
      border: 1px solid #ede5dd;
      text-align: center;
      width: 100%;
      max-width: 240px;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .qr-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.08);
      border-color: #cbb7a6;
    }

    .qr-image {
      width: 150px;
      height: 150px;
      background: #f6f2ec;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
      overflow: hidden;
      border: 1px solid #e2d8cf;
    }

    .qr-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .qr-image .placeholder-text {
      font-size: 0.7rem;
      color: #a09080;
      text-align: center;
      padding: 0.5rem;
      letter-spacing: 0.1em;
    }

    .qr-card h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
      color: #1e1a17;
      letter-spacing: 0.04em;
    }

    .qr-card .qr-desc {
      font-size: 0.75rem;
      color: #9b8a7a;
      margin-bottom: 0.8rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .qr-card .qr-hint {
      font-size: 0.65rem;
      padding: 0.2rem 0.8rem;
      border-radius: 20px;
      color: #7f6e5f;
      margin-top: 0.3rem;
      border: 1px solid #e2d8cf;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      letter-spacing: 0.05em;
    }

    .qr-features-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 0.7rem;
      width: 100%;
    }

    .qr-features-row .mini-badge {
      font-size: 0.6rem;
      background: #f3ede7;
      padding: 0.15rem 0.6rem;
      border-radius: 20px;
      color: #5d4e42;
      letter-spacing: 0.03em;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      white-space: nowrap;
    }

    .qr-features-row .mini-badge i {
      font-size: 0.55rem;
      color: #b09b87;
    }

    .unified-note {
      text-align: center;
      margin: 2rem 0 0.5rem;
      font-size: 0.85rem;
      color: #7f6e5f;
      letter-spacing: 0.05em;
      font-weight: 300;
    }

    .unified-note i {
      margin-right: 8px;
      color: #b09b87;
    }

    /* ========== 底部 ========== */
    .footer {
      margin-top: 6rem;
      padding-top: 3rem;
      border-top: 1px solid rgba(180, 160, 140, 0.25);
      text-align: center;
      font-size: 0.85rem;
      color: #5a4f46;
    }

    /* 飞牛式链接导航条 */
    .footer-nav {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: 0.6rem 1.2rem;
      margin-bottom: 2rem;
    }

    .footer-nav li {
      list-style: none;
      display: flex;
      align-items: center;
    }

    .footer-nav li a {
      color: #5a4f46;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 400;
      letter-spacing: 0.04em;
      transition: color 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .footer-nav li a:hover {
      color: #1e1a17;
    }

    .footer-nav li a i {
      font-size: 0.65rem;
      color: #b09b87;
    }

    /* 竖线分隔符 */
    .footer-nav .divider {
      width: 1px;
      height: 12px;
      background: #d8ccc0;
      display: inline-block;
      margin: 0 0.2rem;
    }

    .footer-copyright {
      font-size: 0.7rem;
      color: #a89888;
      letter-spacing: 0.08em;
      font-weight: 300;
    }

    /* ========== 返回顶部按钮 ========== */
    .back-to-top {
      position: fixed;
      right: 28px;
      bottom: 32px;
      z-index: 999;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(180, 160, 140, 0.4);
      background: rgba(246, 242, 236, 0.9);
      color: #5a4f46;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      backdrop-filter: blur(6px);
      box-shadow: 0 8px 20px -8px rgba(43, 37, 32, 0.35);
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .back-to-top:hover {
      background: #1e1a17;
      color: #f6f2ec;
      border-color: #1e1a17;
    }

    .back-to-top:active {
      transform: translateY(1px) scale(0.97);
    }

    /* ========== 响应式 ========== */
    @media (max-width: 1024px) {
      .container { padding: 2rem 2rem; }
      .qr-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
      .intro-section h1 { font-size: 2.2rem; }
      .diamond-banner { padding: 3.5rem 2.5rem; }
      .diamond-text h2 { font-size: 2.2rem; }
      .diamond-text h2 .num { font-size: 2.8rem; }
    }

    @media (max-width: 768px) {
      .container { padding: 1.5rem 1.5rem; }
      .brand-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
      }

      /* 手机端菜单：放大字号，增强层次感 */
      .primary-nav {
        width: 100%;
        justify-content: flex-start;
      }
      .primary-menu {
        gap: 0.2rem 0.4rem;
        width: 100%;
      }
      .primary-menu li a {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        letter-spacing: 0.1em;
        font-weight: 500;
      }
      .primary-menu li a.current-menu-item,
      .primary-menu li a[aria-current="page"] {
        font-weight: 600;
      }
      .primary-menu li a.current-menu-item::after,
      .primary-menu li a[aria-current="page"]::after {
        width: 20px;
        height: 2px;
        bottom: 0.2rem;
      }
      .primary-menu li + li::before {
        font-size: 1rem;
        margin-right: 0.15rem;
        color: #d2c4b6;
      }
      .primary-menu li + li a {
        margin-left: 0;
      }

      .intro-section { margin: 3rem auto 3.5rem auto; }
      .intro-section h1 { font-size: 2rem; line-height: 1.35; }
      .intro-section .intro-values { font-size: 1.1rem; }
      .product-categories h2,
      .scan-header h2 { font-size: 1.8rem; }
      .product-categories .sub-cat-desc,
      .scan-header p { font-size: 0.8rem; letter-spacing: 0.1em; }
      .diamond-banner { padding: 3rem 1.5rem; }
      .diamond-text h2 { font-size: 1.7rem; }
      .diamond-text h2 .num { font-size: 2.2rem; }
      .diamond-sub { font-size: 0.85rem; margin-bottom: 2rem; }
      .diamond-cta { gap: 1rem; }
      .slogan-strong { font-size: 1.2rem; }
      .category-grid { gap: 0.7rem; }
      .category-item { padding: 0.5rem 1.2rem; font-size: 0.75rem; }
      .footer { margin-top: 4rem; padding-top: 2.5rem; }
      .footer-nav { gap: 0.5rem 0.8rem; }
      .footer-nav li a { font-size: 0.78rem; }
      .back-to-top { right: 18px; bottom: 22px; width: 42px; height: 42px; }
    }

    @media (max-width: 580px) {
      .qr-grid { grid-template-columns: 1fr; justify-items: center; }
      .qr-card { max-width: 300px; }
      .intro-section h1 { font-size: 1.7rem; }
      .intro-eyebrow { font-size: 0.65rem; letter-spacing: 0.25em; }
      .brand-name { font-size: 1.7rem; }

      .primary-menu li a {
        font-size: 0.86rem;
        padding: 0.45rem 0.65rem;
        letter-spacing: 0.08em;
      }

      .product-categories h2,
      .scan-header h2 { font-size: 1.55rem; }
      .product-categories .sub-cat-desc,
      .scan-header p { font-size: 0.72rem; letter-spacing: 0.08em; }
      .scan-header { margin-bottom: 2.5rem; }
      .category-item { font-size: 0.7rem; padding: 0.4rem 1rem; }
      .diamond-text h2 { font-size: 1.45rem; }
      .diamond-text h2 .num { font-size: 1.9rem; }
      .diamond-sub { font-size: 0.78rem; letter-spacing: 0.05em; }
      .diamond-cta { flex-direction: column; gap: 0.9rem; }
      .slogan-strong { font-size: 1.1rem; white-space: normal; }
      .back-to-top { right: 14px; bottom: 18px; width: 40px; height: 40px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .back-to-top { transition: none; }
    }

    .footer-info {
      margin-bottom: 1.6rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .footer-info p {
      margin: 0;
      font-size: 0.82rem;
      color: #5a4f46;
      letter-spacing: 0.04em;
      display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .footer-info i {
      color: #b09b87;
      font-size: 0.75rem;
    }

    .footer-icp a {
      color: #5a4f46;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .footer-icp a:hover {
      color: #1e1a17;
      text-decoration: underline;
    }

    @media (max-width: 580px) {
      .footer-info p {
        font-size: 0.75rem;
        text-align: center;
      }
    }