/*
 * 顶牛网通用栏目详情页样式
 * 适用：gudong、gd、gaoguan、jj、gsjj、caiwu、yeji、superview 等页面
 * 建议加载顺序：基础CSS -> column-page.css -> 页面专用CSS
 */

:root {
    --column-page-width: 1000px;
    --column-bg: #f4f7fa;
    --column-card-bg: #fff;
    --column-text: #333;
    --column-muted: #7a8793;
    --column-blue: #0874c9;
    --column-blue-dark: #075f9f;
    --column-blue-light: #edf7ff;
    --column-red: #d60000;
    --column-green: #159447;
    --column-border: #e1e8ee;
    --column-border-blue: #cfe2f1;
    --column-radius: 7px;
    --column-shadow: 0 2px 10px rgba(25, 63, 91, .06);
}

html {
    -webkit-text-size-adjust: 100%;
}

/* --------------------------------------------------------------------------
   页面总容器
   -------------------------------------------------------------------------- */

.column-page,
.sv-page {
    width: 100%;
    max-width: var(--column-page-width);
    margin: 0 auto;
    padding: 0 12px 24px;
    color: var(--column-text);
    box-sizing: border-box;
}

.column-page *,
.column-page *::before,
.column-page *::after,
.sv-page *,
.sv-page *::before,
.sv-page *::after {
    box-sizing: border-box;
}

.column-page a,
.sv-page a {
    color: var(--column-blue);
    text-decoration: none;
}

.column-page a:hover,
.sv-page a:hover {
    color: var(--column-blue-dark);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   面包屑
   -------------------------------------------------------------------------- */

.column-breadcrumb,
.sv-breadcrumb,
.ndwz {
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--column-border);
    border-radius: 0 0 6px 6px;
    background: #fff;
    color: var(--column-muted);
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
}

.column-breadcrumb span,
.sv-breadcrumb span {
    display: inline-block;
    margin: 0 6px;
    color: #a3adb6;
}

.column-breadcrumb strong,
.sv-breadcrumb strong {
    color: #4c5862;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   页面主标题区
   -------------------------------------------------------------------------- */

.column-header,
.sv-header {
    width: 100%;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--column-border);
    border-radius: var(--column-radius);
    background: var(--column-card-bg);
    box-shadow: var(--column-shadow);
    box-sizing: border-box;
}

.column-title-row,
.sv-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.column-title-row > div:first-child,
.sv-title-row > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.column-title-row h1,
.sv-title-row h1 {
    margin: 0;
    color: #176fae;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.column-date,
.sv-date {
    margin: 6px 0 0;
    color: var(--column-muted);
    font-size: 13px;
    line-height: 1.6;
}

.column-market-links,
.sv-market-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.column-market-links a,
.sv-market-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid var(--column-border-blue);
    border-radius: 5px;
    background: #f7fbff;
    color: var(--column-blue);
    font-size: 13px;
    white-space: nowrap;
}

.column-market-links a:hover,
.sv-market-links a:hover,
.column-market-links a.active,
.sv-market-links a.active {
    border-color: #77b9e6;
    background: var(--column-blue-light);
    color: var(--column-blue-dark);
}

/* --------------------------------------------------------------------------
   栏目小标题：兼容旧页面 titlebox
   -------------------------------------------------------------------------- */

.column-section-title,
.titlebox {
    width: 100%;
    margin: 16px 0 10px;
    border: 1px solid var(--column-border);
    border-left: 4px solid var(--column-blue);
    border-radius: 5px;
    background: linear-gradient(90deg, #f2f9ff 0%, #fff 72%);
    box-sizing: border-box;
}

.column-section-title h2,
.column-section-title h3,
.titlebox h2,
.titlebox h3 {
    margin: 0;
    padding: 10px 13px;
    color: #176fae;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    text-align: left;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   顶部标签表格：兼容旧页面 Mtable2
   -------------------------------------------------------------------------- */

.Mtable2 {
    width: 100%;
    max-width: var(--column-page-width);
    margin: 0 auto 12px;
    overflow-x: auto;
    border: 1px solid var(--column-border);
    border-radius: 6px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.Mtable2 table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
}

.Mtable2 td {
    padding: 9px 8px;
    border-right: 1px solid #edf1f4;
    border-bottom: 1px solid #edf1f4;
    color: #555;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.Mtable2 td:last-child {
    border-right: 0;
}

.Mtable2 td.on {
    background: var(--column-blue-light);
    color: var(--column-blue-dark);
    font-weight: 700;
}

.Mtable2 a {
    display: block;
    color: var(--column-blue);
}

/* --------------------------------------------------------------------------
   内容区与卡片
   -------------------------------------------------------------------------- */

.column-content,
.shareholder-page {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--column-text);
    box-sizing: border-box;
}

.column-card,
.section-card,
.shareholder-card,
.contentbox {
    width: 100%;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--column-border);
    border-radius: var(--column-radius);
    background: var(--column-card-bg);
    box-shadow: var(--column-shadow);
    box-sizing: border-box;
}

.column-card p,
.section-card p,
.shareholder-card p,
.contentbox p {
    margin: 0 0 10px;
    color: #3f4a53;
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
}

.column-card p:last-child,
.section-card p:last-child,
.shareholder-card p:last-child,
.contentbox p:last-child {
    margin-bottom: 0;
}

.column-label,
.section-label,
.shareholder-label,
.B {
    color: var(--column-red);
    font-weight: 700;
}

.column-muted {
    color: var(--column-muted);
}

.column-red,
.colorRED {
    color: var(--column-red);
}

.column-green,
.colorGreen {
    color: var(--column-green);
}

.column-gray,
.colorGray {
    color: #777;
}

/* --------------------------------------------------------------------------
   可复用网格
   -------------------------------------------------------------------------- */

.column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.column-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.column-grid > * {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   图片、iframe、表格横向滑动
   -------------------------------------------------------------------------- */

.column-scroll,
.column-table-scroll,
.column-image-scroll,
.column-frame-scroll,
.table-scroll,
.image-scroll,
.iframe-scroll,
.shareholder-image-scroll,
.shareholder-chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.column-image-scroll,
.image-scroll,
.shareholder-image-scroll {
    text-align: center;
}

.column-image-scroll img,
.image-scroll img,
.shareholder-image-scroll img {
    display: inline-block;
    max-width: none;
    height: auto;
    vertical-align: top;
}

.column-image-scroll img + img,
.image-scroll img + img,
.shareholder-image-scroll img + img {
    margin-top: 10px;
}

.column-wide-frame,
.responsive-wide-frame,
.shareholder-chart-frame {
    display: block;
    width: 800px;
    height: 600px;
    margin: 0 auto;
    border: 0;
    background: #fff;
}

.column-data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
}

.column-data-table th,
.column-data-table td {
    padding: 9px 8px;
    border: 1px solid var(--column-border);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.column-data-table th {
    background: #f2f8fd;
    color: #35566e;
    font-weight: 700;
}

.column-data-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.column-data-table tbody tr:hover {
    background: #f0f8ff;
}

/* --------------------------------------------------------------------------
   上一支、下一支股票
   -------------------------------------------------------------------------- */

.stock-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 15px 0;
    box-sizing: border-box;
}

.stock-nav > div {
    min-width: 0;
    flex: 0 1 auto;
}

.stock-nav a {
    display: block;
    overflow: hidden;
    max-width: 460px;
    padding: 8px 12px;
    border: 1px solid #d8e5f0;
    border-radius: 5px;
    background: #f7fbff;
    color: var(--column-blue);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
}

.stock-nav a:hover {
    border-color: #8fc4ea;
    background: var(--column-blue-light);
}

/* --------------------------------------------------------------------------
   更新时间、操作提示、状态提示
   -------------------------------------------------------------------------- */

.updatetime,
.column-notice {
    width: 100%;
    max-width: none;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #f0d8a4;
    border-radius: 5px;
    background: #fff9e9;
    color: #77602e;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    box-sizing: border-box;
}

.column-update-time {
    color: var(--column-red);
    font-weight: 600;
}

.column-empty,
.column-error,
.column-loading {
    width: 100%;
    margin: 12px 0;
    padding: 24px 12px;
    border: 1px dashed var(--column-border);
    border-radius: 6px;
    background: #fff;
    color: var(--column-muted);
    text-align: center;
    box-sizing: border-box;
}

.column-error {
    border-color: #efcaca;
    color: #c43a3a;
}

/* --------------------------------------------------------------------------
   通用页脚
   -------------------------------------------------------------------------- */

.guide-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
    max-width: var(--column-page-width);
    margin: 18px auto 0;
    padding: 16px 12px;
    border-top: 1px solid var(--column-border);
    color: var(--column-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    box-sizing: border-box;
}

.guide-footer a {
    color: var(--column-blue);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   辅助类
   -------------------------------------------------------------------------- */

.column-center {
    text-align: center !important;
}

.column-left {
    text-align: left !important;
}

.column-right {
    text-align: right !important;
}

.column-clear::after {
    display: table;
    clear: both;
    content: "";
}

.column-hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   手机和平板
   -------------------------------------------------------------------------- */

@media (max-width: 800px) {
    .column-page,
    .sv-page {
        max-width: 100%;
        padding: 0 8px 18px;
    }

    .column-breadcrumb,
    .sv-breadcrumb,
    .ndwz {
        margin-bottom: 8px;
        padding: 8px 9px;
        font-size: 12px;
    }

    .column-header,
    .sv-header {
        margin-bottom: 10px;
        padding: 12px;
    }

    .column-title-row,
    .sv-title-row {
        display: block;
    }

    .column-title-row h1,
    .sv-title-row h1 {
        font-size: 18px;
        line-height: 1.5;
    }

    .column-date,
    .sv-date {
        margin-top: 4px;
        font-size: 12px;
    }

    .column-market-links,
    .sv-market-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .column-market-links a,
    .sv-market-links a {
        width: 100%;
        min-height: 32px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .column-section-title,
    .titlebox {
        margin: 12px 0 8px;
    }

    .column-section-title h2,
    .column-section-title h3,
    .titlebox h2,
    .titlebox h3 {
        padding: 8px 10px;
        font-size: 15px;
        line-height: 1.55;
    }

    .column-card,
    .section-card,
    .shareholder-card,
    .contentbox {
        margin: 9px 0;
        padding: 11px;
        border-radius: 5px;
    }

    .column-card p,
    .section-card p,
    .shareholder-card p,
    .contentbox p {
        font-size: 13px;
        line-height: 1.8;
    }

    .column-grid,
    .column-grid-3 {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .column-frame-scroll,
    .iframe-scroll,
    .shareholder-chart-scroll {
        text-align: left;
    }

    .column-wide-frame,
    .responsive-wide-frame,
    .shareholder-chart-frame {
        margin-left: 0;
        margin-right: 0;
    }

    .Mtable2 {
        margin-bottom: 9px;
        border-radius: 4px;
    }

    .Mtable2 td {
        padding: 8px 7px;
        font-size: 12px;
    }

    .stock-nav {
        gap: 7px;
        margin: 12px 0;
    }

    .stock-nav > div {
        max-width: calc(50% - 4px);
    }

    .stock-nav a {
        max-width: 47vw;
        padding: 7px 9px;
        font-size: 12px;
    }

    .updatetime,
    .column-notice {
        margin: 9px 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    .guide-footer {
        width: calc(100% - 16px);
        margin-top: 14px;
        padding: 13px 8px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .column-market-links,
    .sv-market-links {
        grid-template-columns: 1fr;
    }

    .stock-nav a {
        max-width: 46vw;
    }
}

