/* 移动端增强样式 - 基于Bootstrap 4优化 */

/* ===== 基础样式优化 ===== */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffa726;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --accent-color: #ff6b35;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.15s ease-in-out;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}



/* ===== 导航栏优化 ===== */
.navbar {
  background: linear-gradient(135deg, var(--accent-color), #ff8c42) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.navbar-brand {
  color: white !important;
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}



/* ===== 卡片组件优化 ===== */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.card-title {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--dark-color);
}

.card-body {
  padding: 1.5rem;
}

/* ===== 表格优化 ===== */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.table thead th {
  background: linear-gradient(135deg, #fafaf8, #e9ecef);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  padding: 1rem 0.75rem;
  color: #002763 !important;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
  transform: scale(1.01);
}

.table td, .table th {
  padding: 0.75rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

/* ===== 按钮优化 ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #ff8c42);
  border-color: var(--accent-color);
}

.btn-outline-primary {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.btn-outline-success {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-success:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #c82333);
}

/* ===== 表单优化 ===== */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  /* padding: 0.75rem 1rem; */
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* ===== 汇率计算器优化 ===== */
.rate-calculator {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid #dee2e6;
}

.rate-calculator .form-control {
  border: 2px solid #fff;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rate-calculator .form-control:focus {
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.rate-calculator .btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.rate-calculator .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#result {
  display: none;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1rem;
  border-left: 4px solid var(--success-color);
  box-shadow: var(--box-shadow);
}

/* ===== 货币图标和银行logo优化 ===== */
.coin-img {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.coin-img:hover {
  transform: scale(1.1);
}

.bank-logo {
  height: 2rem;
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bank-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===== 银行列表按钮优化 ===== */
.bank-list-btn {
  min-height: 120px;
  border: 2px solid #e9ecef;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bank-list-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-color), #ff8c42);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.bank-list-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: var(--accent-color);
}

.bank-list-btn:hover::before {
  transform: scaleX(1);
}

.bank-list-btn .bank-logo {
  height: 2.5rem;
  margin-bottom: 0.75rem;
}

.bank-list-btn .small {
  font-size: 0.9rem !important;
  font-weight: 600;
  color: var(--dark-color) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ===== 汇率显示优化 ===== */
.rate-display {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.rate-display::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
  border-radius: 50%;
  transform: translate(30px, -30px);
  z-index: 0;
}

.rate-display .row {
  position: relative;
  z-index: 1;
}

.rate-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-color), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rate-label {
  font-size: 1rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rate-conversion {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

.rate-conversion .small {
  font-size: 0.9rem !important;
  font-weight: 500;
  color: var(--dark-color) !important;
}

.rate-update-time {
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-top: 1rem;
}

.rate-update-time small {
  font-size: 0.85rem !important;
  font-weight: 500;
  color: var(--accent-color) !important;
}

/* ===== 移动端专用优化 ===== */
@media (max-width: 768px) {
  /* 基础字体和间距调整 */
  html {
    font-size: 14px;
  }
  
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* 导航栏移动端优化 */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* 卡片移动端优化 */
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  /* 表格移动端优化 */
  .table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .table thead th {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
  
  .table td, .table th {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
  }
  
  /* 货币图标移动端优化 */
  .coin-img {
    width: 32px;
    height: 24px;
  }
  
  .bank-logo {
    height: 1.5rem;
  }
  
  /* 银行列表移动端优化 */
  .bank-list-btn {
    min-height: 100px;
  }
  
  .bank-list-btn .bank-logo {
    height: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .bank-list-btn .small {
    font-size: 0.85rem !important;
  }
  
  /* 汇率显示移动端优化 */
  .rate-display {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .rate-value {
    font-size: 2.5rem;
  }
  
  .rate-label {
    font-size: 0.9rem;
  }
  
  .rate-conversion .small {
    font-size: 0.8rem !important;
  }
  
  .rate-update-time small {
    font-size: 0.75rem !important;
  }
  
  /* 按钮移动端优化 */
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* 隐藏不必要的元素 */
  .d-none-mobile {
    display: none !important;
  }
  
  /* 移动端专用布局 */
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-stack > * {
    margin-bottom: 1rem;
  }
  
  /* 移动端表格优化 */
  .table-coin a {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .table-coin a span {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
}

/* ===== 超小屏幕优化 (480px以下) ===== */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* 表格进一步优化 */
  .table thead th {
    font-size: 0.7rem;
    padding: 0.25rem 0.125rem;
  }
  
  .table td, .table th {
    padding: 0.25rem 0.125rem;
    font-size: 0.8rem;
  }
  
  /* 货币图标进一步缩小 */
  .coin-img {
    width: 24px;
    height: 18px;
  }
  
  .bank-logo {
    height: 1.25rem;
  }
  
  /* 银行列表超小屏幕优化 */
  .bank-list-btn {
    min-height: 80px;
  }
  
  .bank-list-btn .bank-logo {
    height: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .bank-list-btn .small {
    font-size: 0.8rem !important;
  }
  
  /* 汇率显示进一步优化 */
  .rate-display {
    padding: 1rem;
  }
  
  .rate-value {
    font-size: 2rem;
  }
  
  .rate-label {
    font-size: 0.8rem;
  }
  
  .rate-conversion .small {
    font-size: 0.75rem !important;
  }
  
  .rate-update-time small {
    font-size: 0.7rem !important;
  }
  
  /* 卡片内容进一步压缩 */
  .card-body {
    padding: 0.75rem;
  }
  
  /* 按钮进一步优化 */
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* 黄金价格移动端优化 */
  .gold-price-card .card-body {
    padding: 1rem;
  }
  
  .gold-price-title {
    font-size: 1rem;
  }
  
  .gold-price-value {
    font-size: 2rem;
  }
  
  .gold-price-details {
    padding: 0.75rem;
  }
  
  .gold-price-details p {
    font-size: 0.8rem;
  }
}

/* ===== 平板设备优化 (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
  }
  
  .table thead th {
    font-size: 0.8rem;
  }
  
  .table td, .table th {
    font-size: 0.9rem;
  }
  
  .coin-img {
    width: 40px;
    height: 28px;
  }
  
  .bank-logo {
    height: 1.75rem;
  }
  
  .bank-list-btn .bank-logo {
    height: 2.25rem;
  }
  
  .rate-value {
    font-size: 3rem;
  }
}

/* ===== 桌面端优化 (≥1024px) ===== */
@media (min-width: 1024px) {
  .rate-display {
    padding: 2rem;
    margin: 2rem 0;
  }
  
  .rate-value {
    font-size: 4rem;
  }
  
  .rate-label {
    font-size: 1.1rem;
  }
  
  .rate-conversion {
    padding: 1.5rem;
  }
  
  .rate-conversion .small {
    font-size: 1rem !important;
  }
  
  .rate-update-time {
    padding: 0.75rem 1.5rem;
  }
  
  .rate-update-time small {
    font-size: 0.9rem !important;
  }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* .rate-value {
  animation: pulse 2s ease-in-out infinite;
} */

.rate-display .col-md-6:first-child {
  animation: slideInLeft 0.8s ease-out;
}

.rate-display .col-md-6:last-child {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

/* ===== 加载动画 ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 工具提示优化 ===== */
.tooltip {
  font-size: 0.875rem;
}

.tooltip-inner {
  background-color: var(--dark-color);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
}

/* ===== 警告框优化 ===== */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.alert-warning {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  color: #e65100;
  border-left: 4px solid var(--accent-color);
}

.alert-info {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  border-left: 4px solid var(--primary-color);
}

/* ===== 面包屑导航优化 ===== */
.breadcrumb {
  background: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--secondary-color);
  font-weight: bold;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ===== 分页优化 ===== */
.pagination {
  justify-content: center;
  margin-top: 2rem;
}

.page-link {
  border: none;
  color: var(--primary-color);
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.page-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border: none;
}

/* ===== 响应式图片 ===== */
.img-fluid {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ===== 代码块优化 ===== */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1rem;
  overflow-x: auto;
}

code {
  background-color: #f8f9fa;
  color: var(--danger-color);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* ===== 黄金价格页面优化 ===== */
.gold-price-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.gold-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  z-index: 1;
}

.gold-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gold-price-card .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.gold-price-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.gold-price-subtitle {
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 1rem;
}

.gold-price-value {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gold-price-change {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.gold-price-change.positive {
  color: var(--success-color);
}

.gold-price-change.negative {
  color: var(--danger-color);
}
.gold-price-change span{
  padding: 0 .2rem;
}

/* ===== 黄金价格卡片样式 ===== */
.price-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 1.5rem 1rem;
  margin: 0.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #ff8c42);
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.price-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.price-unit {
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* 特定价格卡片样式 */
.gold-price::before {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.platinum-price::before {
  background: linear-gradient(90deg, #6c757d, #495057);
}

.bar-price::before {
  background: linear-gradient(90deg, #ffc107, #e0a800);
}

/* 移动端优化 */
@media (max-width: 768px) {
  .price-card {
    padding: 1rem 0.75rem;
    margin: 0.25rem 0;
  }
  
  .price-value {
    font-size: 1.5rem;
  }
  
  .price-label {
    font-size: 0.9rem;
  }
  
  .price-unit {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .price-card {
    padding: 0.75rem 0.5rem;
    margin: 0.125rem 0;
  }
  
  .price-value {
    font-size: 1.25rem;
  }
  
  .price-label {
    font-size: 0.85rem;
  }
  
  .price-unit {
    font-size: 0.75rem;
  }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
  .price-card {
    padding: 0.5rem 0.25rem;
  }
  
  .price-value {
    font-size: 1.1rem;
  }
  
  .price-label {
    font-size: 0.8rem;
  }
  
  .price-unit {
    font-size: 0.7rem;
  }
}

/* 价格说明样式 */
.price-disclaimer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  margin: 1rem 0;
}

.price-disclaimer p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.price-disclaimer small {
  display: block;
  margin-top: 0.5rem;
}

/* 价格卡片容器优化 */
.price-cards-container {
  margin: 2rem 0;
}

/* 响应式价格卡片布局 */
@media (max-width: 576px) {
  .price-cards-container .row {
    margin: 0;
  }
  
  .price-cards-container .col-4 {
    padding: 0 0.25rem;
  }
  
  .price-card {
    margin: 0.125rem 0;
  }
}

/* ===== Footer美化样式 ===== */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #ff8c42, var(--primary-color));
}

.footer-main {
  padding: 3rem 0 2rem;
  position: relative;
}

.footer-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.footer-section {
  position: relative;
  z-index: 1;
}

.footer-title {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #ff8c42);
  border-radius: 2px;
}

.footer-description {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  text-decoration: none;
}

.footer-links a::before {
  content: '→';
  margin-right: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.footer-friend-links {
  color: #bdc3c7;
  font-size: 0.9rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-copyright {
  color: #95a5a6;
  font-size: 0.9rem;
}

.footer-copyright a {
  color: #95a5a6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: var(--accent-color);
}

.beian-link {
  color: #27ae60 !important;
  font-weight: 500;
}

.beian-link:hover {
  color: #2ecc71 !important;
}

.footer-stats {
  color: #95a5a6;
  font-size: 0.9rem;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stat-number {
  color: var(--accent-color);
  font-weight: 600;
  margin-left: 0.25rem;
}

/* Footer响应式优化 */
@media (max-width: 768px) {
  .footer-main {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
  }
  
  .footer-bottom {
    padding: 1rem 0;
  }
  
  .footer-stats {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  .stat-item {
    margin: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-description {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .social-link {
    width: 30px;
    height: 30px;
  }
  
  .footer-bottom {
    padding: 0.75rem 0;
  }
  
  .footer-copyright,
  .footer-stats {
    font-size: 0.8rem;
    text-align: center;
  }
  
  .stat-item {
    display: block;
    margin: 0.25rem 0;
  }
}

/* Footer动画效果 */
@keyframes footerGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
  }
}

.footer {
  animation: footerGlow 4s ease-in-out infinite;
}

/* Footer链接悬停效果增强 */
.footer-links a {
  position: relative;
  overflow: hidden;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.gold-price-details {
  background: rgba(255, 215, 0, 0.1);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.gold-price-details p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.gold-price-details .text-info {
  font-weight: 600;
  color: var(--primary-color) !important;
}

.gold-price-update {
  text-align: center;
  font-size: 0.75rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.gold-price-chart {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gold-price-chart:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gold-price-chart img {
  width: 100%;
  height: auto;
  display: block;
  loading: lazy;
  decoding: async;
}

.gold-price-link {
  text-align: center;
  margin-bottom: 1rem;
}

.gold-price-link a {
  color: var(--danger-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.gold-price-link a:hover {
  color: #c82333;
  text-decoration: underline;
}

/* ===== 黄金价格表格优化 ===== */
.gold-table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.gold-table thead th {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: var(--dark-color);
  font-weight: 700;
  border: none;
  padding: 1rem 0.75rem;
  text-align: center;
}

.gold-table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

.gold-table tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.05);
}

/* ===== 图表容器优化 ===== */
.chart-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #fff;
  margin: 1rem 0;
  padding: 1rem;
}

.chart-tab {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 8px 16px;
  margin: 0 4px;
  cursor: pointer;
  border: 1px solid #ecf0f1;
  background: #fff;
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 500;
}

.chart-tab.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.chart-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-tab.inactive {
  background: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

/* 图表加载状态 */
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
}

.chart-loading .spinner-border {
  color: var(--accent-color);
}

/* 图表工具栏优化 */
.echarts-tooltip {
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* 移动端图表优化 */
@media (max-width: 768px) {
  .chart-container {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }
  
  .chart-tab {
    padding: 6px 12px;
    font-size: 0.8rem;
    margin: 0 2px;
  }
  
  .chart-loading {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .chart-container {
    padding: 0.25rem;
  }
  
  .chart-tab {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin: 0 1px;
  }
  
  .chart-loading {
    height: 150px;
  }
}

/* ===== 油价页面优化 ===== */
.oil-overview-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.oil-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  z-index: 1;
}

.oil-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.oil-type {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.oil-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--accent-color), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.oil-unit {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.oil-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.oil-table thead th {
  background: linear-gradient(135deg, var(--accent-color), #ff8c42);
  color: white !important;
  font-weight: 700;
  border: none;
  padding: 1rem 0.75rem;
  text-align: center;
}

.oil-table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

.oil-table tbody tr:hover {
  background-color: rgba(255, 107, 53, 0.05);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.province-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.province-link:hover {
  color: var(--accent-color);
  text-decoration: none;
  transform: translateX(2px);
}

.price-cell {
  font-weight: 600;
  color: var(--dark-color);
  text-align: center;
}

/* 油耗计算器样式 */
.fuel-calculator-form {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
}

.fuel-calculator-form .form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.fuel-calculator-form .form-control {
  border: 2px solid #fff;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.fuel-calculator-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.result-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.result-item {
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-item:last-child {
  margin-bottom: 0;
}

.result-label {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--accent-color), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-unit {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* 移动端油价页面优化 */
@media (max-width: 768px) {
  .oil-overview-card {
    padding: 1rem;
  }
  
  .oil-price {
    font-size: 1.5rem;
  }
  
  .oil-type {
    font-size: 0.8rem;
  }
  
  .oil-table thead th {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
  
  .oil-table tbody td {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
  }
  
  .price-cell {
    font-size: 0.8rem;
  }
  
  .fuel-calculator-form {
    padding: 1rem;
  }
  
  .result-card {
    padding: 1rem;
  }
  
  .result-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .oil-overview-card {
    padding: 0.75rem;
  }
  
  .oil-price {
    font-size: 1.25rem;
  }
  
  .oil-table thead th {
    font-size: 0.7rem;
    padding: 0.25rem 0.125rem;
  }
  
  .oil-table tbody td {
    padding: 0.25rem 0.125rem;
    font-size: 0.8rem;
  }
  
  .fuel-calculator-form {
    padding: 0.75rem;
  }
  
  .result-card {
    padding: 0.75rem;
  }
  
  .result-value {
    font-size: 1.25rem;
  }
}

/* ===== 白银价格页面优化 ===== */
.silver-price-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #fff, #f8f9fa);
}

.silver-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #c0c0c0, #e5e4e2);
  z-index: 1;
}

.silver-price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.silver-price-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.silver-price-header h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.silver-price-main {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-display {
  margin-bottom: 1rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  background: linear-gradient(135deg, var(--accent-color), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-unit {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-left: 0.5rem;
}

.price-change {
  margin-bottom: 1rem;
}

.change-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.change-percent {
  font-size: 1rem;
  font-weight: 600;
}

.price-details {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.update-time {
  margin-top: 1rem;
}

.silver-chart {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.silver-chart:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.silver-chart img {
  width: 100%;
  height: auto;
  display: block;
}

/* 移动端白银页面优化 */
@media (max-width: 768px) {
  .silver-price-card {
    margin-bottom: 1rem;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  .price-unit {
    font-size: 0.8rem;
  }
  
  .change-value {
    font-size: 1rem;
  }
  
  .change-percent {
    font-size: 0.9rem;
  }
  
  .price-details {
    padding: 0.75rem;
  }
  
  .detail-label {
    font-size: 0.8rem;
  }
  
  .detail-value {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .price-value {
    font-size: 1.75rem;
  }
  
  .price-unit {
    font-size: 0.75rem;
  }
  
  .change-value {
    font-size: 0.9rem;
  }
  
  .change-percent {
    font-size: 0.8rem;
  }
  
  .price-details {
    padding: 0.5rem;
  }
  
  .detail-label {
    font-size: 0.75rem;
  }
  
  .detail-value {
    font-size: 0.8rem;
  }
}

/* ===== 银行汇率页面优化 ===== */
.rate-overview-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.rate-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  z-index: 1;
}

.rate-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rate-type {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rate-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rate-unit {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.bank-rate-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bank-rate-table thead th {
  background: linear-gradient(135deg, #180085, var(--primary-color));
  color: white !important;
  font-weight: 700;
  border: none;
  padding: 1rem 0.75rem;
  text-align: center;
}

.bank-rate-table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

.bank-rate-table tbody tr:hover {
  background-color: rgba(44, 90, 160, 0.05);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.currency-cell {
  min-width: 200px;
}

.currency-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.currency-link:hover {
  color: var(--accent-color);
  text-decoration: none;
  transform: translateX(2px);
}

.currency-icon {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.currency-link:hover .currency-icon {
  transform: scale(1.1);
}

.currency-name {
  font-weight: 600;
  color: var(--dark-color);
}

.currency-code {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.currency-info {
  display: flex;
  align-items: center;
}

.rate-cell {
  font-weight: 600;
  color: var(--dark-color);
}

.rate-number {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--dark-color);
}

.mid-rate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mid-rate-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.mid-rate-link:hover {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* 移动端银行汇率页面优化 */
@media (max-width: 768px) {
  .rate-overview-card {
    padding: 1rem;
  }
  
  .rate-value {
    font-size: 1.5rem;
  }
  
  .rate-type {
    font-size: 0.8rem;
  }
  
  .bank-rate-table thead th {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
  
  .bank-rate-table tbody td {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
  }
  
  .currency-cell {
    min-width: 150px;
  }
  
  .currency-icon {
    width: 24px;
    height: 18px;
  }
  
  .currency-name {
    font-size: 0.9rem;
  }
  
  .currency-code {
    font-size: 0.7rem;
  }
  
  .rate-number {
    font-size: 0.85rem;
  }
  
  .mid-rate-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .rate-overview-card {
    padding: 0.75rem;
  }
  
  .rate-value {
    font-size: 1.25rem;
  }
  
  .bank-rate-table thead th {
    font-size: 0.7rem;
    padding: 0.25rem 0.125rem;
  }
  
  .bank-rate-table tbody td {
    padding: 0.25rem 0.125rem;
    font-size: 0.8rem;
  }
  
  .currency-cell {
    min-width: 120px;
  }
  
  .currency-icon {
    width: 20px;
    height: 15px;
  }
  
  .currency-name {
    font-size: 0.8rem;
  }
  
  .currency-code {
    font-size: 0.65rem;
  }
  
  .rate-number {
    font-size: 0.8rem;
  }
  
  .mid-rate-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* ===== LPR利率页面优化 ===== */
.lpr-current-card,
.lpr-year-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #fff, #f8f9fa);
}

.lpr-current-card::before,
.lpr-year-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  z-index: 1;
}

.lpr-current-card:hover,
.lpr-year-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.lpr-rates {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lpr-rate-item {
  flex: 1;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.lpr-rate-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rate-label {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rate-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rate-period {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.lpr-info h6,
.lpr-years h6 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.lpr-info p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.year-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.year-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.year-link:hover {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.lpr-table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lpr-table thead th {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  font-weight: 700;
  border: none;
  padding: 1rem 0.75rem;
  text-align: center;
}

.lpr-table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

.lpr-table tbody tr:hover {
  background-color: rgba(44, 90, 160, 0.05);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.rate-cell {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.lpr-note {
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  padding: 1rem;
  border-left: 4px solid var(--warning-color);
}

.lpr-chart-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lpr-chart {
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

/* 移动端LPR页面优化 */
@media (max-width: 768px) {
  .lpr-rates {
    flex-direction: column;
    gap: 1rem;
  }
  
  .lpr-rate-item {
    padding: 1rem;
  }
  
  .rate-value {
    font-size: 2rem;
  }
  
  .rate-label {
    font-size: 0.8rem;
  }
  
  .lpr-table thead th {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
  
  .lpr-table tbody td {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
  }
  
  .rate-cell {
    font-size: 1rem;
  }
  
  .year-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .lpr-chart {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .lpr-rate-item {
    padding: 0.75rem;
  }
  
  .rate-value {
    font-size: 1.75rem;
  }
  
  .rate-label {
    font-size: 0.75rem;
  }
  
  .lpr-table thead th {
    font-size: 0.7rem;
    padding: 0.25rem 0.125rem;
  }
  
  .lpr-table tbody td {
    padding: 0.25rem 0.125rem;
    font-size: 0.8rem;
  }
  
  .rate-cell {
    font-size: 0.9rem;
  }
  
  .year-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .lpr-chart {
    min-height: 250px;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .navbar, .btn, .pagination {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
  
  .table {
    box-shadow: none;
  }
  
  .chart-container {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}
