total 20
drwxr-xr-x 2 www www  4096 Aug 12 10:02 .
drwxr-xr-x 4 www www  4096 Aug 12 10:02 ..
-rwxr-xr-x 1 www www 10254 Aug 12 16:40 style.css
/* ===== 基础 ===== */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    background: #f4f5f7;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 10px; }

/* ===== 顶部导航 ===== */
.topbar {
    background: #1f2937;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
}
.logo {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-right: 16px;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
    color: #d1d5db;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
}
.nav a:hover, .nav a.active { color: #fff; background: #374151; text-decoration: none; }
/* 导航下拉菜单 */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dd-toggle {
    display: flex; align-items: center; gap: 3px;
    color: #d1d5db; padding: 5px 10px; border-radius: 4px;
    font-size: 13px; white-space: nowrap; cursor: pointer; outline: none;
}
.nav-dd-toggle .caret { font-size: 10px; font-style: normal; transition: transform .15s; }
.nav-item:hover .nav-dd-toggle, .nav-dd-toggle:focus,
.nav-item.active > .nav-dd-toggle { color: #fff; background: #374151; }
.nav-item.open .caret { transform: rotate(180deg); }
.nav-dd {
    display: none; position: absolute; top: 100%; left: 0; z-index: 1200;
    background: #1f2937; border: 1px solid #374151; border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.4); padding: 6px 0; min-width: 110px;
}
.nav-item:hover .nav-dd, .nav-item:focus-within .nav-dd, .nav-item.open .nav-dd { display: block; }
.nav-dd a { display: block; padding: 6px 14px; border-radius: 0; }
.nav-dd a:hover, .nav-dd a.active { color: #fff; background: #374151; text-decoration: none; }
.user { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.user a { color: #d1d5db; }
.user span { color: #9ca3af; }

/* ===== 主体 ===== */
.main { padding-top: 12px; padding-bottom: 20px; }
.footer {
    background: #e5e7eb;
    padding: 10px 0;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    margin-bottom: 10px;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.card-sub { font-size: 12px; color: #6b7280; }
.chart-switch { display: inline-flex; gap: 2px; margin-left: 8px; }
.chart-switch a {
    padding: 2px 9px; font-size: 12px; line-height: 18px; color: #6b7280;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; text-decoration: none;
}
.chart-switch a:hover { color: #2563eb; border-color: #bfdbfe; }
.chart-switch a.active { color: #fff; background: #2563eb; border-color: #2563eb; font-weight: 600; }

/* 管理操作：低调小字链接，避免喧宾夺主 */
.admin-link {
    display: inline-block; margin-left: 8px;
    font-size: 11px; line-height: 1; padding: 2px 4px;
    color: #b0b7c3; background: none; border: none; border-radius: 3px;
    text-decoration: none; cursor: pointer; vertical-align: middle;
    transition: color .15s, background .15s;
}
.admin-link:hover { color: #4b5563; background: #f3f4f6; }
.admin-link.danger { color: #d6a3a3; }
.admin-link.danger:hover { color: #dc2626; background: #fef2f2; }
.card-body { padding: 10px 12px; }

/* ===== 网格 ===== */
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.col { flex: 1; min-width: 0; }
.col-2 { flex: 0 0 calc(50% - 5px); }
.col-3 { flex: 0 0 calc(33.333% - 6.666px); }
.col-4 { flex: 0 0 calc(25% - 7.5px); }
@media (max-width: 1024px) {
    .col-4 { flex: 0 0 calc(50% - 5px); }
}
@media (max-width: 768px) {
    .col-2, .col-3, .col-4 { flex: 0 0 100%; }
    .nav { overflow-x: auto; }
    /* 手机端：下拉用 fixed 定位，避免被横向滚动容器裁剪 */
    .nav-item.open .nav-dd { position: fixed; left: 10px; right: 10px; top: 42px; min-width: 0; }
}

/* ===== 统计 ===== */
.statbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.statbox {
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    min-width: 110px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    text-align: center;
}
.statbox .label { font-size: 12px; color: #6b7280; margin-bottom: 2px; }
.statbox .value { font-size: 18px; font-weight: 700; }
.statbox small { font-size: 11px; color: #9ca3af; }

.indexbox {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.indexitem {
    background: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    min-width: 130px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.indexitem .name { font-size: 12px; color: #6b7280; }
.indexitem .price { font-size: 17px; font-weight: 700; }
.indexitem .pct { font-size: 12px; }
.indexitem.median-item { background: #fffbeb; border: 1px solid #fde68a; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
th, td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
}
tr:hover td { background: #f9fafb; }
td:first-child, th:first-child { padding-left: 10px; }
td:last-child, th:last-child { padding-right: 10px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: #6b7280; }
.text-xs { font-size: 11px; }

/* ===== 涨跌幅颜色 ===== */
.up { color: #dc2626; }
.down { color: #16a34a; }
.flat { color: #6b7280; }
.bg-up { background: #fef2f2; }
.bg-down { background: #f0fdf4; }
.badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-gold { background: #fef3c7; color: #92400e; }

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 3px;
    margin-bottom: 2px;
}
.tag-reason {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* ===== 连板天梯 ===== */
.tier-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tier-col {
    flex: 1;
    min-width: 130px;
    max-width: 200px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.tier-head {
    background: #f3f4f6;
    padding: 5px 8px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.tier-item {
    padding: 5px 8px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tier-item:last-child { border-bottom: none; }
.tier-name { font-weight: 600; }
.tier-pct { font-size: 12px; }
.tier-code { font-size: 11px; color: #888; }

/* ===== 空状态 ===== */
.empty-state { padding: 30px; text-align: center; color: #999; font-size: 13px; }

/* ===== 板块热力 ===== */
.heat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.heat-item {
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.heat-item:hover { opacity: 0.9; }

/* ===== 表单 ===== */
.form-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
input, select, textarea, button {
    font-family: inherit;
    font-size: 13px;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #2563eb; }
button, .btn {
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
}
button:hover, .btn:hover { background: #1d4ed8; text-decoration: none; }
.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-xs { padding: 1px 6px; font-size: 11px; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #16a34a; }
.btn-success:hover { background: #15803d; }
.btn-gray { background: #6b7280; }

/* ===== 分页/TAB ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 10px; }
.tabs a {
    padding: 6px 12px;
    font-size: 13px;
    color: #4b5563;
    border-bottom: 2px solid transparent;
}
.tabs a:hover, .tabs a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    text-decoration: none;
}

/* ===== 提示 ===== */
.alert {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ===== 帖子列表 ===== */
.post-item {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}
.post-item:last-child { border-bottom: none; }
.post-title { font-size: 14px; font-weight: 600; }
.post-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ===== 资讯列表 ===== */
.news-item {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}
.news-item:hover { background: #f9fafb; }
.news-item:last-child { border-bottom: none; }
.news-line { display: flex; align-items: baseline; gap: 6px; }
.news-title { font-size: 14px; font-weight: 600; color: #111827; flex: 1; }
.news-meta { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.news-content {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin-top: 6px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.tag-active { background: #1e40af; color: #fff; }

/* ===== 分页 ===== */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px;
    font-size: 13px;
}
.page-btn {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 13px;
}
.page-btn:hover { background: #dbeafe; }
.page-info { color: #6b7280; }

/* ===== 搜索下拉 ===== */
.search-box { position: relative; display: inline-block; }
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
}
.sr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.sr-row:last-child { border-bottom: none; }
.sr-row:hover { background: #eff6ff; }
.sr-row.active { background: #dbeafe; }
.sr-code { font-family: Consolas, Menlo, monospace; font-weight: 600; color: #374151; min-width: 52px; }
.sr-name { color: #111827; }
.sr-py { color: #9ca3af; font-size: 11px; }
.sr-view {
    margin-left: auto;
    color: #2563eb;
    text-decoration: none;
    font-size: 11px;
    padding: 1px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 3px;
    white-space: nowrap;
}
.sr-view:hover { background: #2563eb; color: #fff; }
.sr-empty { padding: 8px 10px; color: #9ca3af; font-size: 12px; }

/* ===== 布局辅助 ===== */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-right { text-align: right; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 10px; }
.mt-1 { margin-top: 6px; }
.mr-1 { margin-right: 6px; }
.hidden { display: none; }

/* ===== 板块排行榜 ===== */
.rank-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 768px) { .rank-cols { grid-template-columns: 1fr; } }
.rank-panel { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.rank-panel-title { padding: 8px 12px; font-size: 13px; font-weight: 600; }
.rank-panel-title.up { background: #fef2f2; color: #b91c1c; border-bottom: 1px solid #fecaca; }
.rank-panel-title.down { background: #f0fdf4; color: #166534; border-bottom: 1px solid #bbf7d0; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rank-table th {
    padding: 6px 8px; text-align: left; color: #6b7280; font-weight: 500;
    border-bottom: 1px solid #e5e7eb; background: #fafafa; font-size: 11px; white-space: nowrap;
}
.rank-table td { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; white-space: nowrap; }
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table tbody tr { cursor: pointer; }
.rank-table tbody tr:hover { background: #f9fafb; }
.rank-num {
    display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; border-radius: 4px; font-size: 11px; font-weight: 700;
    color: #fff; background: #9ca3af; padding: 0 2px;
}
.rank-num.r1 { background: #f59e0b; }
.rank-num.r2 { background: #94a3b8; }
.rank-num.r3 { background: #d97706; }
.rank-name { font-weight: 600; color: #111827; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.rank-leader { color: #6b7280; font-size: 11px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

/* ===== 个股详情页 ===== */
.stock-head { padding: 10px 12px; }
.stock-name { font-size: 20px; font-weight: 700; margin: 0; color: #111827; }
.stock-code { font-size: 13px; color: #6b7280; }
.stock-price { font-size: 26px; font-weight: 700; }
.stock-pct { font-size: 15px; font-weight: 600; }
.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quote-item {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
}
.quote-item:nth-child(4n) { border-right: none; }
.q-label { color: #6b7280; font-size: 11px; }
.q-val { font-weight: 600; font-size: 13px; }
.stock-basic { padding: 8px 10px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; border-top: 1px solid #f3f4f6; }
@media (max-width: 768px) {
    .quote-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-item:nth-child(4n) { border-right: 1px solid #f3f4f6; }
    .quote-item:nth-child(2n) { border-right: none; }
}

/* ===== 表格内股票链接 ===== */
a.stock-name-link { color: #2563eb; font-weight: 600; }
a.stock-name-link:hover { text-decoration: underline; }
a.stock-code-link { color: #6b7280; }
a.stock-code-link:hover { color: #2563eb; text-decoration: underline; }
a.tier-name, a.tier-code { text-decoration: none; }
a.tier-name:hover, a.tier-code:hover { color: #2563eb; text-decoration: underline; }
.tag-up { background: #fee2e2; color: #991b1b; }
.tag-down { background: #dcfce7; color: #166534; }
.tag-gold { background: #fef3c7; color: #92400e; }
