/* 2026-11-26 商品卡片描述美化(带图标)。由 includes/hooks/haruka_store_cards.php 在 <head> 里加载,
   链接带文件修改时间,改完不用清 CDN。只作用于描述里的 .pk 结构;删掉钩子文件即恢复无样式的纯文字。 */
.pk { text-align: left; max-width: 320px; margin: 0 auto; width: 100%; }
.pk-hero { display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 10px;
  background: rgba(16, 98, 254, .07); color: var(--brand-primary, #1062fe);
  font-size: 17px; font-weight: 600; line-height: 1.3; text-align: center; }
.pk-hero i { font-size: 15px; }
.pk-hero strong { font-weight: 600; }
.pk-row { display: flex; align-items: center; gap: 12px; padding: 6px 2px; font-size: 14px; line-height: 1.4; }
.pk-row i { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; background: rgba(15, 23, 42, .05); color: #5b6577;
  transition: background-color .2s ease, color .2s ease; }
.package:hover .pk-row i { background: rgba(16, 98, 254, .09); color: var(--brand-primary, #1062fe); }
.pk-row strong { font-weight: 600; }
.pk-notes { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(15, 23, 42, .12);
  font-size: 12px; line-height: 1.5; color: #8a93a2; }
.pk-note { display: flex; align-items: baseline; gap: 9px; padding: 2.5px 2px; }
.pk-note i { flex: none; width: 14px; text-align: center; font-size: 10.5px; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .pk-row i { transition: none; } }

/* 整个分组共用的条款:由钩子里的脚本从各卡片里抽出来,只在商品列表下方显示一次 */
.pk-shared { margin: 4px 0 24px; padding: 18px 22px; border-radius: 12px; text-align: left;
  background: rgba(15, 23, 42, .03); border: 1px solid rgba(15, 23, 42, .07);
  animation: pk-shared-in .35s ease both; }
.pk-shared-title { display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
  font-size: 13px; font-weight: 600; color: #3b4352; }
.pk-shared-title i { color: var(--brand-primary, #1062fe); font-size: 13px; }
.pk-shared-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 28px;
  font-size: 12.5px; line-height: 1.5; color: #6b7482; }
.pk-shared-list .pk-note { padding: 3px 0; }
@keyframes pk-shared-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pk-shared { animation: none; } }

/* ===== 2026-11-26 商店列表页整体重排(只作用于 body.page-products) =====
   页面加宽、左侧分类栏改成顶部一排标签、商品改成自适应多列网格、卡片收紧。 */
body.page-products { --container-xl-max-width: 1600px; }
body.page-products .main-header { padding-top: 26px; }
body.page-products .main-header-title { font-size: 30px; line-height: 1.25; }
body.page-products .main-header p { margin: 6px 0 0; }
body.page-products .main-body { padding-top: 18px; }

@media (min-width: 1200px) {
  body.page-products .main-grid { display: block; }
  body.page-products .main-sidebar { width: auto; margin: 0 0 16px; }
  body.page-products .main-sidebar + .main-content { max-width: none; }
  body.page-products .main-sidebar .panel-sidebar ~ .panel-sidebar,
  body.page-products .main-sidebar .panel-heading { display: none; }
  body.page-products .main-sidebar .panel-sidebar { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  body.page-products .main-sidebar .list-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
  body.page-products .main-sidebar .panel-sidebar .list-group .list-group-item { display: inline-flex !important; align-items: center; gap: 8px;
    width: auto !important; margin: 0 !important; padding: 7px 16px !important; border: 1px solid rgba(15, 23, 42, .1) !important;
    border-radius: 999px !important; background: #fff !important; font-size: 13.5px; line-height: 1.4; color: #3b4352 !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
  body.page-products .main-sidebar .panel-sidebar .list-group .list-group-item i { margin: 0 !important; color: inherit !important; font-size: 13px; }
  body.page-products .main-sidebar .panel-sidebar .list-group .list-group-item:hover { border-color: var(--brand-primary, #1062fe) !important;
    color: var(--brand-primary, #1062fe) !important; }
  body.page-products .main-sidebar .panel-sidebar .list-group .list-group-item.active,
  body.page-products .main-sidebar .panel-sidebar .list-group .list-group-item.pk-current { background: var(--brand-primary, #1062fe) !important;
    border-color: var(--brand-primary, #1062fe) !important; color: #fff !important; }
}

body.page-products #products { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
body.page-products #products > .row { display: contents; }
body.page-products #products > .row::before, body.page-products #products > .row::after { display: none; }
body.page-products #products > .row > .col { display: flex; flex: none; width: auto; max-width: 440px; padding: 0; }
body.page-products #products .package { width: 100%; margin: 0; padding: 20px 20px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
body.page-products #products .package:hover { transform: translateY(-3px); border-color: rgba(16, 98, 254, .35);
  box-shadow: 0 10px 28px rgba(16, 98, 254, .10); }
body.page-products #products .package-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
body.page-products #products .package-title + .package-price { margin-top: 8px; }
body.page-products #products .package-header .price-starting-from,
body.page-products #products .package-header .price-cycle { font-size: 11px; line-height: 1.4; }
body.page-products #products .package-header .price-amount { font-size: 25px; line-height: 1.25; }
body.page-products #products .package-body { margin-top: 12px; }
body.page-products #products .pk { max-width: none; }
body.page-products #products .pk-hero { margin-bottom: 8px; padding: 9px 10px; font-size: 14.5px; }
body.page-products #products .pk-hero i { font-size: 13px; }
body.page-products #products .pk-row { gap: 10px; padding: 3.5px 0; font-size: 13px; }
body.page-products #products .pk-row i { width: 26px; height: 26px; border-radius: 7px; font-size: 11.5px; }
body.page-products #products .pk-notes { margin-top: 10px; padding-top: 9px; font-size: 11.5px; }
body.page-products #products .btn-order-now { display: block; width: 100%; height: auto; min-height: 0; margin-top: 14px;
  padding: 10px 12px; font-size: 14px; line-height: 1.4; }
body.page-products .pk-shared { margin: 18px 0 0; }
@media (prefers-reduced-motion: reduce) {
  body.page-products #products .package, body.page-products .main-sidebar .list-group-item { transition: none; }
  body.page-products #products .package:hover { transform: none; }
}

/* ===== 2026-11-26 主页(templates/lagom2/haruka-home.tpl) ===== */
body:has(.hrk-home) { --container-xl-max-width: 1600px; }
.hrk-home { color: #1b2130; }
.hrk-hero { padding: 34px 0 30px; color: #fff;
  background: radial-gradient(1200px 300px at 85% -40%, rgba(0, 154, 255, .55), transparent 70%), linear-gradient(120deg, #0b2a8f, #1062fe); }
.hrk-hero__title { margin: 0 0 18px; color: #fff; font-size: 30px; font-weight: 700; line-height: 1.25; }
.hrk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hrk-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: 10px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff !important; font-size: 14.5px; font-weight: 500;
  text-decoration: none !important; transition: background-color .2s ease, transform .2s ease; }
.hrk-action:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.hrk-action i { font-size: 14px; opacity: .9; }
.hrk-body { padding-top: 26px; padding-bottom: 40px; }
.hrk-sec + .hrk-sec { margin-top: 30px; }
.hrk-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.hrk-sec__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hrk-sec__sub { margin: 3px 0 0; font-size: 13px; color: #7a8394; }
.hrk-sec__more { flex: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.hrk-sec__more i { font-size: 11px; margin-left: 4px; transition: transform .2s ease; }
.hrk-sec__more:hover i { transform: translateX(3px); }
.hrk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hrk-plan { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(15, 23, 42, .1); color: inherit !important; text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hrk-plan:hover { transform: translateY(-3px); border-color: rgba(16, 98, 254, .4); box-shadow: 0 10px 28px rgba(16, 98, 254, .10); }
.hrk-plan__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hrk-plan__name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.hrk-plan__price { flex: none; white-space: nowrap; }
.hrk-plan__price b { font-size: 22px; font-weight: 700; }
.hrk-plan__price small { margin-left: 2px; font-size: 12px; color: #7a8394; }
.hrk-plan__hero { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; padding: 7px 10px; border-radius: 8px;
  background: rgba(16, 98, 254, .07); color: var(--brand-primary, #1062fe); font-size: 13.5px; font-weight: 600; }
.hrk-plan__hero i { font-size: 12px; }
.hrk-plan__specs { flex: 1; margin: 0; padding: 0; list-style: none; font-size: 13px; color: #4b5565; }
.hrk-plan__specs li { display: flex; align-items: center; gap: 9px; padding: 3px 0; }
.hrk-plan__specs i { flex: none; width: 16px; text-align: center; font-size: 11.5px; color: #8a93a2; }
.hrk-plan__cta { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--brand-primary, #1062fe); }
.hrk-plan__cta i { font-size: 11px; margin-left: 4px; transition: transform .2s ease; }
.hrk-plan:hover .hrk-plan__cta i { transform: translateX(3px); }
.hrk-plan.is-soldout { opacity: .6; }
.hrk-plan.is-soldout .hrk-plan__cta { color: #8a93a2; }
.hrk-dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.hrk-dest { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 11px 14px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(15, 23, 42, .1); color: inherit !important; text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hrk-dest:hover { transform: translateY(-2px); border-color: rgba(16, 98, 254, .4); box-shadow: 0 8px 22px rgba(16, 98, 254, .09); }
.hrk-dest__flags { grid-row: span 2; display: flex; }
.hrk-dest__flags img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.hrk-dest__flags img + img { margin-left: -10px; }
.hrk-dest__name { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrk-dest__price { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrk-dest__price { font-size: 12.5px; color: #7a8394; }
.hrk-dest__price b { color: #1b2130; }
.hrk-dest__price s { opacity: .7; }
.hrk-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.hrk-news__item { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(15, 23, 42, .1); color: inherit !important; text-decoration: none !important; transition: border-color .2s ease; }
.hrk-news__item:hover { border-color: rgba(16, 98, 254, .4); }
.hrk-news__date { font-size: 12px; color: #7a8394; }
.hrk-news__title { font-size: 16px; font-weight: 600; color: var(--brand-primary, #1062fe); }
.hrk-news__text { font-size: 13px; line-height: 1.6; color: #4b5565; }
@media (max-width: 600px) { .hrk-hero__title { font-size: 24px; } .hrk-action { flex: 1 1 calc(50% - 10px); justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .hrk-action, .hrk-plan, .hrk-dest, .hrk-sec__more i, .hrk-plan__cta i { transition: none; } .hrk-action:hover, .hrk-plan:hover, .hrk-dest:hover { transform: none; } }
