/* 爱六π · ai6p.com
   配色：奶油米 #FAF6EF / 暖蛋黄 #F2B84B / 雾灰蓝 #6B7C93 / 深炭 #2B2B2B */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: #FAF6EF;
  color: #2B2B2B;
  line-height: 1.7;
  min-height: 100vh;
}

/* Header */
.site-header {
  padding: 20px 32px;
  display: flex;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #F2B84B, #E8A32E);
  color: #fff;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  box-shadow: 0 2px 8px rgba(242, 184, 75, 0.3);
}
.brand-name { font-size: 18px; font-weight: 600; }
.brand-sub { font-size: 12px; color: #6B7C93; letter-spacing: 1px; }

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.hero-sub {
  color: #6B7C93;
  font-size: 15px;
  margin-bottom: 36px;
}

.search-box {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
}
.search-input-wrap { position: relative; }
.search-box input {
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 15px;
  width: 260px;
  background: transparent;
}
.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 10;
  text-align: left;
}
.suggest-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}
.suggest-item:hover { background: #fdf9f0; }
.s-code { color: #6B7C93; margin-right: 8px; font-family: monospace; }

/* Stock title */
.stock-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #2B2B2B;
}
td.neg { color: #c0392b; }
.search-box button {
  border: none;
  background: #F2B84B;
  color: #fff;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-box button:hover { background: #E8A32E; }

/* Result */
.result {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab {
  border: none;
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: #6B7C93;
  transition: all 0.2s;
}
.tab.active {
  background: #2B2B2B;
  color: #fff;
}
.table-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
th, td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid #f0ece3;
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
th { color: #6B7C93; font-weight: 500; }
tr:hover td { background: #fdf9f0; }

.hidden { display: none; }
.loading { text-align: center; color: #6B7C93; padding: 40px; }
.error { color: #c0392b; text-align: center; padding: 20px; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 12px;
  margin-top: 60px;
}
.site-footer strong { color: #6B7C93; }
.footer-links { margin: 8px 0; }
.footer-links a { color: #6B7C93; text-decoration: none; margin: 0 6px; }
.icp { margin-top: 8px; }

/* ===== 手机端适配 ===== */
@media (max-width: 600px) {
  .site-header { padding: 16px; }
  .logo { width: 38px; height: 38px; font-size: 22px; }
  .brand-name { font-size: 16px; }

  .hero { padding: 32px 16px 24px; }
  .hero h1 { font-size: 22px; letter-spacing: 1px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }

  /* 搜索框改成上下排列 */
  .search-box {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 8px;
    width: 100%;
    max-width: 340px;
  }
  .search-box input { width: 100%; text-align: center; padding: 12px; font-size: 16px; }
  .search-box button { width: 100%; padding: 12px; font-size: 16px; }

  .result { padding: 12px; }
  .stock-title { font-size: 18px; }
  .tab { padding: 8px 14px; font-size: 13px; }
  .table-wrap { padding: 12px; border-radius: 12px; }
  table { font-size: 12px; min-width: 400px; }
  th, td { padding: 8px 10px; }

  .site-footer { padding: 24px 16px; font-size: 11px; margin-top: 40px; }
}
html { overflow-y: scroll; }
# 手机端表格横向滚动
@media (max-width: 600px) {
  #tableWrap { overflow-x: auto; }
  table { min-width: 600px; }
}

/* 禁止复制 */
body { user-select: none; -webkit-user-select: none; }

/* 表格右边滚动条 */
#tableWrap { max-height: 600px; overflow-y: auto; overflow-x: auto; }
