/* ===== 重置和基础布局 ===== */
* {
  box-sizing: border-box;
}

:root {
  /* 颜色系统 */
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --accent-light: #ffedd5;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #0ea5e9;
  --info-light: #f0f9ff;
  --premium: #8b5cf6;
  --featured: #f59e0b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.1);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-accent: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  
  /* 亚马逊配色系统 */
  --amazon-blue: #146EB4;
  --amazon-yellow: #FFD814;
  --amazon-yellow-hover: #F7CA00;
  --amazon-yellow-active: #EDB900;
  --amazon-yellow-border: #F2C200;
  --amazon-dark-text: #0F1111;
  --amazon-light-gray: #EAEDED;
  
  /* 购物车按钮尺寸 */
  --cart-btn-height: 34px;
  --cart-btn-touch: 44px;
  --cart-btn-padding-x: 12px;
  --cart-btn-padding-y: 7px;
  --cart-btn-radius: 6px;
  --cart-btn-gap: 10px;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3b82f6;
    --accent: #fb923c;
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
  }
}

body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: 600;
  line-height: 1.3;
}

legend {
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-weight: 600;
  font-size: 16px;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

/* Chrome border line */
button:focus {
  outline: none !important;
  box-shadow: var(--shadow-focus) !important;
}

/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: relative;
  margin-bottom: 0;
  flex: 1 0 auto;
  background-color: var(--white);
  max-width: 100%;
}

/* content */
#content, #column-left, #column-right {
  padding-bottom: 0px;
}

@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 40px;
  }
}

#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}

@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}

@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}

#alert .alert {
  margin-bottom: 15px;
  border-radius: 5px;
  border: none;
  font-weight: 500;
}

#alert .alert-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

#alert .alert-secondary {
  background-color: var(--gray-500);
  color: white;
  box-shadow: 0 0 0 5px rgba(100, 116, 139, 0.1);
}

#alert .alert-success {
  background-color: var(--success);
  color: white;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1);
}

#alert .alert-warning {
  background-color: var(--warning);
  color: var(--gray-900);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.1);
}

#alert .alert-danger {
  background-color: var(--error);
  color: white;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.1);
}

#alert .alert-info {
  background-color: var(--info);
  color: white;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.1);
}

#alert .alert-light {
  background-color: var(--gray-100);
  color: var(--gray-800);
  box-shadow: 0 0 0 5px rgba(241, 245, 249, 0.1);
}

#alert .alert-dark {
  background-color: var(--gray-800);
  color: white;
  box-shadow: 0 0 0 5px rgba(30, 41, 59, 0.1);
}

/* top */
#top {
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

#top ul.list-inline {
  margin-bottom: 0;
}

#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

#top .list-inline-item > a:hover, #top .list-inline-item .dropdown > a:hover {
  color: var(--primary);
}

/* logo */
#logo {
  text-align: center;
  margin: 15px 0 15px 0;
}

#logo img {
  max-width: 200px;
  height: auto;
}

@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}

/* search */
#search {
  margin-bottom: 10px;
}

#search .form-control-lg {
  height: 44px;
  font-size: 14px;
  line-height: 20px;
  padding: 0 16px;
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  color: var(--gray-800);
  transition: all 0.3s ease;
  background-color: var(--white);
}

#search .form-control-lg:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

#search .btn-lg {
  font-size: 14px;
  line-height: 18px;
  padding: 13px 35px;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  height: 44px;
}

#search .btn-lg:hover {
  background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
  transform: translateY(-1px);
}

/* ===== 购物车 ===== */
/* cart */
#cart {
  margin-bottom: 10px;
}
#cart .img-thumbnail {
  min-width: 100px;
}
#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}
#cart .dropdown-menu {
  background: #eee;
}
#cart .dropdown-menu li {
  min-width: 300px;
}
@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}


/* menu */
#menu {
  background: var(--gradient-primary);
  min-height: 44px;
  border-radius: 5px;
  padding: 0 1rem;
  margin-bottom: 20px;
  border: none;
}

#menu .navbar-nav > li > a {
  color: white;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  background-color: transparent;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 2px 0;
}

#menu .navbar-nav > li > a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

#menu .dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  box-shadow: var(--shadow-lg);
  background-color: var(--white);
  margin-top: 5px;
}

#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu .dropdown-inner ul li a {
  padding: 8px 20px;
  color: var(--gray-700);
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  font-size: 14px;
}

#menu .dropdown-inner ul li a:hover {
  background-color: var(--gray-50);
  color: var(--primary);
}

@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}

#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 44px;
  color: white;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

#menu .navbar-toggler i {
  color: white;
  border-color: white;
  font-size: 1.1em;
}

#menu .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 8px 12px;
}

/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: var(--error);
  font-weight: bold;
}

.form-switch-lg {
  font-size: 16px;
  min-height: 30px;
  line-height: 30px;
}

.nav-tabs {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--gray-200);
}

.nav-tabs .nav-link {
  color: var(--gray-600);
  font-weight: 500;
  border: none;
  padding: 10px 20px;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--primary);
  background-color: var(--gray-50);
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  background-color: var(--white);
  border-bottom: 2px solid var(--primary);
}

.form-check .form-check-input {
  margin-top: 0.25rem;
  border: 1px solid var(--gray-300);
}

.form-check .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check .form-check-input:focus {
  box-shadow: var(--shadow-focus);
}

@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
    color: var(--gray-700);
    font-weight: 500;
  }
}

/* footer */
footer {
  position: relative;
  bottom: auto;
  width: 100%;
  padding-top: 40px;
  background-color: var(--gray-900);
  border-top: 1px solid var(--gray-800);
  color: var(--gray-400);
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 0 !important;
}

footer hr {
  border-top: none;
  border-bottom: 1px solid var(--gray-800);
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 14px;
}

footer a:hover {
  color: var(--primary);
}

footer h5 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 16px;
}

/* 页脚内部布局修复 */
footer .container-fluid {
  position: relative;
  overflow: visible;
  padding-left: 15px;
  padding-right: 15px;
}

footer .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

footer [class*="col-"] {
  margin-bottom: 20px;
}

/* 页脚折叠组件修复 */
footer .accordion {
  position: relative;
  z-index: 10;
}

footer .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-800);
}

footer .accordion-button {
  background: transparent !important;
  color: var(--gray-400) !important;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
}

footer .accordion-button:not(.collapsed) {
  color: var(--white) !important;
  background: transparent !important;
  box-shadow: none;
}

footer .accordion-button::after {
  filter: invert(0.8);
}

footer .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

footer .accordion-body {
  padding: 15px 0;
  background: transparent;
  color: var(--gray-400);
  font-size: 14px;
}

/* 移动端页脚优化 */
@media (max-width: 768px) {
  footer {
    padding-top: 30px;
    margin-bottom: 0;
  }
  
  footer .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  footer .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  footer [class*="col-"] {
    margin-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  footer .accordion-collapse {
    position: relative;
    z-index: 20;
  }
  
  footer .row {
    flex-direction: column;
  }
}

/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 9px 0;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  background-color: var(--gray-50);
  font-size: 14px;
}

.breadcrumb i {
  font-size: 14px;
  color: var(--gray-500);
}

.breadcrumb > li.breadcrumb-item {
  text-shadow: none;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
  color: var(--gray-600);
}

.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
  color: var(--gray-600);
  transition: color 0.2s ease;
  font-weight: 500;
}

.breadcrumb > li.breadcrumb-item > a:hover {
  color: var(--primary);
}

.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  transform: rotate(-45deg);
}

.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}

/* product thumb */
.product-thumb {
  border: 1px solid var(--gray-200);
  position: relative;
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--white);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.product-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-thumb .image {
  text-align: center;
  padding: 20px;
  background-color: var(--gray-50);
}

.product-thumb .image a:hover {
  opacity: 0.8;
}

.product-thumb .description {
  padding: 20px;
  margin-bottom: 45px;
}

.product-thumb .description h4 {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 16px;
  margin-bottom: 8px;
}

.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
  border-top: 1px solid var(--gray-200);
  background-color: var(--white);
}

.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--gray-200);
  background-color: var(--white);
  color: var(--gray-600);
  line-height: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-thumb .button button:hover {
  color: var(--primary);
  background-color: var(--gray-50);
  text-decoration: none;
}

.product-thumb .button button + button {
  border-left: 1px solid var(--gray-200);
}

@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
    flex: 0 0 200px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-left: 1px solid var(--gray-200);
    width: calc(100% - 15px);
    margin-left: 15px;
  }
}

.rating .fa-stack {
  width: 20px;
}

.rating .fa-star {
  color: var(--gray-300);
  font-size: 14px;
}

.rating .fa-star {
  color: #fbbf24;
  font-size: 14px;
}

.rating .fa-star + .fa-star {
  color: #f59e0b;
}

/* product list */
.price {
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 600;
}

.price-new {
  font-weight: 700;
  font-size: 20px;
  color: var(--gray-900);
}

.price-old {
  color: var(--gray-500);
  text-decoration: line-through;
  font-size: 16px;
  font-weight: 500;
}

.price-tax {
  color: var(--gray-500);
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

/* blog */
.blog-thumb {
  border: 1px solid var(--gray-200);
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.blog-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-thumb h4 {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 16px;
  margin-bottom: 8px;
}

.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.blog-thumb .image a:hover {
  opacity: 0.8;
}

.blog-thumb .description {
  padding: 20px;
}

/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 9999;
  opacity: 0.95;
  color: white;
  background: var(--gray-900);
  padding: 20px;
  border-top: 1px solid var(--gray-800);
  border-radius: 0;
}

#cookie div {
  font-size: 14px;
  color: var(--gray-300);
    line-height: 1.5;
}

/* ===== 按钮通用样式更新 ===== */
.btn {
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-600);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--gray-700);
  color: white;
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: #0da271;
  color: white;
}

.btn-warning {
  background-color: var(--warning);
  color: var(--gray-900);
}

.btn-warning:hover {
  background-color: #e69500;
  color: var(--gray-900);
}

.btn-danger {
  background-color: var(--error);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

/* ===== 表单控件样式更新 ===== */
.form-control {
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--gray-800);
  transition: all 0.3s ease;
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.form-select {
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--gray-800);
  transition: all 0.3s ease;
  background-color: var(--white);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

/* ===== 表格样式更新 ===== */
.table {
  color: var(--gray-700);
  border-color: var(--gray-200);
}

.table thead th {
  border-bottom: 2px solid var(--gray-300);
  color: var(--gray-900);
  font-weight: 600;
  background-color: var(--gray-50);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

/* ===== 卡片样式更新 ===== */
.card {
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.card-header {
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-900);
  font-weight: 600;
  padding: 15px 20px;
}

.card-body {
  padding: 20px;
}

/* ===== 分页样式更新 ===== */
.pagination .page-link {
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 8px 14px;
  margin: 0 2px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: var(--gray-100);
  color: var(--primary);
  border-color: var(--gray-400);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: var(--gray-400);
  background-color: var(--gray-100);
  border-color: var(--gray-300);
}

/* ===== 全局容器边距统一 ===== */
.container, .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* ===== 响应式优化 ===== */
@media (max-width: 575px) {
  body {
    overflow-x: hidden;
  }
  
  #content, #column-left, #column-right {
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  footer {
    padding-top: 20px;
    padding-left: 0;
    padding-right: 0;
  }
  
  .container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== 额外修复：确保移动端右边无空白 ===== */
@media (max-width: 767px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===== 亚马逊风格购物车按钮 ===== */

/* 购物车按钮容器 */
.cart-action-buttons {
  margin-top: 16px;
  margin-bottom: 8px;
  margin-right: 8px;
}

/* 亚马逊按钮基础样式 */
.amazon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--cart-btn-padding-y) var(--cart-btn-padding-x);
  height: var(--cart-btn-height);
  min-width: 85px;
  border-radius: var(--cart-btn-radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  letter-spacing: -0.01em;
}

/* View Cart按钮 - 亚马逊蓝色风格 */
.amazon-btn-view {
  background-color: white;
  border-color: var(--amazon-blue);
  color: var(--amazon-blue);
  border-width: 1.5px;
}

.amazon-btn-view:hover {
  background-color: #F0F9FF;
  border-color: #0C5EA6;
  color: #0C5EA6;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(20, 110, 180, 0.15);
}

.amazon-btn-view:active {
  background-color: #E6F3FC;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(20, 110, 180, 0.1);
}

/* Checkout按钮 - 亚马逊黄色风格 */
.amazon-btn-checkout {
  background-color: var(--amazon-yellow);
  border-color: var(--amazon-yellow-border);
  color: var(--amazon-dark-text);
  border-width: 1.5px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.amazon-btn-checkout:hover {
  background-color: var(--amazon-yellow-hover);
  border-color: var(--amazon-yellow-active);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.amazon-btn-checkout:active {
  background-color: var(--amazon-yellow-active);
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 焦点状态（无障碍访问） */
.amazon-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 110, 180, 0.2);
}

.amazon-btn-checkout:focus {
  box-shadow: 0 0 0 3px rgba(255, 216, 20, 0.3);
}

/* 图标样式 */
.amazon-btn i {
  font-size: 12px;
  width: 14px;
  text-align: center;
  transition: transform 0.2s ease;
}

.amazon-btn:hover i {
  transform: translateX(1px);
}

.amazon-btn-checkout:hover i {
  transform: translateX(2px);
}

/* 按钮间距 */
.cart-action-buttons.d-flex.gap-2 {
  gap: var(--cart-btn-gap) !important;
}

/* 触摸设备优化 */
@media (pointer: coarse) {
  .amazon-btn {
    min-height: var(--cart-btn-touch);
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .cart-action-buttons {
    margin-right: 4px;
    margin-left: 4px;
  }
  
  .amazon-btn {
    min-width: 80px;
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .amazon-btn i {
    font-size: 11px;
    margin-right: 4px;
  }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .amazon-btn-view {
    background-color: var(--gray-50);
    border-color: var(--amazon-blue);
    color: var(--amazon-blue);
  }
  
  .amazon-btn-view:hover {
    background-color: rgba(20, 110, 180, 0.1);
  }
  
  .amazon-btn-checkout {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .amazon-btn {
    transition: none;
  }
  
  .amazon-btn:hover {
    transform: none;
  }
  
  .amazon-btn i {
    transition: none;
  }
}