/* === 发稿人 - 主样式 === */
:root {
  --fgr-blue: #2563EB;
  --fgr-blue-dark: #1E40AF;
  --fgr-blue-light: #3B82F6;
  --fgr-orange: #F59E0B;
  --fgr-orange-light: #FCD34D;
  --fgr-green: #10B981;
  --fgr-red: #EF4444;
  --fgr-dark: #1F2937;
  --fgr-gray: #6B7280;
  --fgr-gray-light: #F3F4F6;
  --fgr-white: #FFFFFF;
  --fgr-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --fgr-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --fgr-radius: 8px;
  --fgr-radius-lg: 12px;
  --fgr-max-width: 1200px;
  --fgr-transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--fgr-dark); background: var(--fgr-gray-light); line-height: 1.6; }
a { color: var(--fgr-blue); text-decoration: none; transition: var(--fgr-transition); }
a:hover { color: var(--fgr-blue-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--fgr-max-width); margin: 0 auto; padding: 0 20px; }

/* Header */

/* === TOP BAR === */
.top-bar {
  background: #1a1a2e;
  padding: 6px 0;
  font-size: 13px;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.top-bar-left {
  display: flex;
  align-items: center;
}
.top-bar-slogan {
  color: #d4d4d8;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-hotline {
  color: #d4d4d8;
  font-size: 13px;
}
.top-bar-hotline strong {
  color: #F59E0B;
  font-weight: 700;
}
.top-bar-btn-publish {
  background: #F59E0B;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}
.top-bar-btn-publish:hover {
  background: #FCD34D;
  color: #1a1a2e;
}
.top-bar-link {
  color: #d4d4d8;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.top-bar-link:hover {
  color: #F59E0B;
}

/* === NEW HEADER + NAV === */
.site-header {
  background: #2563EB;
  padding: 0;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.site-logo {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 16px 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.site-nav {
  display: flex;
  gap: 0;
  align-items: center;
}
.nav-link {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  padding: 18px 32px;
  letter-spacing: 1.5px;
  transition: background 0.2s, color 0.2s;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  border-bottom: 3px solid transparent;
}
.nav-link:hover {
  background: #1E40AF;
  color: #FFE4A0;
  border-bottom-color: #F59E0B;
}
.nav-link.active {
  border-bottom-color: #F59E0B;
  color: #FFE4A0;
}
.site-hotline {
  color: #FFE4A0;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.hero-banner { background: linear-gradient(135deg, var(--fgr-blue) 0%, var(--fgr-blue-dark) 100%); padding: 80px 0; text-align: center; color: var(--fgr-white); }
.hero-banner h2 { font-size: 36px; margin-bottom: 16px; font-weight: 700; }
.hero-banner p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.hero-btn { display: inline-block; background: var(--fgr-orange); color: var(--fgr-dark); padding: 14px 40px; border-radius: var(--fgr-radius); font-size: 18px; font-weight: 700; transition: var(--fgr-transition); }
.hero-btn:hover { background: var(--fgr-orange-light); transform: translateY(-2px); box-shadow: var(--fgr-shadow-lg); }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 36px; font-weight: 700; color: var(--fgr-orange); }
.hero-stat .label { font-size: 14px; opacity: 0.8; }

/* Section */
.section { padding: 60px 0; }
.section-alt { background: var(--fgr-white); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: var(--fgr-dark); font-weight: 700; position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--fgr-blue); margin: 10px auto 0; border-radius: 2px; }
.section-title p { color: var(--fgr-gray); margin-top: 10px; font-size: 15px; }

/* Service Cards */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.service-card { background: var(--fgr-white); border-radius: var(--fgr-radius-lg); padding: 30px 20px; text-align: center; transition: var(--fgr-transition); box-shadow: var(--fgr-shadow); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--fgr-shadow-lg); }
.service-card .icon { font-size: 40px; margin-bottom: 12px; }
.service-card h3 { font-size: 18px; color: var(--fgr-blue); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--fgr-gray); line-height: 1.5; }
.service-card .price { color: var(--fgr-orange); font-size: 20px; font-weight: 700; margin-top: 10px; }
.service-card .price small { font-size: 12px; }

/* Media Stats */
.media-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.media-stat-card { background: linear-gradient(135deg, var(--fgr-blue) 0%, var(--fgr-blue-dark) 100%); color: var(--fgr-white); border-radius: var(--fgr-radius-lg); padding: 30px 20px; text-align: center; }
.media-stat-card .num { font-size: 36px; font-weight: 700; color: var(--fgr-orange); }
.media-stat-card .label { font-size: 14px; margin-top: 8px; }

/* Package Cards */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.package-card { background: var(--fgr-white); border-radius: var(--fgr-radius-lg); padding: 30px; border: 2px solid #E5E7EB; transition: var(--fgr-transition); position: relative; overflow: hidden; }
.package-card:hover { border-color: var(--fgr-blue); box-shadow: var(--fgr-shadow-lg); }
.package-card .badge { position: absolute; top: 0; right: 0; background: var(--fgr-orange); color: var(--fgr-dark); padding: 6px 16px; font-size: 12px; font-weight: 700; border-radius: 0 0 0 var(--fgr-radius); }
.package-card h3 { font-size: 20px; color: var(--fgr-dark); margin-bottom: 12px; }
.package-card .price-range { color: var(--fgr-orange); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.package-card p { color: var(--fgr-gray); font-size: 14px; margin-bottom: 16px; }
.package-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.package-card .tag { background: var(--fgr-gray-light); padding: 4px 12px; border-radius: 4px; font-size: 12px; color: var(--fgr-gray); }

/* Resource Grid (媒体列表) */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-card { background: var(--fgr-white); border-radius: var(--fgr-radius); padding: 20px; border: 1px solid #E5E7EB; transition: var(--fgr-transition); }
.resource-card:hover { border-color: var(--fgr-blue); box-shadow: var(--fgr-shadow); }
.resource-card h4 { font-size: 16px; color: var(--fgr-dark); margin-bottom: 8px; }
.resource-card .meta { display: flex; gap: 12px; margin-bottom: 8px; }
.resource-card .meta span { font-size: 13px; color: var(--fgr-gray); }
.resource-card .price { color: var(--fgr-orange); font-weight: 700; font-size: 18px; }
.resource-card .price small { font-size: 12px; color: var(--fgr-gray); }

/* Case Cards */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { background: var(--fgr-white); border-radius: var(--fgr-radius-lg); overflow: hidden; box-shadow: var(--fgr-shadow); }
.case-card .case-header { background: var(--fgr-blue); color: var(--fgr-white); padding: 20px; }
.case-card .case-header h3 { font-size: 18px; }
.case-card .case-body { padding: 20px; }
.case-card .case-body p { color: var(--fgr-gray); font-size: 14px; margin-bottom: 8px; }
.case-card .case-body .strategy { color: var(--fgr-blue); font-weight: 600; }

/* Process Steps */
.process-steps { display: flex; justify-content: center; gap: 30px; align-items: center; }
.process-step { text-align: center; flex: 1; }
.process-step .step-num { display: inline-block; width: 48px; height: 48px; background: var(--fgr-blue); color: var(--fgr-white); border-radius: 50%; font-size: 20px; font-weight: 700; line-height: 48px; margin-bottom: 8px; }
.process-step h4 { font-size: 16px; color: var(--fgr-dark); margin-bottom: 4px; }
.process-step p { font-size: 13px; color: var(--fgr-gray); }
.process-arrow { color: var(--fgr-blue); font-size: 24px; }

/* Advantages */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card { text-align: center; padding: 30px 20px; }
.advantage-card .icon { font-size: 48px; margin-bottom: 16px; }
.advantage-card h3 { font-size: 18px; color: var(--fgr-dark); margin-bottom: 8px; }
.advantage-card p { font-size: 14px; color: var(--fgr-gray); }




/* ========================================
   Footer Styles - 4-column layout
   ======================================== */

.fgr-footer {
  background: linear-gradient(180deg, #1A0A00 0%, #0D0500 100%);
  color: #E8DCC8;
  padding: 50px 0 0;
}

.fgr-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 30px;
}

@media (max-width: 900px) {
  .fgr-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .fgr-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Brand column */
.fgr-footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #FEF8F0;
  margin-bottom: 12px;
}
.fgr-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #A89878;
  margin-bottom: 16px;
}
.fgr-footer-social {
  display: flex;
  gap: 12px;
}
.fgr-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(201,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.fgr-footer-social a:hover {
  background: rgba(201,169,110,0.35);
}

/* Column headings */
.fgr-footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #C9A96E;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201,169,110,0.2);
}

/* Link lists */
.fgr-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fgr-footer-col li {
  margin-bottom: 8px;
}
.fgr-footer-col li a {
  color: #E8DCC8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.fgr-footer-col li a:hover {
  color: #FFD700;
}

/* Contact section - no borders */
.fgr-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fgr-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.fgr-contact-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
}
.fgr-contact-text {
  color: #E8DCC8;
}

/* Bottom bar */
.fgr-footer-bottom {
  border-top: 1px solid rgba(201,169,110,0.2);
  padding: 20px 0;
  text-align: center;
  margin-top: 10px;
}
.fgr-footer-bottom p {
  font-size: 13px;
  color: #A89878;
  margin-bottom: 4px;
  line-height: 1.6;
}




/* === 微信二维码 === */
.fgr-weixin-qr {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  border: 2px solid rgba(201,169,110,0.3);
  display: block;
  margin-top: 8px;
}

/* === 右侧浮动按钮 === */
.fgr-side-btns {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 1000;
}
.fgr-side-btns.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fgr-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #1A0A00;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
  cursor: pointer;
}
.fgr-side-btn:hover {
  background: #3D1F0D;
  transform: scale(1.08);
}
.fgr-side-icon {
  font-size: 20px;
  line-height: 1;
}
.fgr-side-label {
  font-size: 11px;
  color: #E8DCC8;
  margin-top: 2px;
}

/* === 弹出卡片（hover显示） === */
.fgr-side-popup {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: #FEF8F0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  white-space: nowrap;
  z-index: 1001;
  transform: translateY(-50%) translateX(8px);
}
.fgr-side-btn:hover .fgr-side-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* popup箭头（指向按钮） */
.fgr-side-popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: #FEF8F0;
}

/* 客服弹出：二维码+提示文字 */
.fgr-popup-qr {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  object-fit: cover !important;
  border-radius: 8px;
  border: 1px solid #E0D5C5;
  display: block;
}
.fgr-popup-tip {
  text-align: center;
  font-size: 13px;
  color: #5C3A1A;
  margin-top: 8px;
  font-weight: 600;
}

/* 电话弹出：号码+拨打按钮 */
.fgr-popup-phone-num {
  font-size: 20px;
  font-weight: 700;
  color: #1A0A00;
  text-align: center;
  margin-bottom: 12px;
}
.fgr-popup-call-btn {
  display: block;
  background: #C9A96E;
  color: #FEF8F0;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.fgr-popup-call-btn:hover {
  background: #B8964F;
}

/* === Fix: header.html uses old class names, add matching styles === */
.header-main { display: flex; align-items: center; justify-content: space-between; }
.logo { color: #FFFFFF; font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: 1px; padding: 16px 0; font-family: "Microsoft YaHei","PingFang SC",sans-serif; white-space: nowrap; }
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav ul li { margin: 0; }
.main-nav ul li a { color: #FFFFFF; font-size: 17px; font-weight: 700; text-decoration: none; padding: 18px 32px; letter-spacing: 1.5px; transition: background 0.2s, color 0.2s; font-family: "Microsoft YaHei","PingFang SC",sans-serif; display: block; border-bottom: 3px solid transparent; }
.main-nav ul li a:hover { background: #1E40AF; color: #FFE4A0; border-bottom-color: #F59E0B; }
.main-nav ul li a.active { border-bottom-color: #F59E0B; color: #FFE4A0; }
.header-phone { color: #FFE4A0; font-size: 14px; font-weight: 600; padding: 16px 0; font-family: "Microsoft YaHei","PingFang SC",sans-serif; white-space: nowrap; }
.btn-free { background: #F59E0B; color: #1a1a2e; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 3px; text-decoration: none; transition: background 0.2s; cursor: pointer; }
.btn-free:hover { background: #FCD34D; color: #1a1a2e; }
.fgr-side-btn-phone, .fgr-side-btn-service { /* inherit from .fgr-side-btn */ }

/* === Fix: top-bar HTML uses .container not .top-bar-inner === */
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar .top-bar-left { color: #d4d4d8; font-size: 13px; letter-spacing: 0.5px; }
.top-bar .top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar .top-bar-right span { color: #d4d4d8; font-size: 13px; }
.top-bar .top-bar-right .btn-free { background: #F59E0B; color: #1a1a2e; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 3px; text-decoration: none; transition: background 0.2s; cursor: pointer; }
.top-bar .top-bar-right .btn-free:hover { background: #FCD34D; color: #1a1a2e; }
.top-bar .top-bar-right a:not(.btn-free) { color: #d4d4d8; font-size: 13px; text-decoration: none; transition: color 0.2s; cursor: pointer; }
.top-bar .top-bar-right a:not(.btn-free):hover { color: #F59E0B; }


/* === 购物车相关样式（追加） === */

/* Header Cart Link */
.header-cart { color: #d4d4d8; margin-right: 10px; font-size: 13px; text-decoration: none; transition: color 0.2s; }
.header-cart:hover { color: #F59E0B; }
.cart-count { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 4px; background: #F59E0B; color: #1a1a2e; border-radius: 9px; font-size: 12px; text-align: center; font-weight: 700; }
.cart-count.has-items { animation: cartBounce 0.3s ease; }
@keyframes cartBounce { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Floating Cart Button */
.fgr-side-btn-cart { background: #2563EB; }
.fgr-side-btn-cart:hover { background: #1E40AF; }
.fgr-side-btn-cart .fgr-side-icon { font-size: 22px; }

/* Add to Cart Button */
.btn-add-cart { display: inline-block; padding: 5px 20px; font-size: 13px; color: #fff; background: #F59E0B; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.btn-add-cart:hover { background: #FCD34D; color: #1a1a2e; transform: translateY(-1px); }
.btn-add-cart.added { background: #10B981; }
.btn-add-cart:disabled { opacity: 0.7; cursor: not-allowed; }

/* Cart fly animation */
.cart-fly { pointer-events: none; }

/* Cart Page */
.cart-page { min-height: 600px; padding: 30px 0; }
.page-title { font-size: 28px; font-weight: 700; color: #1F2937; margin-bottom: 24px; }

.cart-list { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); overflow: hidden; }
.cart-header { display: flex; padding: 16px 20px; background: #f8f9fa; border-bottom: 2px solid #e9ecef; font-weight: 600; color: #495057; font-size: 14px; }
.cart-header .col-product { flex: 3; }
.cart-header .col-price { flex: 1; text-align: center; }
.cart-header .col-qty { flex: 1.5; text-align: center; }
.cart-header .col-subtotal { flex: 1; text-align: center; }
.cart-header .col-action { flex: 1; text-align: center; }

.cart-item { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #e9ecef; transition: background 0.2s; }
.cart-item:hover { background: #f8f9fa; }
.cart-item .col-product { flex: 3; }
.cart-item .col-price { flex: 1; text-align: center; color: #6B7280; }
.cart-item .col-qty { flex: 1.5; text-align: center; }
.cart-item .col-subtotal { flex: 1; text-align: center; color: #F59E0B; font-weight: 600; font-size: 16px; }
.cart-item .col-action { flex: 1; text-align: center; }

.product-info { display: flex; flex-direction: column; gap: 4px; }
.product-title { font-size: 15px; font-weight: 600; color: #1F2937; }
.product-catid { font-size: 12px; color: #6B7280; }

.qty-control { display: inline-flex; align-items: center; border: 1px solid #dee2e6; border-radius: 6px; overflow: hidden; }
.qty-control button { width: 32px; height: 32px; border: none; background: #f8f9fa; cursor: pointer; font-size: 16px; color: #495057; transition: background 0.2s; }
.qty-control button:hover { background: #e9ecef; }
.qty-input { width: 50px; height: 32px; border: none; border-left: 1px solid #dee2e6; border-right: 1px solid #dee2e6; text-align: center; font-size: 14px; outline: none; }

.btn-remove { color: #dc3545; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn-remove:hover { color: #c82333; text-decoration: underline; }

.cart-footer { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #f8f9fa; }
.cart-summary { display: flex; gap: 24px; align-items: center; }
.summary-count { font-size: 14px; color: #6B7280; }
.summary-total { font-size: 20px; }
.summary-total strong { color: #F59E0B; font-size: 24px; }

.cart-actions { display: flex; gap: 12px; }
.btn-clear-cart { padding: 8px 16px; background: #fff; border: 1px solid #dee2e6; border-radius: 6px; color: #6c757d; cursor: pointer; font-size: 14px; text-decoration: none; transition: all 0.2s; }
.btn-clear-cart:hover { border-color: #dc3545; color: #dc3545; }
.btn-go-address { padding: 8px 16px; background: #fff; border: 1px solid #2563EB; border-radius: 6px; color: #2563EB; cursor: pointer; font-size: 14px; text-decoration: none; }
.btn-go-address:hover { background: #2563EB; color: #fff; }
.btn-checkout { padding: 10px 32px; background: #F59E0B; color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-checkout:hover { background: #e09000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

/* Empty State */
.cart-empty, .cart-login-prompt { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.empty-icon, .login-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty h2, .cart-login-prompt h2 { font-size: 22px; color: #1F2937; margin-bottom: 8px; }
.cart-empty p, .cart-login-prompt p { color: #6B7280; margin-bottom: 20px; }
.btn-go-shop, .btn-login { display: inline-block; padding: 10px 32px; background: #2563EB; color: #fff; border-radius: 6px; font-size: 16px; text-decoration: none; transition: all 0.2s; }
.btn-go-shop:hover, .btn-login:hover { background: #1E40AF; color: #fff; }
.btn-register { display: inline-block; padding: 10px 32px; background: #fff; border: 2px solid #2563EB; color: #2563EB; border-radius: 6px; font-size: 16px; text-decoration: none; margin-left: 12px; }

/* Order Page */
.order-page { min-height: 600px; padding: 30px 0; }
.order-tabs { display: flex; gap: 0; margin-bottom: 24px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.order-tab { flex: 1; padding: 12px 0; text-align: center; color: #495057; font-size: 14px; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.2s; }
.order-tab:hover { background: #f8f9fa; color: #2563EB; }
.order-tab.active { color: #2563EB; border-bottom-color: #2563EB; font-weight: 600; }

.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); overflow: hidden; }
.order-card-header { display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.order-sn { font-weight: 600; color: #1F2937; font-size: 15px; }
.order-time { color: #6B7280; font-size: 13px; }
.order-status { margin-left: auto; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.status-0 { background: #e9ecef; color: #6c757d; }
.status-1 { background: #fff3cd; color: #856404; }
.status-2 { background: #cce5ff; color: #004085; }
.status-3 { background: #d4edda; color: #155724; }
.status-4 { background: #d1ecf1; color: #0c5460; }
.status-5 { background: #f8d7da; color: #721c24; }

.order-card-body { padding: 16px 20px; }
.order-item-row { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px dashed #e9ecef; }
.order-item-row:last-child { border-bottom: none; }
.order-item-row .item-title { flex: 2; font-size: 14px; }
.order-item-row .item-price { color: #6B7280; font-size: 14px; }
.order-item-row .item-qty { color: #6B7280; font-size: 14px; }
.order-item-row .item-link { color: #2563EB; font-size: 13px; text-decoration: none; }

.order-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #f8f9fa; border-top: 1px solid #e9ecef; }
.order-total { font-size: 14px; color: #6B7280; }
.order-total strong { color: #F59E0B; font-size: 18px; }
.order-actions { display: flex; gap: 8px; }
.btn-detail { padding: 6px 16px; background: #2563EB; color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none; }
.btn-detail:hover { background: #1E40AF; color: #fff; }
.btn-cancel { padding: 6px 16px; background: #fff; border: 1px solid #dc3545; color: #dc3545; border-radius: 4px; font-size: 13px; text-decoration: none; }
.btn-cancel:hover { background: #dc3545; color: #fff; }
.btn-confirm { padding: 6px 16px; background: #10B981; color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none; }

/* Order Detail */
.order-detail-page { min-height: 600px; padding: 30px 0; }
.order-detail-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); overflow: hidden; }
.detail-section { padding: 20px; border-bottom: 1px solid #e9ecef; }
.detail-section:last-child { border-bottom: none; }
.detail-section h3 { font-size: 16px; font-weight: 600; color: #1F2937; margin-bottom: 16px; }
.detail-row { display: flex; padding: 6px 0; }
.detail-label { min-width: 100px; color: #6B7280; font-size: 14px; }
.detail-value { color: #1F2937; font-size: 14px; }
.detail-value.price { color: #F59E0B; font-size: 20px; font-weight: 700; }

.detail-item-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #e9ecef; }
.detail-item-row:last-child { border-bottom: none; }
.detail-item-row .item-title { flex: 2; }
.detail-item-row .item-subtotal { color: #F59E0B; font-weight: 600; }
.btn-after-sale { padding: 4px 12px; background: #fff; border: 1px solid #dc3545; color: #dc3545; border-radius: 4px; font-size: 12px; text-decoration: none; cursor: pointer; }

.detail-actions { display: flex; gap: 12px; padding: 20px; justify-content: center; }
.btn-back { padding: 8px 20px; background: #fff; border: 1px solid #dee2e6; border-radius: 6px; color: #495057; text-decoration: none; font-size: 14px; }
.btn-back:hover { border-color: #6B7280; }

/* Address Page */
.address-page { min-height: 600px; padding: 30px 0; }
.address-actions { margin-bottom: 20px; }
.btn-add-address { padding: 10px 24px; background: #2563EB; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.btn-add-address:hover { background: #1E40AF; }

.address-form-wrapper { margin-bottom: 24px; }
.address-form-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); padding: 24px; }
.address-form-card h3 { margin-bottom: 20px; font-size: 18px; color: #1F2937; }
.form-row { display: flex; align-items: center; margin-bottom: 16px; gap: 12px; }
.form-row label { min-width: 80px; color: #6B7280; font-size: 14px; }
.form-row input, .form-row textarea, .form-row select { flex: 1; padding: 8px 12px; border: 1px solid #dee2e6; border-radius: 4px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }
.form-row textarea { min-height: 80px; resize: vertical; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.form-actions .btn-save { padding: 8px 24px; background: #2563EB; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.form-actions .btn-save:hover { background: #1E40AF; }
.form-actions .btn-cancel { padding: 8px 24px; background: #fff; border: 1px solid #dee2e6; color: #6c757d; border-radius: 6px; font-size: 14px; cursor: pointer; }

.address-list { display: flex; flex-direction: column; gap: 12px; }
.address-card { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); border: 2px solid transparent; transition: border-color 0.2s; }
.address-card.default { border-color: #2563EB; }
.address-name { font-size: 15px; font-weight: 600; color: #1F2937; margin-bottom: 4px; }
.address-phone { font-weight: 400; color: #6B7280; margin-left: 8px; }
.address-detail { font-size: 14px; color: #6B7280; }
.default-tag { display: inline-block; padding: 2px 8px; background: #2563EB; color: #fff; border-radius: 3px; font-size: 12px; margin-left: 8px; }
.address-actions-btns { display: flex; gap: 12px; }
.address-actions-btns a { font-size: 14px; text-decoration: none; color: #2563EB; cursor: pointer; }
.address-actions-btns a:hover { text-decoration: underline; }
.text-danger { color: #dc3545; }

/* Checkout Page */
.checkout-page { min-height: 600px; padding: 30px 0; }
.checkout-content { max-width: 800px; margin: 0 auto; }
.checkout-section { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); padding: 24px; margin-bottom: 20px; }
.checkout-section h3 { font-size: 16px; font-weight: 600; color: #1F2937; margin-bottom: 16px; }
.checkout-items { display: flex; flex-direction: column; gap: 12px; }
.checkout-item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px dashed #e9ecef; }
.checkout-item:last-child { border-bottom: none; }
.checkout-item .item-title { flex: 2; }
.checkout-item .item-price { color: #6B7280; }
.checkout-item .item-subtotal { color: #F59E0B; font-weight: 600; }
.checkout-total { text-align: right; padding-top: 12px; font-size: 18px; }
.checkout-total strong { color: #F59E0B; font-size: 22px; }

.address-select-list { display: flex; flex-direction: column; gap: 12px; }
.address-select-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid #e9ecef; border-radius: 6px; cursor: pointer; transition: border-color 0.2s; }
.address-select-item:hover { border-color: #2563EB; }
.address-select-item input[type="radio"] { margin: 0; }
.address-select-item .addr-name { font-weight: 600; }
.address-select-item .addr-phone { color: #6B7280; }
.address-select-item .addr-text { color: #6B7280; font-size: 14px; }
.btn-add-new-address { display: inline-block; margin-top: 12px; color: #2563EB; text-decoration: none; font-size: 14px; }

.checkout-section textarea { width: 100%; padding: 12px; border: 1px solid #dee2e6; border-radius: 4px; font-size: 14px; resize: vertical; }
.checkout-submit { text-align: center; }
.btn-submit-order { padding: 12px 48px; background: #F59E0B; color: #fff; border: none; border-radius: 6px; font-size: 18px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-submit-order:hover { background: #e09000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.3); }

/* After Sale Form */
.after-sale-form-wrapper { margin-top: 24px; }
.after-sale-form-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); padding: 24px; }

/* Pagination */
.pagination { text-align: center; margin-top: 24px; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid #dee2e6; border-radius: 4px; color: #495057; text-decoration: none; font-size: 14px; }
.pagination a:hover { background: #2563EB; color: #fff; border-color: #2563EB; }
.pagination .current { background: #2563EB; color: #fff; border-color: #2563EB; }

/* Responsive */
@media (max-width: 768px) {
  .cart-header { display: none; }
  .cart-item { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .cart-item .col-product { width: 100%; flex: none; }
  .cart-item .col-price, .cart-item .col-qty, .cart-item .col-subtotal, .cart-item .col-action { flex: 1; text-align: center; }
  .cart-footer { flex-direction: column; gap: 12px; }
  .cart-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .order-tabs { overflow-x: auto; }
  .order-tab { padding: 10px 16px; white-space: nowrap; }
  .order-card-header { flex-wrap: wrap; gap: 8px; }
  .order-card-footer { flex-direction: column; gap: 12px; }
  .address-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .checkout-section { padding: 16px; }
  .checkout-item { flex-wrap: wrap; }
}
