/* ============================================================
   Editorial Theme (model29) - 公共样式
   风格：杂志编辑部风（黑 + 纸白 + 朱红）
   字体：Montserrat-Regular（全站统一）
   ============================================================ */

/* ========== 变量 ========== */
:root {
  --ed-ink:    #141414;   /* 墨黑 */
  --ed-ink-70: #4A4A4A;
  --ed-paper:  #F7F5F0;   /* 纸白 */
  --ed-white:  #FFFFFF;
  --ed-accent: #E8482B;   /* 朱红 */
  --ed-gray:   #77726A;   /* 暖灰 */
  --ed-line:   #141414;   /* 线条黑 */
  --ed-line-soft: rgba(20,20,20,0.12);
  --ed-ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --ed-trans:  0.3s var(--ed-ease);
  --ed-serif:  'edSans', 'Montserrat', sans-serif;
  --ed-sans:   'edSans', 'Montserrat', sans-serif;
}

/* ========== 字体 ========== */
@font-face {
  font-family: 'edSans';
  src: url('../fonts/Montserrat-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}

/* ========== 基础 ========== */
html, body {
  font-family: var(--ed-sans) !important;
  color: var(--ed-ink);
  background: var(--ed-paper);
}
body.nov-body {
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--ed-paper);
}
.nov-home { background: var(--ed-paper); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ed-serif) !important;
  font-weight: 400;
  color: var(--ed-ink);
  margin: 0;
  line-height: 1.15;
}
a, span, p, li, button, input, select, textarea, label, div {
  font-family: var(--ed-sans) !important;
}
a {
  color: var(--ed-ink);
  text-decoration: none;
  transition: color var(--ed-trans);
}
a:hover { color: var(--ed-accent); }
img { max-width: 100%; }

/* UK 容器对齐编辑风留白 */
.uk-container { padding: 0 24px; }

/* ============================================================
   Tape：顶部公告跑马灯
   ============================================================ */
.ed-tape {
  background: var(--ed-ink);
  color: var(--ed-white);
  overflow: hidden;
  padding: 9px 0;
  border-bottom: 1px solid var(--ed-ink);
}
.ed-tape__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: edTape 24s linear infinite;
}
.ed-tape__track span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ed-white);
}
.ed-tape__sep {
  color: var(--ed-accent) !important;
  margin: 0 22px;
  font-size: 11px;
}
@keyframes edTape {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Head：主导航
   ============================================================ */
.ed-head__bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ed-white);
  border-bottom: 1px solid var(--ed-line);
}
.ed-head__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  gap: 24px;
}
.ed-head__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* 汉堡（移动端） */
.ed-head__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ed-ink);
}
/* Logo：衬线 + 朱红句点 */
.ed-head__logo {
  font-family: var(--ed-serif) !important;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--ed-ink) !important;
  text-transform: uppercase;
  line-height: 1;
}
.ed-tick { color: var(--ed-accent); }
.ed-head__logo:hover { opacity: 0.75; }

/* 菜单：大写字距 + 橙色下划线激活 */
.ed-head__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-head__menu a {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ed-ink-70) !important;
  padding: 6px 0;
  position: relative;
}
.ed-head__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ed-accent);
  transition: width var(--ed-trans);
}
.ed-head__menu a:hover { color: var(--ed-ink) !important; }
.ed-head__menu a:hover::after { width: 100%; }
.ed-head__menu li.is-cur a { color: var(--ed-ink) !important; }
.ed-head__menu li.is-cur a::after { width: 100%; }

/* 右侧工具 */
.ed-head__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
/* 下划线式搜索 */
.ed-head__search {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ed-ink);
  padding: 6px 2px;
  width: 170px;
  transition: width var(--ed-trans);
}
.ed-head__search:focus-within { width: 230px; }
.ed-head__search i { font-size: 15px; color: var(--ed-ink); }
.ed-head__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ed-ink);
  width: 100%;
}
.ed-head__search input::placeholder { color: var(--ed-gray); }
/* 图标按钮 */
.ed-head__cart,
.ed-head__user {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ed-ink) !important;
  transition: color var(--ed-trans);
}
.ed-head__cart i,
.ed-head__user i { font-size: 21px; }
.ed-head__cart:hover,
.ed-head__user:hover { color: var(--ed-accent) !important; }
.ed-head__badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-accent);
  color: var(--ed-white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  line-height: 1;
}
/* 登录链接（方角边框按钮） */
.ed-head__login {
  display: inline-flex;
  align-items: center;
  background: var(--ed-ink);
  color: var(--ed-white) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 24px;
  text-decoration: none !important;
  transition: all var(--ed-trans);
}
.ed-head__login:hover {
  background: var(--ed-accent);
  color: var(--ed-white) !important;
}
/* 头像下拉 */
.ed-head__avatar-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.ed-head__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ed-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-head__avatar i { font-size: 17px; color: var(--ed-white); }
.ed-head__dropdown {
  border: none;
  border-radius: 0;
  padding: 8px 0;
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  box-shadow: 6px 6px 0 rgba(20,20,20,0.9);
  min-width: 200px;
}
.ed-head__dropdown .uk-dropdown-nav li a {
  color: var(--ed-ink-70);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.ed-head__dropdown .uk-dropdown-nav li a i {
  color: var(--ed-accent);
  font-size: 15px;
}
.ed-head__dropdown .uk-dropdown-nav li a:hover {
  background: var(--ed-paper);
  color: var(--ed-ink);
}

/* ============================================================
   Mobile：offcanvas 黑底
   ============================================================ */
.ed-mobile .uk-offcanvas-bar {
  background: var(--ed-ink);
  padding: 32px 28px;
}
.ed-mobile .uk-offcanvas-close { color: var(--ed-white); }
.ed-mobile__logo {
  font-family: var(--ed-serif) !important;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--ed-white) !important;
  display: inline-block;
  margin-bottom: 24px;
}
.ed-mobile .uk-nav-default > li > a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ed-mobile .uk-nav-default > li > a:hover,
.ed-mobile .uk-nav-default > li.uk-active > a {
  color: var(--ed-accent);
}

/* ============================================================
   Buttons：方角编辑风按钮
   ============================================================ */
.am-btn-primary,
.am-btn-addcart,
.am-btn-checkout-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ed-ink);
  color: var(--ed-white) !important;
  border: 1px solid var(--ed-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 15px 32px;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--ed-trans);
}
.am-btn-primary:hover,
.am-btn-addcart:hover,
.am-btn-checkout-full:hover {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
  color: var(--ed-white) !important;
}
/* 幽灵按钮 */
.am-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ed-ink) !important;
  border: 1px solid var(--ed-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 14px 30px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--ed-trans);
}
.am-btn-outline:hover {
  background: var(--ed-ink);
  color: var(--ed-white) !important;
}
/* 白底结账按钮 */
.am-btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ed-white);
  color: var(--ed-ink) !important;
  border: 1px solid var(--ed-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 15px 32px;
  cursor: pointer;
  transition: all var(--ed-trans);
}
.am-btn-checkout:hover {
  background: var(--ed-ink);
  color: var(--ed-white) !important;
}
/* 小尺寸 */
.am-btn-sm {
  padding: 9px 18px !important;
  font-size: 11px !important;
  letter-spacing: 1.2px !important;
}
/* 添加地址虚线小按钮 */
.am-btn-add-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed var(--ed-ink);
  color: var(--ed-ink) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: all var(--ed-trans);
}
.am-btn-add-address:hover {
  border-style: solid;
  background: var(--ed-ink);
  color: var(--ed-white) !important;
}

/* ============================================================
   Section & Heroes：黑底大标题横幅
   ============================================================ */
.am-section { padding: 64px 0; }
.am-section-title {
  font-family: var(--ed-serif) !important;
  font-size: 46px;
  font-weight: 400;
  color: var(--ed-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.am-product-hero,
.am-cart-hero,
.am-checkout-hero,
.am-account-hero,
.am-login-hero {
  background: var(--ed-ink);
  padding: 72px 0;
  text-align: center;
}
.am-product-hero-desc,
.am-cart-hero-desc,
.am-rpage-hero-desc,
.am-login-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin: 14px 0 0;
}
.am-product-hero-content,
.am-cart-hero-content,
.am-checkout-hero-content,
.am-account-hero-content {
  max-width: 720px;
  margin: 0 auto;
}
/* Hero 下的橙色短线装饰 */
.am-section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--ed-accent);
  margin: 18px auto 0;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.am-breadcrumb-section { padding: 22px 0 0; }
.am-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.am-breadcrumb a { color: var(--ed-gray) !important; }
.am-breadcrumb a:hover { color: var(--ed-accent) !important; }
.am-breadcrumb .uk-icon { color: var(--ed-gray); }
.am-breadcrumb-current { color: var(--ed-ink); font-weight: 600; }
/* 黑底 Hero 内的面包屑（浅色，保证可阅读） */
.am-account-hero .am-breadcrumb a,
.am-checkout-hero .am-breadcrumb a { color: rgba(255,255,255,0.65) !important; }
.am-account-hero .am-breadcrumb a:hover,
.am-checkout-hero .am-breadcrumb a:hover { color: var(--ed-accent) !important; }
.am-account-hero .am-breadcrumb .uk-icon,
.am-checkout-hero .am-breadcrumb .uk-icon { color: rgba(255,255,255,0.4); }
.am-account-hero .am-breadcrumb-current,
.am-checkout-hero .am-breadcrumb-current { color: var(--ed-white) !important; }

/* ============================================================
   Category Bar：分类过滤
   ============================================================ */
.am-category-bar {
  border-top: 1px solid var(--ed-line-soft);
  border-bottom: 1px solid var(--ed-line);
  background: var(--ed-white);
  margin-top: 40px;
  padding: 0;
}
.am-category-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}
.am-category-list {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.am-category-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ed-gray) !important;
  padding: 20px 0 17px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.am-category-link:hover { color: var(--ed-ink) !important; }
.am-category-link.active {
  color: var(--ed-ink) !important;
  border-bottom-color: var(--ed-accent);
}
.am-category-current {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ed-gray);
  flex-shrink: 0;
  min-width: 0;
  max-width: 40%;
}
.am-category-label { letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.am-category-name {
  color: var(--ed-ink);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* ============================================================
   Product List：产品网格
   ============================================================ */
.am-product-section { padding-top: 56px; }
.am-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px 28px;
}
.am-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.am-product-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
}
.am-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ed-ease);
}
.am-product-card:hover .am-product-img { transform: scale(1.05); }
/* 悬停滑入查看条 */
.am-product-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ed-ink);
  padding: 12px;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--ed-trans);
}
.am-product-card:hover .am-product-overlay { transform: translateY(0); }
.am-product-view {
  color: var(--ed-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
/* Hot 徽章 */
.am-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ed-accent);
  color: var(--ed-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
}
.am-product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 0;
  flex: 1;
}
.am-product-name {
  font-family: var(--ed-serif) !important;
  font-size: 18px;
  color: var(--ed-ink) !important;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.am-product-name:hover { color: var(--ed-accent) !important; }
.am-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.am-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ed-accent);
}
.am-product-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ed-ink);
  color: var(--ed-ink) !important;
  transition: all var(--ed-trans);
}
.am-product-cart:hover {
  background: var(--ed-ink);
  color: var(--ed-white) !important;
}
/* 分页（ThinkPHP Bootstrap 驱动：ul.pagination > li） */
.am-product-pagination,
.am-pagination-wrap { margin-top: 48px; }
.am-product-pagination ul.pagination,
.am-pagination-wrap ul.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.am-product-pagination .pagination > li > a,
.am-product-pagination .pagination > li > span,
.am-pagination-wrap .pagination > li > a,
.am-pagination-wrap .pagination > li > span {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-line);
  background: var(--ed-white);
  color: var(--ed-ink) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ed-trans);
}
.am-product-pagination .pagination > li > a:hover,
.am-pagination-wrap .pagination > li > a:hover {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: var(--ed-white) !important;
}
.am-product-pagination .pagination > li.active > span,
.am-pagination-wrap .pagination > li.active > span {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
  color: var(--ed-white) !important;
}
.am-product-pagination .pagination > li.disabled > span,
.am-pagination-wrap .pagination > li.disabled > span {
  background: transparent;
  border-color: var(--ed-line-soft);
  color: var(--ed-gray) !important;
}
/* 空状态 */
.am-product-empty,
.am-cart-empty,
.am-account-empty {
  text-align: center;
  padding: 70px 24px;
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
}
.am-product-empty h3,
.am-cart-empty h3,
.am-account-empty h4 {
  font-size: 26px;
  margin: 18px 0 8px;
}
.am-product-empty p,
.am-cart-empty p,
.am-account-empty p {
  color: var(--ed-gray);
  font-size: 14px;
  margin: 0 0 24px;
}
.am-cart-empty-icon .uk-icon,
.am-empty-icon .uk-icon { color: var(--ed-accent); }

/* ============================================================
   Product Detail：详情页
   ============================================================ */
.am-product-detail-section { padding-top: 40px; }
.am-product-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
/* 画廊 */
.am-product-main-img {
  border: 1px solid var(--ed-line);
  background: var(--ed-white);
  overflow: hidden;
}
.am-product-main-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.am-product-thumb-list {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.am-thumb-btn {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--ed-line-soft);
  background: var(--ed-white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--ed-trans);
}
.am-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.am-thumb-btn.active,
.am-thumb-btn:hover { border: 1px solid var(--ed-ink); }
/* 信息区 */
.am-product-detail-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 12px;
}
.am-product-detail-name {
  font-size: 38px;
  margin: 0 0 16px;
}
.am-product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ed-line-soft);
}
.am-price-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--ed-accent);
}
.am-price-original {
  font-size: 16px;
  color: var(--ed-gray);
  text-decoration: line-through;
}
.am-product-detail-desc {
  color: var(--ed-ink-70);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 28px;
}
/* 属性 */
.am-product-attributes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.am-attr-group-label,
.am-attr-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ed-ink);
  margin-bottom: 10px;
}
.am-attr-options { display: flex; flex-wrap: wrap; gap: 8px; }
.am-attr-option { position: relative; cursor: pointer; }
.am-attr-option input { position: absolute; opacity: 0; pointer-events: none; }
.am-attr-color,
.am-attr-text {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 9px 18px;
  border: 1px solid var(--ed-line);
  background: var(--ed-white);
  color: var(--ed-ink);
  transition: all var(--ed-trans);
}
.am-attr-option input:checked + .am-attr-color,
.am-attr-option input:checked + .am-attr-text {
  background: var(--ed-ink);
  color: var(--ed-white);
}
.am-attr-option:hover .am-attr-color,
.am-attr-option:hover .am-attr-text { border-color: var(--ed-accent); }
/* 行内组（数量+库存） */
.am-attr-group-inline {
  display: flex;
  align-items: center;
  gap: 18px;
}
.am-attr-group-inline .am-attr-label { margin-bottom: 0; }
.am-quantity-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ed-line);
  background: var(--ed-white);
}
.am-qty-btn {
  width: 40px;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: var(--ed-ink);
  transition: background var(--ed-trans);
}
.am-qty-btn:hover { background: var(--ed-paper); }
.am-qty-input {
  width: 48px;
  border: none;
  border-left: 1px solid var(--ed-line);
  border-right: 1px solid var(--ed-line);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ed-ink);
  outline: none;
  background: var(--ed-white);
}
.am-quantity-sm .am-qty-btn { width: 32px; }
.am-quantity-sm .am-qty-input { width: 42px; font-size: 13px; }
.am-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1a7f37;
}
/* 操作按钮组 */
.am-product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.am-product-actions .am-btn-primary,
.am-product-actions .am-btn-checkout { flex: 1; min-width: 180px; }
/* 信任徽章 */
.am-trust-badges,
.am-cart-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--ed-line-soft);
}
.am-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ed-gray);
}
.am-trust-item .uk-icon { color: var(--ed-accent); }

/* Tabs */
.am-product-tabs-section { padding-top: 0; }
.am-tabs {
  border-top: 1px solid var(--ed-line);
  padding-top: 0;
}
.am-tab-nav {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--ed-line-soft);
}
.am-tab-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ed-gray);
  padding: 20px 0 17px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ed-trans);
}
.am-tab-btn:hover { color: var(--ed-ink); }
.am-tab-btn.active {
  color: var(--ed-ink);
  border-bottom-color: var(--ed-accent);
}
.am-tab-content { padding: 36px 0; }
.am-tab-panel { display: none; }
.am-tab-panel.active { display: block; }
.am-product-body {
  max-width: 860px;
  color: var(--ed-ink-70);
  font-size: 14px;
  line-height: 1.85;
}
.am-product-body img { max-width: 100%; height: auto; }
.am-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.am-gallery-item {
  border: 1px solid var(--ed-line);
  overflow: hidden;
  background: var(--ed-white);
}
.am-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Cart：购物车
   ============================================================ */
.am-cart-section { padding-top: 48px; }
.am-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.am-cart-items { background: var(--ed-white); border: 1px solid var(--ed-line); }
.am-cart-header {
  display: grid;
  grid-template-columns: 1fr 110px 140px 110px 50px;
  gap: 14px;
  padding: 14px 22px;
  background: var(--ed-ink);
  color: var(--ed-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.am-cart-item {
  display: grid;
  grid-template-columns: 1fr 110px 140px 110px 50px;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ed-line-soft);
}
.am-cart-item:last-of-type { border-bottom: none; }
.am-cart-item-product {
  display: flex;
  align-items: center;
  gap: 16px;
}
.am-cart-item-img {
  flex: 0 0 76px;
  width: 76px;
  height: 92px;
  border: 1px solid var(--ed-line-soft);
  overflow: hidden;
  display: block;
}
.am-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.am-cart-item-name {
  font-family: var(--ed-serif) !important;
  font-size: 16px;
  color: var(--ed-ink) !important;
}
.am-cart-item-name:hover { color: var(--ed-accent) !important; }
.am-cart-item-attr {
  font-size: 12px;
  color: var(--ed-gray);
  margin-top: 4px;
}
.am-cart-item-price,
.am-cart-item-total {
  font-size: 14px;
  font-weight: 700;
}
.am-cart-item-total { color: var(--ed-accent); }
.am-cart-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ed-line-soft);
  color: var(--ed-ink) !important;
  transition: all var(--ed-trans);
}
.am-cart-remove:hover {
  border-color: var(--ed-accent);
  color: var(--ed-accent) !important;
}
.am-cart-actions { padding: 18px 22px; }
/* 摘要侧栏 */
.am-cart-summary {
  position: sticky;
  top: 100px;
  background: var(--ed-ink);
  color: var(--ed-white);
}
.am-cart-summary-inner,
.am-checkout-summary-inner { padding: 28px; }
.am-cart-summary-title,
.am-checkout-summary-title {
  font-family: var(--ed-serif) !important;
  font-size: 22px;
  color: var(--ed-white);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ed-accent);
}
.am-cart-summary-row,
.am-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  padding: 7px 0;
}
.am-cart-summary-row span:last-child,
.am-checkout-summary-row span:last-child { color: var(--ed-white); }
.am-cart-shipping-free,
.am-checkout-shipping-free { color: var(--ed-accent) !important; font-weight: 700; }
.am-cart-summary-divider,
.am-checkout-summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.16);
  margin: 14px 0;
}
.am-cart-summary-total,
.am-checkout-summary-total { font-size: 15px; }
.am-cart-summary-total span:last-child { font-size: 22px; }
.am-checkout-total-amount { font-size: 22px; font-weight: 700; }
.am-cart-summary-items,
.am-checkout-summary-items {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin: 14px 0 20px;
}
.am-cart-summary .am-btn-primary,
.am-checkout-summary .am-btn-primary {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 20px;
  background: var(--ed-accent);
  border: 1px solid var(--ed-accent);
  color: var(--ed-white) !important;
}
.am-cart-summary .am-btn-primary:hover,
.am-checkout-summary .am-btn-primary:hover {
  background: var(--ed-white);
  border-color: var(--ed-white);
  color: var(--ed-ink) !important;
}
.am-cart-trust {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 20px;
  padding-top: 16px;
}
.am-cart-trust .am-trust-item { color: rgba(255,255,255,0.6); }
.am-cart-trust .am-trust-item .uk-icon { color: var(--ed-accent); }

/* ============================================================
   Checkout：结算
   ============================================================ */
.am-checkout-section { padding-top: 48px; }
.am-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.am-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.am-checkout-step {
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
}
.am-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--ed-line-soft);
}
.am-step-number {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-accent);
  color: var(--ed-white);
  font-size: 13px;
  font-weight: 700;
}
.am-step-title {
  font-size: 18px;
  margin: 0;
  flex: 1;
}
.am-step-content { padding: 22px; }
/* 结算商品 */
.am-checkout-items { display: flex; flex-direction: column; gap: 14px; }
.am-checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ed-line-soft);
}
.am-checkout-item:last-child { border-bottom: none; padding-bottom: 0; }
.am-checkout-item-img {
  flex: 0 0 64px;
  width: 64px;
  height: 78px;
  border: 1px solid var(--ed-line-soft);
  overflow: hidden;
  display: block;
}
.am-checkout-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.am-checkout-item-info { flex: 1; }
.am-checkout-item-name {
  font-family: var(--ed-serif) !important;
  font-size: 15px;
  color: var(--ed-ink) !important;
}
.am-checkout-item-attr { font-size: 12px; color: var(--ed-gray); }
.am-checkout-item-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ed-gray);
  margin-top: 4px;
}
.am-checkout-item-price { color: var(--ed-ink); font-weight: 600; }
.am-checkout-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--ed-accent);
}
.am-checkout-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ed-gray);
  font-size: 13px;
}
/* 地址卡（结算选择） */
.am-address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.am-address-card {
  position: relative;
  display: block;
  background: var(--ed-paper);
  border: 1px solid var(--ed-line);
  padding: 16px;
  cursor: pointer;
  transition: all var(--ed-trans);
}
.am-address-radio { position: absolute; opacity: 0; pointer-events: none; }
.am-address-card:hover { border-color: var(--ed-accent); }
.am-address-radio:checked ~ .am-address-content { color: var(--ed-ink); }
.am-address-radio:checked ~ .am-address-check {
  opacity: 1;
  background: var(--ed-accent);
  border-color: var(--ed-accent);
  color: var(--ed-white);
}
.am-address-content { font-size: 13px; color: var(--ed-ink-70); }
.am-address-name {
  font-weight: 700;
  color: var(--ed-ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.am-address-detail { line-height: 1.6; }
.am-address-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ed-gray);
  margin-top: 6px;
}
.am-address-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-line-soft);
  background: var(--ed-white);
  opacity: 0.5;
  transition: all var(--ed-trans);
}
/* 支付方式 */
.am-payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.am-payment-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ed-line);
  background: var(--ed-paper);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--ed-trans);
}
.am-payment-radio { position: absolute; opacity: 0; pointer-events: none; }
.am-payment-card:hover { border-color: var(--ed-accent); }
.am-payment-radio:checked ~ .am-payment-check {
  opacity: 1;
  background: var(--ed-accent);
  border-color: var(--ed-accent);
  color: var(--ed-white);
}
.am-payment-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-ink);
}
.am-payment-content img { height: 22px; width: auto; }
.am-payment-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-line-soft);
  background: var(--ed-white);
  opacity: 0.4;
  transition: all var(--ed-trans);
}
/* 卡片表单 */
.am-card-form { max-width: 520px; }
.am-form-select-group { display: flex; gap: 10px; }
.am-form-select-group .am-select-wrap { flex: 1; }

/* 结算操作 */
.am-checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
/* 侧栏摘要 */
.am-checkout-sidebar {
  position: sticky;
  top: 100px;
  background: var(--ed-ink);
  color: var(--ed-white);
}
.am-checkout-discount { color: var(--ed-accent) !important; }
.am-checkout-notice {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.am-checkout-notice p {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin: 0 0 6px;
}

/* ============================================================
   Account：用户中心
   ============================================================ */
.am-account-section { padding-top: 48px; }
.am-account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
/* 侧栏 */
.am-account-sidebar {
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  position: sticky;
  top: 100px;
}
.am-account-menu { padding: 22px; }
.am-account-menu-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--ed-accent);
}
.am-account-nav { list-style: none; margin: 0; padding: 0; }
.am-account-nav-item { border-bottom: 1px solid var(--ed-line-soft); }
.am-account-nav-item:last-child { border-bottom: none; }
.am-account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ed-ink-70) !important;
  padding: 13px 4px;
  transition: all var(--ed-trans);
}
.am-account-nav-link .uk-icon { color: var(--ed-gray); }
.am-account-nav-link:hover { color: var(--ed-accent) !important; padding-left: 10px; }
.am-account-nav-item.am-active .am-account-nav-link {
  color: var(--ed-ink) !important;
}
.am-account-nav-item.am-active .am-account-nav-link .uk-icon {
  color: var(--ed-accent);
}
.am-account-nav-item.am-active {
  box-shadow: inset 3px 0 0 var(--ed-accent);
}
/* 欢迎区 */
.am-account-welcome {
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  padding: 44px 36px;
  text-align: center;
}
.am-welcome-icon .uk-icon { color: var(--ed-accent); }
.am-welcome-title { font-size: 30px; margin: 16px 0 8px; }
.am-welcome-desc {
  color: var(--ed-gray);
  font-size: 14px;
  max-width: 460px;
  margin: 0 auto;
}
/* 快捷卡 */
.am-account-quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.am-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ed-line);
  padding: 26px 16px;
  background: var(--ed-paper);
  transition: all var(--ed-trans);
}
.am-quick-card:hover {
  background: var(--ed-ink);
  transform: translateY(-3px);
}
.am-quick-card:hover h4 { color: var(--ed-white); }
.am-quick-card:hover p { color: rgba(255,255,255,0.6); }
.am-quick-card:hover .am-quick-icon { color: var(--ed-accent); }
.am-quick-icon .uk-icon { color: var(--ed-ink); }
.am-quick-card h4 { font-size: 17px; }
.am-quick-card p { font-size: 12px; color: var(--ed-gray); margin: 0; }
/* 通用卡片 */
.am-account-card {
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  padding: 26px;
}
.am-card-header { margin-bottom: 22px; }
.am-card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.am-card-title {
  font-size: 22px;
  margin: 0 0 4px;
}
.am-card-subtitle {
  font-size: 13px;
  color: var(--ed-gray);
  margin: 0;
}
.am-mt-24 { margin-top: 24px; }
/* 订单表格 */
.am-order-list { display: flex; flex-direction: column; }
.am-order-table-header,
.am-history-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.1fr 1.2fr 0.7fr;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ed-ink);
  color: var(--ed-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.am-order-item,
.am-history-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.1fr 1.2fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 15px 14px;
  border-bottom: 1px solid var(--ed-line-soft);
  transition: background var(--ed-trans);
}
.am-order-item:hover { background: var(--ed-paper); }
.am-order-cell,
.am-history-cell { font-size: 13px; }
.am-order-label,
.am-history-label {
  display: none;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ed-gray);
}
.am-order-value,
.am-history-value { color: var(--ed-ink); }
.am-order-id .am-order-value { font-weight: 700; }
.am-order-amount .am-order-value { color: var(--ed-accent); font-weight: 700; }
.am-order-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--ed-ink);
  color: var(--ed-white);
}
/* 信息网格（订单详情） */
.am-order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.am-info-list { display: flex; flex-direction: column; }
.am-info-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ed-line-soft);
  font-size: 13px;
}
.am-info-item:last-child { border-bottom: none; }
.am-info-label {
  color: var(--ed-gray);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
  flex-shrink: 0;
}
.am-info-value { text-align: right; color: var(--ed-ink); }
.am-info-price { color: var(--ed-accent) !important; font-weight: 700; }
/* 订单商品 */
.am-order-products { display: flex; flex-direction: column; }
.am-order-product-item {
  display: grid;
  grid-template-columns: 64px 1fr 100px 60px 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--ed-line-soft);
}
.am-order-product-item:last-child { border-bottom: none; }
.am-order-product-img {
  width: 64px;
  height: 78px;
  border: 1px solid var(--ed-line-soft);
  overflow: hidden;
  display: block;
}
.am-order-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.am-order-product-name {
  font-family: var(--ed-serif) !important;
  font-size: 15px;
  color: var(--ed-ink) !important;
}
.am-order-product-attr { font-size: 12px; color: var(--ed-gray); margin-top: 3px; }
.am-order-product-price { font-size: 13px; }
.am-order-product-qty { font-size: 13px; color: var(--ed-gray); }
.am-order-product-total { font-size: 14px; font-weight: 700; color: var(--ed-accent); }
/* 历史表格 */
.am-history-header { grid-template-columns: 1fr 1fr 2fr; }
.am-history-item { grid-template-columns: 1fr 1fr 2fr; }

/* ============================================================
   Forms：表单通用
   ============================================================ */
.am-account-form,
.am-login-form,
.am-modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.am-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.am-form-group { display: flex; flex-direction: column; gap: 8px; }
.am-form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ed-ink);
}
.am-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.am-input-icon {
  position: absolute;
  left: 14px;
  color: var(--ed-gray);
  pointer-events: none;
}
.am-form-input,
.am-form-select {
  width: 100%;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: var(--ed-white);
  font-size: 13px;
  color: var(--ed-ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color var(--ed-trans), box-shadow var(--ed-trans);
}
.am-input-wrap .am-form-input { padding-left: 42px; }
.am-form-input:focus,
.am-form-select:focus {
  border-color: var(--ed-accent);
  box-shadow: 3px 3px 0 rgba(232,72,43,0.18);
}
.am-select-wrap { position: relative; }
.am-form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.am-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ed-gray);
  pointer-events: none;
}
/* 单选胶囊（性别/类型） */
.am-gender-options { display: flex; gap: 10px; flex-wrap: wrap; }
.am-gender-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ed-line);
  background: var(--ed-white);
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--ed-trans);
}
.am-gender-radio { position: absolute; opacity: 0; pointer-events: none; }
.am-gender-check {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ed-ink);
  border-radius: 50%;
  display: inline-block;
  transition: all var(--ed-trans);
}
.am-gender-radio:checked ~ .am-gender-check {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
  box-shadow: inset 0 0 0 3px var(--ed-white);
}
.am-gender-option:has(.am-gender-radio:checked) {
  background: var(--ed-ink);
  color: var(--ed-white);
}
.am-gender-option:has(.am-gender-radio:checked) .am-gender-check {
  border-color: var(--ed-white);
}
.am-gender-option:hover { border-color: var(--ed-accent); }
/* 条款勾选 */
.am-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ed-ink-70);
  cursor: pointer;
}
.am-remember a { text-decoration: underline; }
.am-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.am-checkmark {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ed-ink);
  background: var(--ed-white);
  display: inline-block;
  margin-top: 2px;
  transition: all var(--ed-trans);
}
.am-checkbox:checked ~ .am-checkmark {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
}
.am-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* ============================================================
   Login / Register
   ============================================================ */
.am-login-section { padding-top: 48px; padding-bottom: 80px; }
.am-login-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  box-shadow: 8px 8px 0 rgba(20,20,20,0.9);
  padding: 40px 36px;
}
.am-btn-login { width: 100%; margin-top: 6px; }
.am-verify-row { display: flex; gap: 12px; align-items: stretch; }
.am-verify-input { flex: 1; }
.am-verify-img {
  height: 47px;
  width: auto;
  border: 1px solid var(--ed-line);
  cursor: pointer;
  background: var(--ed-white);
}
.am-login-footer {
  text-align: center;
  font-size: 13px;
  color: var(--ed-gray);
}
.am-login-footer a { color: var(--ed-ink) !important; font-weight: 600; }
.am-login-footer a:hover { color: var(--ed-accent) !important; }

/* ============================================================
   Modal：地址弹窗
   ============================================================ */
.am-modal-address {
  border-radius: 0;
  border: 2px solid var(--ed-ink);
  box-shadow: 10px 10px 0 rgba(20,20,20,0.9);
  padding: 32px;
  width: 620px;
  max-width: 94vw;
}
.am-modal-header { margin-bottom: 22px; }
.am-modal-title { font-size: 26px; }
.am-modal-subtitle {
  font-size: 13px;
  color: var(--ed-gray);
  margin: 6px 0 0;
}
.am-modal-body { padding: 0; }
.am-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ============================================================
   Rpage：内容页 CTA
   ============================================================ */
.am-rpage-content-section { padding-top: 48px; padding-bottom: 80px; }
.am-rpage-layout { max-width: 860px; margin: 0 auto; }
.am-rpage-article {
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  padding: 40px;
}
.am-rpage-cta { margin-top: 32px; }
.am-rpage-cta-inner {
  background: var(--ed-ink);
  color: var(--ed-white);
  text-align: center;
  padding: 44px 32px;
}
.am-rpage-cta-inner .uk-icon { color: var(--ed-accent); }
.am-rpage-cta-inner h4 {
  color: var(--ed-white);
  font-size: 24px;
  margin: 12px 0 6px;
}
.am-rpage-cta-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin: 0 0 22px;
}

/* ============================================================
   Cuhead：账户页头（uk-bread-background）
   ============================================================ */
.uk-bread-background {
  background: var(--ed-ink);
  border-bottom: 3px solid var(--ed-accent);
}
.uk-bread-background .uk-section { padding: 56px 0; }
.uk-bread-background h1 {
  color: var(--ed-white);
  font-family: var(--ed-serif) !important;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.x-uk-breadcrumb li a,
.x-uk-breadcrumb li span {
  color: rgba(255,255,255,0.6) !important;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.x-uk-breadcrumb li a:hover { color: var(--ed-accent) !important; }
.x-uk-breadcrumb li.uk-disabled span { color: var(--ed-white) !important; }

/* 地址卡（账户列表态） */
.am-address-info { margin-bottom: 10px; }
.am-address-type {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--ed-ink);
  color: var(--ed-white);
  padding: 3px 8px;
}
.am-address-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ed-gray);
  margin-top: 8px;
}
.am-address-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ed-line-soft);
}
/* 详情页包装 */
.am-product-gallery { display: flex; flex-direction: column; }
.am-product-detail-info { min-width: 0; }
.am-product-detail-header { margin-bottom: 8px; }
/* 属性组 */
.am-attr-group { margin-bottom: 0; }
/* 数额加粗 */
.am-cart-total-amount { font-size: 15px; font-weight: 700; }
/* 订单历史块 */
.am-order-history { margin-top: 24px; }
.am-order-status .am-order-badge,
.am-order-delivery .am-order-value { text-transform: uppercase; }
.am-order-action { text-align: right; }
/* 结算摘要包装 */
.am-checkout-summary { position: sticky; top: 100px; }
/* Rpage 主区 */
.am-rpage-main { min-width: 0; }
/* 账户主区 */
.am-account-main { min-width: 0; }

/* ============================================================
   Footer：黑色编辑部页脚
   ============================================================ */
.ed-foot {
  background: var(--ed-ink);
  color: var(--ed-white);
  border-top: 3px solid var(--ed-accent);
  margin-top: 80px;
  padding: 64px 0 0;
}
.ed-foot__top {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 48px;
}
.ed-foot__logo {
  font-family: var(--ed-serif) !important;
  font-size: 34px;
  text-transform: uppercase;
  color: var(--ed-white) !important;
  line-height: 1;
  display: inline-block;
}
.ed-foot__logo:hover { color: var(--ed-accent) !important; }
.ed-foot__hours { margin-top: 22px; }
.ed-foot__hours-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ed-accent);
}
.ed-foot__hours-value {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 8px 0 0;
}
.ed-foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ed-foot__title {
  font-family: var(--ed-sans) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ed-white);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.ed-foot__list { list-style: none; margin: 0; padding: 0; }
.ed-foot__list li { margin-bottom: 10px; }
.ed-foot__list a {
  font-size: 13px;
  color: rgba(255,255,255,0.62) !important;
  transition: all var(--ed-trans);
}
.ed-foot__list a:hover {
  color: var(--ed-accent) !important;
  padding-left: 6px;
}
.ed-foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 22px 0;
}
.ed-foot__cards {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ed-foot__cards img { height: 26px; width: auto; opacity: 0.9; }
.ed-foot__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  letter-spacing: 0.5px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
  .am-section-title { font-size: 38px; }
  .ed-head__menu { gap: 20px; }
  .ed-head__search { width: 140px; }
}

@media (max-width: 959px) {
  .ed-head__menu { display: none; }
  .ed-head__burger { display: flex; }
  .ed-head__search { display: none; }
  .ed-head__nav {
    grid-template-columns: auto 1fr;
    min-height: 64px;
  }
  .ed-head__left { justify-content: space-between; flex: 1; }
  .ed-foot__top { grid-template-columns: 1fr; gap: 36px; }
  .am-cart-layout,
  .am-checkout-layout { grid-template-columns: 1fr; }
  .am-cart-summary,
  .am-checkout-sidebar { position: static; }
  .am-product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .am-account-layout { grid-template-columns: 1fr; }
  .am-account-sidebar { position: static; }
  .am-account-quick-links { grid-template-columns: 1fr; }
  .am-order-table-header { display: none; }
  .am-order-item,
  .am-history-item {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .am-order-label,
  .am-history-label { display: block; }
  .am-cart-header { display: none; }
  .am-cart-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .am-order-product-item { grid-template-columns: 64px 1fr; }
  .am-order-product-price,
  .am-order-product-qty,
  .am-order-product-total { grid-column: 2; }
  .am-history-header { display: none; }
}

@media (max-width: 639px) {
  .am-section { padding: 44px 0; }
  .am-section-title { font-size: 30px; }
  .am-product-hero,
  .am-cart-hero,
  .am-checkout-hero,
  .am-account-hero,
  .am-login-hero { padding: 48px 0; }
  .am-product-detail-name { font-size: 28px; }
  .am-form-row { grid-template-columns: 1fr; }
  .am-card-header-flex { flex-direction: column; align-items: flex-start; }
  .ed-foot__cols { grid-template-columns: 1fr; gap: 24px; }
  .ed-foot__bottom { flex-direction: column; align-items: flex-start; }
  .am-product-actions .am-btn-primary,
  .am-product-actions .am-btn-checkout { min-width: 100%; }
  .am-checkout-actions { flex-direction: column; }
  .am-checkout-actions .am-btn-outline,
  .am-checkout-actions .am-btn-primary { width: 100%; }
}
