/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 滚动通知栏 */
.notification-bar {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    border-bottom: 2px solid rgba(231, 76, 60, 0.5);
}

.notification-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll 15s linear infinite;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.notification-text {
    padding: 0 20px;
    display: inline-block;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.time-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.current-time {
  color: #e74c3c;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
  animation: timeGlow 2s ease-in-out infinite alternate;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.current-time::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: timeShimmer 3s infinite;
}

@keyframes timeGlow {
  0% {
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.6);
  }
}

@keyframes timeShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.market-status {
    color: #ffffff;
    font-size: 14px;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 20px 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price-table-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.price-table thead th {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: #ffffff;
  padding: 18px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-table thead th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.commodity-header {
  text-align: left;
  padding-left: 15px;
}

.price-header {
  min-width: 90px;
}

.price-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
  cursor: pointer;
}

.price-table tbody tr:hover .commodity-title {
  color: #3498db;
  transform: translateX(3px);
}

.price-table tbody tr:hover .price-main {
  transform: scale(1.05);
}

.price-table tbody tr:last-child {
    border-bottom: none;
}

/* 商品名称列优化 */
.commodity-name {
  padding: 15px;
  text-align: left;
}

.commodity-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.commodity-title {
  color: #f39c12;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.commodity-change {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

/* 正规交易所标准颜色 - 涨红跌绿 */
.commodity-change.price-up {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.3));
  border-color: rgba(220, 38, 38, 0.4);
  color: #dc2626;
  font-weight: 700;
}

.commodity-change.price-down {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(21, 128, 61, 0.3));
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
  font-weight: 700;
}

/* 价格单元格优化 */
.price-cell {
  padding: 15px 10px;
  text-align: center;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 3px;
  position: relative;
  overflow: hidden;
}

.price-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.price-cell:hover::before {
  left: 100%;
}

.price-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.price-main {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', monospace;
  color: inherit;
}

.price-label {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 正规交易所标准颜色 - 涨红跌绿 */
.price-up {
  color: #dc2626 !important;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(185, 28, 28, 0.35));
  border: 2px solid rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4), inset 0 0 10px rgba(220, 38, 38, 0.1);
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}

.price-up .price-main {
  color: #dc2626 !important;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}

.price-down {
  color: #22c55e !important;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(21, 128, 61, 0.35));
  border: 2px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4), inset 0 0 10px rgba(34, 197, 94, 0.1);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* .price-down .price-main {
  color: #22c55e !important;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
} */

.price-neutral {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(240, 240, 240, 0.25));
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* 高低价格单元格优化 */
.high-low-cell {
  padding: 12px 8px;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.high-low-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.high-price {
  color: #95a5a6;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.low-price {
  color: #95a5a6;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.separator {
  color: #95a5a6;
  font-size: 12px;
  opacity: 0.5;
}

/* 底部区域 */
.footer {
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer {
    margin-bottom: 10px;
}

.disclaimer-text {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.hotline {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* 二维码容器 */
.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.qr-code-container:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* 二维码图片 */
.qr-code-image {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  border: 3px solid rgba(52, 152, 219, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  background: #ffffff;
  padding: 8px;
}

.qr-code-container:hover .qr-code-image {
  border-color: #3498db;
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(52, 152, 219, 0.6);
}

/* 二维码提示文字 */
.qr-code-tip {
  color: #3498db;
  font-size: 12px;
  text-align: center;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.qr-code-container:hover .qr-code-tip {
  color: #5dade2;
}

/* 旧的qr-code样式保留作为后备 */
.qr-code {
  color: #3498db;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.qr-code:hover {
  transform: scale(1.2);
}

.avatar {
    color: #9b59b6;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.2);
}

/* 底部导航 */
.bottom-nav {
    display: flex;
    background: linear-gradient(90deg, #34495e 0%, #2c3e50 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #bdc3c7;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:last-child {
    border-right: none;
}

.nav-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 20px;
    }
    
    .current-time {
        font-size: 14px;
    }
    
    .price-table-container {
        padding: 15px;
        margin: 10px;
    }
    
    .price-table {
        font-size: 12px;
    }
    
    .price-table thead th {
        padding: 12px 6px;
        font-size: 11px;
    }
    
    .commodity-name {
        padding: 10px;
    }
    
    .commodity-info {
        gap: 3px;
    }
    
    .commodity-title {
        font-size: 13px;
    }
    
    .commodity-change {
        font-size: 10px;
    }
    
    .price-cell {
        padding: 10px 6px;
    }
    
    .price-info {
        gap: 3px;
    }
    
     .price-main {
         font-size: 16px;
         font-weight: 800;
         letter-spacing: 0.8px;
         color: inherit;
     }
     
     .price-label {
         font-size: 10px;
         opacity: 0.9;
         font-weight: 600;
     }
    
    .high-low-cell {
        padding: 8px 4px;
    }
    
    .high-low-info {
        gap: 4px;
    }
    
    .high-price,
    .low-price {
        font-size: 12px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-item {
        padding: 12px 8px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 10px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    .price-table-container {
        padding: 10px;
        margin: 5px;
    }
    
    .price-table {
        font-size: 11px;
    }
    
    .price-table thead th {
        padding: 10px 4px;
        font-size: 10px;
    }
    
    .commodity-header {
        padding-left: 8px;
    }
    
    .commodity-name {
        padding: 8px;
    }
    
    .commodity-info {
        gap: 2px;
    }
    
    .commodity-title {
        font-size: 12px;
    }
    
    .commodity-change {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .price-cell {
        padding: 8px 4px;
    }
    
    .price-info {
        gap: 2px;
    }
    
     .price-main {
         font-size: 14px;
         font-weight: 800;
         letter-spacing: 0.6px;
         color: inherit;
     }
     
     .price-label {
         font-size: 9px;
         opacity: 0.9;
         font-weight: 600;
     }
    
    .high-low-info {
        gap: 3px;
    }
    
    .high-price,
    .low-price {
        font-size: 11px;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* 价格变动动画 */
@keyframes priceChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-change {
    animation: priceChange 0.6s ease-in-out;
}

/* 加载状态指示器 */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #3498db;
  font-size: 14px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

/* 刷新控制区域 */
.refresh-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.refresh-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.refresh-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.refresh-btn i {
  transition: transform 0.3s ease;
}

.refresh-btn:hover i {
  transform: rotate(180deg);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.refresh-btn:disabled i {
  animation: spin 1s linear infinite;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator.hidden {
    display: none;
}

/* 连接状态指示器 */
.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.connection-status.connected {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.connection-status.disconnected {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.connection-status.loading {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.connection-status.hidden {
    display: none;
}

/* 价格变动高亮效果 - 正规交易所标准颜色 */
.price-cell.highlight-up {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(185, 28, 28, 0.5)) !important;
    animation: highlightUp 1s ease-in-out;
    border: 2px solid rgba(220, 38, 38, 0.8) !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6) !important;
    color: #ffffff !important;
}

.price-cell.highlight-down {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(21, 128, 61, 0.5)) !important;
    animation: highlightDown 1s ease-in-out;
    border: 2px solid rgba(34, 197, 94, 0.8) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6) !important;
}

@keyframes highlightUp {
    0% { 
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.6), rgba(185, 28, 28, 0.7));
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(220, 38, 38, 0.8);
    }
    50% {
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(185, 28, 28, 0.9));
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(220, 38, 38, 1);
    }
    100% { 
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(185, 28, 28, 0.35));
        transform: scale(1);
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    }
}

@keyframes highlightDown {
    0% { 
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.6), rgba(21, 128, 61, 0.7));
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.8);
    }
    50% {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(21, 128, 61, 0.9));
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(34, 197, 94, 1);
    }
    100% { 
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(21, 128, 61, 0.35));
        transform: scale(1);
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    }
}

/* 错误提示 */
.error-message {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 10px 0;
    border: 1px solid rgba(231, 76, 60, 0.3);
    font-size: 14px;
}

.error-message.hidden {
    display: none;
}

/* 快讯容器 */
.news-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-header {
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 10px;
}

.news-header h2 {
    color: #3498db;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.news-header h2 i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        color: #3498db;
    }
    50% {
        transform: scale(1.2);
        color: #f39c12;
    }
}

.news-tip {
    color: #95a5a6;
    font-size: 12px;
    margin: 5px 0 0 0;
}

.news-iframe-wrapper {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-container {
        padding: 15px;
        margin: 10px;
    }
    
    .news-iframe-wrapper {
        height: 500px;
    }
    
    .news-header h2 {
        font-size: 18px;
    }
    
     /* 二维码响应式 */
     .qr-code-image {
         width: 140px;
         height: 140px;
     }
    
    .qr-code-tip {
        font-size: 11px;
    }
    
    /* 通知栏平板端优化 */
    .notification-content {
        font-size: 16px;
        animation-duration: 14s;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 10px;
        margin: 5px;
    }
    
    .news-iframe-wrapper {
        height: 450px;
    }
    
     /* 二维码移动端优化 */
     .qr-code-image {
         width: 120px;
         height: 120px;
     }
    
    .qr-code-tip {
        font-size: 10px;
    }
    
    /* 通知栏移动端优化 */
    .notification-bar {
        padding: 6px 0;
    }
    
    .notification-content {
        font-size: 16px;
        animation-duration: 12s;
    }
    
    .qr-code-container {
        padding: 8px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
