/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
  background-color: #000;
  color: #fff;
}

body {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  font-size: 16px;
  overflow: hidden;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* 头部样式 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  margin-bottom: 15px;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  max-width: 300px;
  width: auto;
  border-radius: 8px;
}

.logo img:hover {
  /* 移除所有悬停效果 */
}

.update-time {
  color: #ff3333;
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 20px;
}

/* 行情表格样式 */
.quotation-table-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  overflow: visible;
}

.quotation-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 调整列宽比例 */
.quotation-table th:nth-child(1),
.quotation-table td:nth-child(1) {
  width: 20%;
}

.quotation-table th:nth-child(2),
.quotation-table td:nth-child(2),
.quotation-table th:nth-child(3),
.quotation-table td:nth-child(3) {
  width: 25%;
}

.quotation-table th:nth-child(4),
.quotation-table td:nth-child(4) {
  width: 30%;
}

.quotation-table th, 
.quotation-table td {
  padding: 10px 5px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.quotation-table th {
  background-color: #111;
  color: #fff;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 5;
  font-size: 1.3rem;
}

.quotation-table tr:hover {
  background-color: #111;
}

.quotation-table .name {
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.3rem;
}

.quotation-table .buy,
.quotation-table .sell {
  font-weight: bold;
  font-size: 1.3rem;
  color: #ff3333;
}

.quotation-table .high {
  color: #ff3333;
}

.quotation-table .low {
  color: #33cc33;
}

.quotation-table .loading {
  text-align: center;
  color: #666;
}

/* 价格涨跌样式 */
.price-up {
  color: #ff3333 !important;
}

.price-down {
  color: #33cc33 !important;
}

/* 高低价格的样式 */
.price-range {
  display: flex;
  flex-direction: column;
}

.price-high,
.price-low {
  font-weight: bold;
}

.price-high {
  color: #ff3333 !important;
  margin-bottom: 4px;
}

.price-low {
  color: #33cc33 !important;
}

/* 页脚样式 */
footer {
  text-align: center;
  color: #888;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  gap: 10px;
  margin-top: auto;
}

/* 免责声明样式 */
.disclaimer {
  margin-bottom: 10px;
}

.disclaimer p {
  margin-bottom: 5px;
}

.disclaimer strong {
  color: #ff9900;
}

/* 社交媒体样式 */
.social-media {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 10px 0;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code {
  width: 100px;
  height: 100px;
  border: 2px solid #333;
  margin-bottom: 6px;
}

/* 版权和技术支持样式 */
.copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #333;
  width: 100%;
  margin-top: 10px;
}

.copyright p {
  margin: 10px 0;
  text-align: center;
}

.tech-support {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  text-align: center;
}

.tech-support a {
  color: #777;
  text-decoration: none;
  transition: color 0.3s;
}

.tech-support a:hover {
  color: #999;
  text-decoration: underline;
}

/* 大屏幕适配 */
@media screen and (min-width: 1200px) {
  body {
    font-size: 22px;
  }
  
  .container {
    max-width: 1600px;
  }
  
  header {
    min-height: 120px;
    padding: 15px 0;
  }
  
  .logo img {
    height: 100px;
    max-width: 450px;
    border-radius: 12px;
  }
  
  .logo img:hover {
    /* 移除所有悬停效果 */
  }
  
  .update-time {
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(255, 51, 51, 0.5);
  }
  
  .quotation-table th {
    font-size: 2.3rem;
    padding: 10px;
  }
  
  .quotation-table td {
    padding: 10px;
  }
  
  .quotation-table .name {
    font-size: 2.3rem;
  }
  
  .quotation-table .buy,
  .quotation-table .sell {
    font-size: 2.3rem;
  }
  
  .price-high,
  .price-low {
    font-size: 1.4rem;
  }
  
  /* 大屏幕时隐藏部分页脚内容 */
  .disclaimer p:not(:first-child),
  .social-media,
  .copyright,
  .tech-support {
    display: none;
  }
  
  .disclaimer {
    margin-bottom: 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #333;
  }
}

/* 超宽屏幕优化 */
@media screen and (min-width: 1800px) {
  .container {
    max-width: 1800px;
  }
  
  body {
    font-size: 26px;
  }
  
  header {
    min-height: 140px;
    padding: 20px 0;
  }
  
  .logo img {
    height: 120px;
    max-width: 550px;
    border-radius: 15px;
  }
  
  .logo img:hover {
    /* 移除所有悬停效果 */
  }
  
  .update-time {
    font-size: 1.8rem;
    text-shadow: 0 3px 6px rgba(255, 51, 51, 0.6);
  }
  
  .quotation-table .name,
  .quotation-table .buy,
  .quotation-table .sell {
    font-size: 2.8rem;
  }
  
  .price-high,
  .price-low {
    font-size: 1.6rem;
  }
  
  .quotation-table th {
    font-size: 2.8rem;
  }
}

/* 平板设备适配 */
@media screen and (max-width: 768px) {
  html, body {
    overflow: auto;
    height: auto;
  }
  
  body {
    font-size: 14px;
  }
  
  header {
    min-height: 90px;
    padding: 12px 0;
  }
  
  .logo img {
    height: 65px;
    max-width: 240px;
    border-radius: 10px;
  }
  
  .logo img:active {
    /* 移除所有激活效果 */
  }
  
  .update-time {
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(255, 51, 51, 0.4);
  }
  
  .quotation-table th, 
  .quotation-table td {
    padding: 8px 4px;
  }
  
  .quotation-table th {
    font-size: 1.2rem;
  }
  
  .quotation-table .name,
  .quotation-table .buy,
  .quotation-table .sell {
    font-size: 1.2rem;
  }
  
  footer {
    position: static;
    margin-top: 20px;
  }
}

/* 手机设备适配 */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 5px;
  }
  
  header {
    padding: 10px 0;
    min-height: 85px;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .logo {
    order: 1;
  }
  
  .logo img {
    height: 55px;
    max-width: 200px;
    border-radius: 8px;
  }
  
  .logo img:active {
    /* 移除所有激活效果 */
  }
  
  .update-time {
    font-size: 0.8rem;
    margin-left: 0;
    order: 2;
    text-shadow: 0 1px 2px rgba(255, 51, 51, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  .quotation-table th, 
  .quotation-table td {
    padding: 6px 2px;
    font-size: 0.8rem;
  }
  
  .quotation-table th {
    font-size: 1.1rem;
  }
  
  .quotation-table .name,
  .quotation-table .buy,
  .quotation-table .sell {
    font-size: 1.1rem;
  }
  
  .price-high,
  .price-low {
    font-size: 0.8rem;
  }
  
  footer {
    font-size: 0.8rem;
    padding: 10px 5px;
    margin-top: 15px;
  }
  
  .disclaimer p {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }
  
  .social-item p {
    font-size: 0.8rem;
  }
  
  .qr-code {
    width: 80px;
    height: 80px;
  }
  
  .copyright {
    padding: 10px 5px;
  }
  
  .copyright p {
    margin: 5px 0;
  }
  
  .tech-support {
    font-size: 0.7rem;
    margin-top: 5px;
  }
} 