:root {
    --navy: #0b2b6a;
    --navy-deep: #061d4a;
    --blue: #0047ab;
    --blue-bright: #0c5bcc;
    --blue-soft: #eaf2ff;
    --yellow: #ffd84d;
    --line-green: #06c755;
    --ink: #10234d;
    --text: #344563;
    --muted: #6f7f99;
    --surface: #ffffff;
    --background: #f4f7fb;
    --border: #dbe4f0;
    --shadow-sm: 0 8px 24px rgba(11, 43, 106, 0.08);
    --shadow-md: 0 18px 48px rgba(11, 43, 106, 0.15);
    --shadow-lg: 0 28px 80px rgba(3, 20, 55, 0.24);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --topbar-height: 78px;
    --content-width: 1440px;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--background);
    font-family:
      "Avenir Next",
      "Noto Sans TC",
      "PingFang TC",
      "Microsoft JhengHei",
      sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  body.is-locked {
    overflow: hidden;
  }

  button,
  input,
  a {
    font: inherit;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  button {
    color: inherit;
  }

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

  [hidden] {
    display: none !important;
  }

  :focus-visible {
    outline: 3px solid rgba(0, 71, 171, 0.35);
    outline-offset: 3px;
  }


  /* 共用載入與錯誤畫面 */
  .loading-screen,
  .error-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px;
    background:
      radial-gradient(circle at 50% 36%, rgba(20, 92, 190, 0.92), transparent 34%),
      linear-gradient(145deg, #071d49 0%, #0b2b6a 58%, #064aa5 100%);
  }

  .loading-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 72vw);
    min-height: 126px;
    margin-bottom: 30px;
    padding: 18px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  }

  .loading-logo-image {
    width: 100%;
    height: 90px;
    object-fit: contain;
    object-position: center;
  }

  .loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.24);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: sunriser-spin 0.85s linear infinite;
  }

  .loading-screen p {
    margin: 20px 0 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.06em;
  }

  .loading-screen small {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
  }

  @keyframes sunriser-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .error-screen {
    color: var(--text);
    background: rgba(6, 29, 74, 0.96);
  }

  .error-card {
    width: min(460px, 100%);
    padding: 38px;
    text-align: center;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
  }

  .error-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    color: #ffffff;
    background: var(--blue);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
  }

  .error-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 24px;
  }

  .error-card p {
    margin: 12px 0 24px;
    color: var(--muted);
  }

  .error-card button,
  .error-line-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--blue);
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
  }

  .error-line-link {
    margin-left: 8px;
    background: var(--line-green);
  }


  /* 展場首頁 */
  .app-shell {
    min-height: 100vh;
    background: var(--background);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: var(--topbar-height);
    padding: 10px clamp(18px, 3vw, 48px);
    border-bottom: 1px solid rgba(219, 228, 240, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(11, 43, 106, 0.06);
    backdrop-filter: blur(18px);
  }

  .brand-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 205px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .header-logo-image {
    position: absolute;
    top: -15px;
    left: -2px;
    width: 200px;
    height: auto;
    max-width: none;
  }

  .platform-name {
    display: flex;
    flex-direction: column;
    justify-self: start;
    min-width: 0;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
  }

  .platform-name-main {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
  }

  .platform-name-sub {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
  }

  .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .top-action-button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--navy);
    background: #ffffff;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .top-action-button:hover,
  .top-action-button:active {
    color: #ffffff;
    border-color: var(--blue);
    background: var(--blue);
    transform: translateY(-1px);
  }

  .top-action-button.line-button {
    color: #ffffff;
    border-color: var(--line-green);
    background: var(--line-green);
  }

  .hero-section,
  .discovery-section,
  .case-section,
  .contact-section,
  .site-footer {
    width: min(var(--content-width), calc(100% - clamp(32px, 7vw, 112px)));
    margin-inline: auto;
  }

  .hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    min-height: min(680px, calc(100svh - var(--topbar-height)));
    padding: clamp(56px, 7vw, 104px) clamp(30px, 5vw, 82px);
    overflow: hidden;
    color: #ffffff;
    border-radius: 0 0 34px 34px;
    background:
      linear-gradient(105deg, rgba(6, 29, 74, 0.98) 0%, rgba(11, 43, 106, 0.97) 52%, rgba(0, 71, 171, 0.92) 100%);
    box-shadow: var(--shadow-md);
  }

  .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 82% 42%, rgba(255, 216, 77, 0.15), transparent 24%),
      linear-gradient(90deg, transparent 0 68%, rgba(255, 255, 255, 0.04) 68% 68.15%, transparent 68.15%);
  }

  .hero-copy,
  .hero-visual {
    position: relative;
    z-index: 1;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-eyebrow,
  .section-eyebrow,
  .panel-label,
  .mobile-contact-copy > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.14em;
  }

  .hero-eyebrow {
    color: var(--yellow);
  }

  .hero-copy h1 {
    margin: 16px 0 22px;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.14;
    letter-spacing: -0.035em;
  }

  .hero-description {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 1.8;
  }

  .hero-start-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    min-height: 58px;
    margin-top: 34px;
    padding: 0 25px 0 28px;
    border: 0;
    border-radius: 999px;
    color: var(--navy-deep);
    background: var(--yellow);
    box-shadow: 0 10px 28px rgba(255, 216, 77, 0.2);
    font-weight: 850;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .hero-start-button span {
    font-size: 19px;
  }

  .hero-start-button:hover,
  .hero-start-button:active {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 216, 77, 0.3);
  }

  .hero-visual {
    display: grid;
    place-items: center;
    min-height: 390px;
  }

  .hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
  }

  .hero-orbit-large {
    width: min(420px, 36vw);
    aspect-ratio: 1;
  }

  .hero-orbit-small {
    width: min(295px, 25vw);
    aspect-ratio: 1;
    border-color: rgba(255, 216, 77, 0.34);
  }

  .hero-center-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(230px, 20vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
  }

  .hero-center-card strong {
    margin: 5px 0;
    color: #ffffff;
    font-size: clamp(25px, 2.5vw, 39px);
  }

  .hero-center-card span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
  }

  .hero-center-card .hero-center-label {
    color: var(--yellow);
  }

  .hero-data-card {
    position: absolute;
    z-index: 3;
    min-width: 132px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(7, 29, 72, 0.76);
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
  }

  .hero-data-card span {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
  }

  .hero-data-card strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 21px;
  }

  .hero-data-card-one {
    top: 13%;
    right: 2%;
  }

  .hero-data-card-two {
    bottom: 12%;
    left: 0;
  }

  .discovery-section,
  .case-section {
    padding: clamp(64px, 7vw, 104px) 0 0;
  }

  .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    margin: 7px 0 0;
    color: var(--navy);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.025em;
  }

  .section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    text-align: right;
  }

  .discovery-tabs,
  .content-mode-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    scrollbar-width: none;
  }

  .discovery-tabs::-webkit-scrollbar,
  .content-mode-tabs::-webkit-scrollbar,
  .product-filters::-webkit-scrollbar {
    display: none;
  }

  .discovery-tab,
  .content-mode-button {
    flex: 1 0 auto;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    color: var(--muted);
    background: transparent;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .discovery-tab:hover,
  .content-mode-button:hover {
    color: var(--blue);
    background: var(--blue-soft);
  }

  .discovery-tab.is-active,
  .content-mode-button.is-active {
    color: #ffffff;
    background: var(--navy);
    box-shadow: 0 8px 18px rgba(11, 43, 106, 0.18);
  }

  .discovery-panel {
    margin-top: 22px;
  }

  .discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .discovery-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 126px;
    padding: 20px;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: 0.2s ease;
  }

  .discovery-card:hover,
  .discovery-card:active {
    border-color: rgba(0, 71, 171, 0.48);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .discovery-number {
    align-self: start;
    margin-right: 13px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
  }

  .discovery-card-copy {
    min-width: 0;
  }

  .discovery-card-copy strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.45;
  }

  .discovery-card-copy small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
  }

  .discovery-arrow {
    margin-left: 10px;
    color: var(--blue);
    font-size: 19px;
    transition: transform 0.2s ease;
  }

  .discovery-card:hover .discovery-arrow {
    transform: translateX(4px);
  }

  .topic-chip-grid,
  .product-discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .topic-chip-grid button,
  .product-discovery-grid button,
  .product-filter-button {
    min-height: 58px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--navy);
    background: #ffffff;
    font-weight: 750;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .topic-chip-grid button:hover,
  .product-discovery-grid button:hover,
  .product-filter-button:hover,
  .product-filter-button.is-active {
    color: #ffffff;
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 9px 22px rgba(0, 71, 171, 0.16);
    transform: translateY(-2px);
  }

  .case-section {
    padding-bottom: 88px;
  }

  .case-section-heading {
    align-items: center;
  }

  .case-count {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: #ffffff;
    font-size: 13px;
  }

  .case-count strong {
    color: var(--navy);
    font-size: 18px;
  }

  .content-mode-tabs {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(0, 2.4fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
  }

  .search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(11, 43, 106, 0.04);
  }

  .search-box:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.08);
  }

  .search-icon {
    flex: 0 0 auto;
    padding-left: 17px;
    color: var(--blue);
    font-size: 21px;
  }

  .search-box input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 43px 0 11px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
  }

  .search-box input::placeholder {
    color: #92a0b5;
  }

  .clear-search-button {
    position: absolute;
    right: 9px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: var(--background);
    font-size: 20px;
    cursor: pointer;
  }

  .product-filters {
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 3px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-filter-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
  }

  .reset-filter-button {
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
  }

  .active-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-left: 4px solid var(--yellow);
    border-radius: 10px;
    color: var(--muted);
    background: #edf4ff;
    font-size: 13px;
  }

  .active-filter-bar strong {
    color: var(--navy);
  }

  .active-filter-bar button {
    margin-left: auto;
    padding: 5px 11px;
    border: 0;
    border-radius: 999px;
    color: var(--blue);
    background: #ffffff;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
  }

  .case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .case-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: 0.24s ease;
  }

  .case-card:hover {
    border-color: rgba(0, 71, 171, 0.35);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }

  .case-card-action {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .case-thumbnail {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #eef2f7;
  }

  .case-thumbnail-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
  }

  .case-thumbnail-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.74);
    background: linear-gradient(145deg, var(--navy-deep), var(--blue));
  }

  .case-thumbnail-placeholder span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
  }

  .case-thumbnail-placeholder strong {
    color: #ffffff;
    font-size: 32px;
    letter-spacing: 0.1em;
  }

  .case-type-badge,
  .case-image-hint {
    position: absolute;
    z-index: 3;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(7, 29, 72, 0.87);
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(7px);
  }

  .case-type-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
  }

  .case-image-hint {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.2s ease;
  }

  .case-card:hover .case-image-hint {
    opacity: 1;
    transform: translateY(0);
  }

  .case-card-content {
    padding: 18px 19px 17px;
  }

  .case-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 24px;
  }

  .case-card-id {
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .case-card-product {
    max-width: 58%;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .case-card-title {
    display: -webkit-box;
    min-height: 54px;
    margin: 10px 0 8px;
    overflow: hidden;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .case-card-summary {
    display: -webkit-box;
    min-height: 63px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .case-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #edf1f6;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
  }

  .case-card-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
  }

  .case-card:hover .case-card-arrow {
    transform: translateX(4px);
  }

  .empty-state {
    padding: 68px 24px;
    text-align: center;
    border: 1px dashed #cbd7e6;
    border-radius: 22px;
    background: #ffffff;
  }

  .empty-state-icon {
    color: var(--blue);
    font-size: 38px;
  }

  .empty-state h3 {
    margin: 8px 0 5px;
    color: var(--navy);
  }

  .empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
  }

  .empty-state button,
  .load-more-button {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--blue);
    font-weight: 750;
    cursor: pointer;
  }

  .load-more-area {
    padding-top: 28px;
    text-align: center;
  }

  .load-more-button {
    min-width: 180px;
  }

  .contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
    margin-bottom: 72px;
    padding: clamp(34px, 5vw, 64px);
    overflow: hidden;
    color: #ffffff;
    border-radius: 30px;
    background:
      radial-gradient(circle at 84% 48%, rgba(255, 216, 77, 0.16), transparent 23%),
      linear-gradient(120deg, var(--navy-deep), var(--navy) 62%, #064ea9);
    box-shadow: var(--shadow-md);
  }

  .contact-copy .section-eyebrow {
    color: var(--yellow);
  }

  .contact-copy h2 {
    margin: 8px 0 14px;
    font-size: clamp(27px, 3vw, 44px);
    line-height: 1.25;
  }

  .contact-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
  }

  .line-account {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .line-account span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
  }

  .line-account strong {
    color: #ffffff;
  }

  .line-contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .line-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 13px;
    border-radius: 17px;
    color: var(--navy);
    background: #ffffff;
  }

  .line-qr-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
  }

  .line-qr-link,
  .mobile-line-qr-link,
  .panel-line-qr-link {
    display: block;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .line-qr-link:hover,
  .mobile-line-qr-link:hover,
  .panel-line-qr-link:hover {
    transform: scale(1.025);
  }

  .line-qr-card span {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 750;
  }

  .contact-line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--line-green);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 0 0 32px;
    color: var(--muted);
    font-size: 12px;
  }

  .site-footer div {
    display: flex;
    flex-direction: column;
  }

  .site-footer strong {
    color: var(--navy);
    font-size: 14px;
  }

  .site-footer span {
    letter-spacing: 0.08em;
  }

  .site-footer p {
    margin: 0;
  }


  /* 展場案例快速預覽 */
  .case-panel {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: clamp(10px, 2vw, 28px);
  }

  .case-panel-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 16, 45, 0.76);
    backdrop-filter: blur(9px);
    cursor: pointer;
  }

  .case-panel-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1500px, 100%);
    height: min(900px, calc(100svh - clamp(20px, 4vw, 56px)));
    max-height: calc(100svh - clamp(20px, 4vw, 56px));
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
  }

  .case-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(22px, 3vw, 42px) 19px;
    border-bottom: 1px solid var(--border);
  }

  .case-panel-header > div {
    min-width: 0;
  }

  .case-panel-header span {
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .case-panel-header h2 {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: clamp(23px, 2.6vw, 39px);
    line-height: 1.28;
  }

  .close-panel-button {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--navy);
    background: #edf2f8;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }

  .case-panel-body {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(300px, 0.85fr);
    min-height: 0;
    overflow: hidden;
  }

  .panel-image-section {
    min-width: 0;
    min-height: 0;
    padding: 22px clamp(20px, 3vw, 42px) 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .panel-image-heading,
  .mobile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
  }

  .panel-image-heading strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
  }

  .panel-image-heading > div:first-child {
    min-width: 0;
  }

  .panel-image-heading span,
  .mobile-section-heading > span {
    color: var(--muted);
    font-size: 11px;
  }

  .panel-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .panel-photo-item {
    min-width: 0;
  }

  .panel-photo-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    line-height: 0;
    cursor: zoom-in;
  }

  .panel-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: contain;
  }

  .panel-visual-tabs {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f4f7fb;
  }

  .panel-visual-tabs button {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
  }

  .panel-visual-tabs button.is-active {
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 7px 16px rgba(0, 71, 171, 0.2);
  }

  .panel-video-area {
    width: 100%;
    padding-bottom: 4px;
  }

  .panel-video-open-link,
  .panel-research-area > a {
    display: none;
  }

  .panel-video-frame,
  .mobile-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: var(--navy-deep);
    box-shadow: var(--shadow-sm);
  }

  .panel-video-frame iframe,
  .mobile-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .panel-research-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 340px;
    padding: clamp(30px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid #cfdbec;
    border-radius: 22px;
    background:
      linear-gradient(90deg, var(--yellow) 0 7px, transparent 7px),
      linear-gradient(145deg, #ffffff, #edf4ff);
    box-shadow: var(--shadow-sm);
  }

  .panel-research-eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.14em;
  }

  .panel-research-area > strong {
    margin-top: 10px;
    color: var(--navy);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.35;
  }

  .panel-research-area > p {
    display: -webkit-box;
    max-width: 800px;
    margin: 14px 0 0;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  .panel-photo-label,
  .mobile-photo-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin-top: 9px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--navy);
    background: #f5f8fc;
    font-size: 14px;
    font-weight: 800;
  }

  .photo-step-number {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.05em;
  }

  .photo-step-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .panel-case-information {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 22px clamp(20px, 2.5vw, 34px) 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid var(--border);
    background: #f7f9fc;
  }

  .panel-case-tags,
  .mobile-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .panel-case-tags span,
  .mobile-case-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--blue);
    background: #eaf2ff;
    font-size: 11px;
    font-weight: 750;
  }

  .panel-summary {
    margin-top: 18px;
    padding: 20px;
    border-radius: 17px;
    background: #ffffff;
  }

  .panel-summary p {
    margin: 8px 0 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
  }

  .panel-media-actions,
  .mobile-video-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
  }

  .panel-media-link,
  .mobile-video-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 50px;
    padding: 11px 16px;
    border-radius: 13px;
    color: #ffffff;
    background: var(--blue);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: 0.2s ease;
  }

  .panel-media-link:hover,
  .mobile-video-link:hover {
    background: var(--navy);
    transform: translateY(-1px);
  }

  .panel-share-card {
    margin-top: 18px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
  }

  .case-share-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .case-share-copy span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .case-share-copy strong {
    color: var(--navy);
    font-size: 14px;
  }

  .panel-qr-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
  }

  .panel-qr-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 8px 3px 7px;
    border-radius: 12px;
    color: var(--navy);
    background: #f3f7fc;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
  }

  .panel-qr-item > span {
    display: block;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .panel-qr-code {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    padding: 4px;
    overflow: hidden;
    border-radius: 7px;
    background: #ffffff;
  }

  .panel-qr-code img,
  .panel-qr-code canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .copy-link-button {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 0 17px;
    border: 1px solid #bfd0e8;
    border-radius: 12px;
    color: var(--blue);
    background: #ffffff;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
  }

  .copy-link-button.is-copied {
    color: var(--navy);
    border-color: var(--yellow);
    background: var(--yellow);
  }


  /* 圖片全螢幕檢視器 */
  .image-viewer {
    position: fixed;
    inset: 0;
    z-index: 4500;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 16px;
    color: #ffffff;
  }

  .image-viewer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 10, 28, 0.97);
    cursor: pointer;
  }

  .image-viewer-header,
  .image-viewer-stage,
  .image-viewer-toolbar,
  .image-viewer-navigation {
    position: relative;
    z-index: 1;
  }

  .image-viewer-header {
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 0 6px 10px;
  }

  .image-viewer-header > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .image-viewer-header strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .image-viewer-header span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
  }

  .image-viewer-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 28px;
    cursor: pointer;
  }

  .image-viewer-stage {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
    cursor: zoom-in;
  }

  .image-viewer-stage img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transform:
      translate3d(
        var(--viewer-x, 0),
        var(--viewer-y, 0),
        0
      )
      scale(var(--viewer-scale, 1));
    transform-origin: center;
    transition: transform 0.16s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
  }

  .image-viewer-stage.is-zoomed {
    cursor: grab;
  }

  .image-viewer-stage.is-dragging {
    cursor: grabbing;
  }

  .image-viewer-stage.is-interacting img {
    transition: none;
  }

  .image-viewer-navigation {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 72px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    backdrop-filter: blur(8px);
  }

  .image-viewer-previous {
    left: 20px;
  }

  .image-viewer-next {
    right: 20px;
  }

  .image-viewer-toolbar {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding-top: 10px;
  }

  .image-viewer-toolbar button {
    min-width: 48px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 750;
    cursor: pointer;
  }


  /* 醫師掃碼後的單一案例頁 */
  .mobile-case-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    background: #f4f7fb;
  }

  .mobile-case-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 8px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(11, 43, 106, 0.06);
    backdrop-filter: blur(16px);
  }

  .mobile-case-brand {
    position: relative;
    display: flex;
    align-items: center;
    width: 183px;
    height: 62px;
    overflow: hidden;
  }

  .mobile-header-logo {
    position: absolute;
    top: -14px;
    left: -2px;
    width: 185px;
    height: auto;
    max-width: none;
  }

  .mobile-line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--line-green);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-case-main {
    width: min(980px, calc(100% - 28px));
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding: 18px 0 36px;
  }

  .mobile-case-hero {
    padding: clamp(27px, 6vw, 54px);
    overflow: hidden;
    color: #ffffff;
    border-radius: 24px;
    background:
      radial-gradient(circle at 90% 15%, rgba(255, 216, 77, 0.18), transparent 25%),
      linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--blue));
    box-shadow: var(--shadow-md);
  }

  .mobile-case-id {
    color: var(--yellow);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .mobile-case-hero h1 {
    margin: 10px 0 13px;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: clamp(27px, 6vw, 46px);
    line-height: 1.28;
    letter-spacing: -0.025em;
  }

  .mobile-case-hero > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
  }

  .mobile-case-tags {
    margin-top: 18px;
  }

  .mobile-case-tags span {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.11);
  }

  .mobile-content-card,
  .mobile-contact-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }

  .mobile-section-title {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
  }

  .mobile-section-description {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
  }

  .mobile-photo-list {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 20px;
  }

  .mobile-photo-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mobile-photo-button {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    line-height: 0;
    cursor: zoom-in;
  }

  .mobile-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: #ffffff;
    object-fit: contain;
  }

  .mobile-video-list {
    margin-top: 16px;
  }

  .mobile-video-frame {
    margin-bottom: 14px;
  }

  .mobile-video-preview {
    width: 100%;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .mobile-video-preview-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    color: #ffffff;
    background: var(--navy-deep);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
  }

  .mobile-video-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-video-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(
      180deg,
      rgba(3, 16, 45, 0.08),
      rgba(3, 16, 45, 0.7)
    );
  }

  .mobile-video-preview-play {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding-left: 4px;
    border-radius: 18px;
    color: #ffffff;
    background: #ff0033;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    font-size: 24px;
  }

  .mobile-video-preview-text {
    font-size: 14px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  }

  .mobile-video-link {
    min-height: 54px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .mobile-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    border: 0;
    background: var(--navy);
  }

  .mobile-contact-copy > span {
    color: var(--yellow);
  }

  .mobile-contact-copy h2 {
    margin: 7px 0 10px;
    font-size: 25px;
    line-height: 1.35;
  }

  .mobile-contact-copy p {
    margin: 0 0 13px;
    color: rgba(255, 255, 255, 0.73);
    font-size: 13px;
  }

  .mobile-contact-copy strong {
    color: #ffffff;
  }

  .mobile-line-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: var(--navy);
    background: #ffffff;
  }

  .mobile-line-qr-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
  }

  .mobile-line-qr-card span {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 750;
  }

  .mobile-case-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 22px max(30px, env(safe-area-inset-bottom));
    color: var(--muted);
    text-align: center;
    font-size: 11px;
  }

  .mobile-case-footer strong {
    color: var(--navy);
    font-size: 13px;
  }

  .mobile-case-footer span {
    letter-spacing: 0.07em;
  }


  /* 小型筆電與平板 */
  @media (max-width: 1180px) {
    :root {
      --topbar-height: 72px;
    }

    .topbar {
      padding-inline: 22px;
    }

    .brand-button {
      width: 186px;
      height: 62px;
    }

    .header-logo-image {
      top: -14px;
      width: 188px;
    }

    .platform-name {
      margin-left: 13px;
      padding-left: 13px;
    }

    .top-action-button {
      padding-inline: 13px;
      font-size: 12px;
    }

    .hero-section {
      grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    }

    .discovery-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-chip-grid,
    .product-discovery-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-panel {
      grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr) auto;
    }

    .case-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-panel-body {
      grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.8fr);
    }

  }


  /* 直式平板與手機 */
  @media (max-width: 820px) {
    .topbar {
      grid-template-columns: auto 1fr auto;
      min-height: 68px;
      padding: 8px 14px;
    }

    .brand-button {
      width: 164px;
      height: 58px;
    }

    .header-logo-image {
      top: -13px;
      width: 166px;
    }

    .platform-name {
      display: none;
    }

    .top-action-button:not(.line-button) {
      display: none;
    }

    .top-action-button.line-button {
      min-height: 40px;
      padding-inline: 14px;
    }

    .hero-section,
    .discovery-section,
    .case-section,
    .contact-section,
    .site-footer {
      width: min(100% - 28px, var(--content-width));
    }

    .hero-section {
      grid-template-columns: 1fr;
      min-height: auto;
      padding: 54px 28px;
      border-radius: 0 0 26px 26px;
    }

    .hero-copy h1 {
      font-size: clamp(36px, 9vw, 56px);
    }

    .hero-visual {
      display: none;
    }

    .section-heading {
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
    }

    .section-heading > p {
      text-align: left;
    }

    .discovery-tabs,
    .content-mode-tabs {
      width: 100%;
    }

    .discovery-tab,
    .content-mode-button {
      flex: 0 0 auto;
      min-height: 46px;
      padding-inline: 17px;
    }

    .topic-chip-grid,
    .product-discovery-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
      grid-template-columns: 1fr auto;
    }

    .search-box,
    .product-filters {
      grid-column: 1 / -1;
    }

    .product-filters {
      grid-row: 2;
    }

    .reset-filter-button {
      grid-row: 3;
      grid-column: 2;
    }

    .case-grid {
      gap: 14px;
    }

    .contact-section {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .line-contact-actions {
      justify-content: flex-start;
    }

    .site-footer {
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
    }

    .case-panel {
      padding: 0;
    }

    .case-panel-dialog {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 100%;
      height: 100svh;
      max-height: none;
      border-radius: 0;
    }

    .case-panel-body {
      flex: 1 1 auto;
      display: block;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    .panel-image-section,
    .panel-case-information {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: visible;
    }

    .panel-photo-grid {
      grid-template-columns: 1fr;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

    .panel-photo-item,
    .panel-photo-button,
    .panel-photo-image {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      max-height: none;
    }

    .panel-case-information {
      border-top: 1px solid var(--border);
      border-left: 0;
    }

    .panel-qr-group {
      width: 100%;
      flex-wrap: wrap;
    }

    .panel-share-card {
      display: none;
    }

    .mobile-case-main {
      width: min(100% - 22px, 980px);
    }
  }


  /* 手機 */
  @media (max-width: 560px) {
    .loading-screen {
      padding: 22px;
    }

    .loading-logo-card {
      width: min(310px, 84vw);
      min-height: 108px;
      padding: 14px 22px;
    }

    .loading-logo-image {
      height: 78px;
    }

    .error-card {
      padding: 30px 22px;
    }

    .error-card button,
    .error-line-link {
      display: flex;
      width: 100%;
      margin: 8px 0 0;
    }

    .hero-section {
      padding: 44px 22px 48px;
    }

    .hero-copy h1 {
      font-size: 35px;
    }

    .hero-description {
      font-size: 15px;
    }

    .discovery-section,
    .case-section {
      padding-top: 56px;
    }

    .section-heading h2 {
      font-size: 29px;
    }

    .discovery-grid,
    .topic-chip-grid,
    .product-discovery-grid,
    .case-grid {
      grid-template-columns: 1fr;
    }

    .discovery-card {
      min-height: 106px;
    }

    .case-section-heading {
      flex-direction: row;
      align-items: flex-end;
    }

    .case-count {
      padding: 7px 11px;
    }

    .case-thumbnail {
      aspect-ratio: 16 / 10;
    }

    .case-image-hint {
      opacity: 1;
      transform: none;
    }

    .contact-section {
      padding: 28px 22px;
    }

    .line-contact-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .line-qr-card {
      align-self: center;
    }

    .site-footer p {
      line-height: 1.5;
    }

    .case-panel-header {
      padding: 16px 16px 14px;
    }

    .case-panel-header h2 {
      font-size: 22px;
    }

    .close-panel-button {
      width: 42px;
      height: 42px;
    }

    .panel-image-section,
    .panel-case-information {
      padding: 18px 16px 22px;
    }

    .panel-qr-item {
      flex-direction: column;
      text-align: center;
    }

    .image-viewer {
      padding: 10px;
    }

    .image-viewer-navigation {
      top: auto;
      bottom: 78px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      font-size: 32px;
      transform: none;
    }

    .image-viewer-previous {
      left: 14px;
    }

    .image-viewer-next {
      right: 14px;
    }

    .mobile-case-topbar {
      min-height: 64px;
      padding-block: 6px;
    }

    .mobile-case-brand {
      width: 158px;
      height: 54px;
    }

    .mobile-header-logo {
      top: -12px;
      width: 160px;
    }

    .mobile-case-hero {
      padding: 27px 21px;
      border-radius: 20px;
    }

    .mobile-case-hero h1 {
      font-size: 28px;
    }

    .mobile-content-card,
    .mobile-contact-card {
      padding: 18px;
      border-radius: 18px;
    }

    .mobile-section-heading {
      align-items: flex-start;
      flex-direction: column;
      gap: 2px;
    }

    .mobile-contact-card {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .mobile-line-qr-card {
      justify-self: center;
    }

  }


  /* 橫式展場裝置高度較低時，讓案例彈窗完整容納 */
  @media (orientation: landscape) and (max-height: 900px) {
    .panel-video-frame {
      width: min(100%, 820px);
      margin-inline: auto;
    }
  }


  @media (orientation: landscape) and (max-height: 760px) {
    .case-panel {
      padding: 8px;
    }

    .case-panel-dialog {
      height: calc(100svh - 16px);
      max-height: calc(100svh - 16px);
      border-radius: 20px;
    }

    .case-panel-header {
      padding-top: 13px;
      padding-bottom: 12px;
    }

    .case-panel-header h2 {
      font-size: clamp(20px, 2.2vw, 31px);
    }

    .close-panel-button {
      width: 42px;
      height: 42px;
    }

    .panel-image-section,
    .panel-case-information {
      padding-top: 14px;
      padding-bottom: 16px;
    }

    .panel-photo-button {
      min-height: 0;
    }

    .panel-video-frame {
      width: min(100%, 720px);
    }

    .panel-summary {
      margin-top: 11px;
      padding: 15px;
    }

    .panel-summary p {
      max-height: 118px;
      overflow: auto;
      font-size: 12px;
      line-height: 1.65;
    }

    .panel-media-actions {
      gap: 6px;
      margin-top: 10px;
    }

    .panel-media-link {
      min-height: 42px;
      padding-block: 8px;
    }

    .panel-qr-code {
      width: 118px;
      height: 118px;
    }
  }


  .panel-share-card .panel-qr-code canvas {
    image-rendering: pixelated;
  }


  /* 電腦版案例視窗尺寸微調 */
  @media (min-width: 821px) {
    .case-panel-header {
      padding: 13px clamp(22px, 2.4vw, 34px) 12px;
    }

    .case-panel-header h2 {
      margin-top: 3px;
      font-size: clamp(22px, 1.9vw, 30px);
      line-height: 1.2;
    }

    .close-panel-button {
      width: 42px;
      height: 42px;
      font-size: 27px;
    }

    .panel-video-frame {
      width: min(100%, 900px);
      margin-inline: auto;
    }

  }


  @media (min-width: 821px) and (max-width: 1100px) {
    .panel-share-card {
      padding: 11px;
    }

    .panel-qr-code {
      width: 106px;
      height: 106px;
    }

    .panel-qr-item {
      font-size: 9px;
    }

    .panel-qr-item > span {
      white-space: normal;
    }
  }


  @media (min-width: 821px) and (max-height: 760px) {
    .panel-video-frame {
      width: min(100%, 720px);
    }
  }


  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
  }
