:root {
    --primary-blue: #00a0e9;
    --bg-light-blue: #f0f7ff;
    --border-color: #e1f5fe;
    --zebra-bg: #fafafa;
    --header-gradient: linear-gradient(135deg, #ffffff 0%, #f8fcfe 100%);
    --footer-gradient: linear-gradient(135deg, #f8fcfe 0%, #e6fcff 100%);
    --shadow-sm: 0 2px 8px rgba(11, 158, 217, 0.06);
    --shadow-md: 0 4px 20px rgba(11, 158, 217, 0.12);
    --shadow-lg: 0 8px 30px rgba(11, 158, 217, 0.15);
}

.scroll-container::-webkit-scrollbar { width: 0; }
.scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.table-card {
    background: #ffffff;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.table-card.is-expanded {
    overflow: visible;
}

.table-card:hover {
    box-shadow: var(--shadow-md);
}

.scroll-container {
    width: 100%;
    height: 552px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
    flex-shrink: 0;
}

.table-card.is-expanded .scroll-container {
    height: auto;
    max-height: 2000px;
    flex-shrink: 1;
}

table {
    width: 100%;
    border-spacing: 0;
    table-layout: fixed;
    border-collapse: separate;
}

thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

tbody td {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    
    text-align: center;
    font-size: 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

tbody .group-row td {
    border-right: none;
}

tbody .group-row td:last-child {
    border-right: 1px solid var(--border-color);
}

thead tr.sticky-row th {
    height: 92px;
    top: 0;
    position: sticky;
    z-index: 10;
    padding: 4px 16px;
    color: #052633;
    font-size: 18px;
    font-weight: 600;
    background: var(--header-gradient) !important;
    border-bottom: 2px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

thead tr.sticky-row th:not(:first-child) {
    position: relative;
    overflow: hidden;
}

thead tr.sticky-row th:last-child {
    border-right: 1px solid var(--border-color);
}

thead tr.sticky-row th.col-highlight {
    background: var(--header-gradient) !important;
}

thead tr.sticky-row th .img-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.3s ease;
}

thead tr.sticky-row th .img-box img {
    width: 32px;
    height: 32px;
    margin-right: 0;
    margin-bottom: 4px;
}

thead tr.sticky-row th .img-box span {
    font-size: 16px;
    font-weight: 600;
}

thead tr.sticky-row th .buy-btn-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--header-gradient);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

thead tr.sticky-row th:not(:first-child):hover .buy-btn-box {
    opacity: 1;
    visibility: visible;
}

thead tr.sticky-row th:not(:first-child):hover .img-box {
    opacity: 0;
    visibility: hidden;
}

.row-year td {
    height: 64px;
    top: 92px;
    position: sticky;
    z-index: 7;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.row-year td.col-highlight {
    background: var(--bg-light-blue) !important;
    box-shadow: 0 4px 12px rgba(11, 158, 217, 0.15);
}


.row-buyout td {
    height: 32px;
    top: 156px;
    position: sticky;
    z-index: 7;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.row-buyout td.col-highlight {
    background: var(--bg-light-blue) !important;
    box-shadow: 0 4px 12px rgba(11, 158, 217, 0.15);
}

tbody tr { background-color: #ffffff; transition: all 0.3s ease; }

tbody tr:nth-child(even):not(.row-year):not(.row-buyout):not(.group-row) {
    background-color: var(--zebra-bg);
}

tbody tr:hover:not(.row-year):not(.row-buyout):not(.group-row) td {
    background-color: var(--bg-light-blue);
}

tbody tr:not(.row-year):not(.row-buyout) td { height: 32px; }

td {
    color: #052633;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

th:first-child, td:first-child {
    text-align: left;
    padding-left: 15px;
    width: 160px;
    background-color: inherit;
    z-index: 8;
}

.group-row td {
    background-color: #f5f5f5 !important;
    text-align: left !important;
    padding-left: 15px;
    font-weight: bold;
    color: #052633a6;
    transition: all 0.3s ease;
}

.group-row:hover td {
    background-color: #e8e8e8 !important;
}

.sticky-row th:first-child, .row-year td:first-child, .row-buyout td:first-child {
    background-color: #fafafa !important;
}

.col-highlight { 
    background-color: var(--bg-light-blue) !important;
    transition: all 0.3s ease;
}

.col-highlight:hover {
    background-color: #e0f2ff !important;
}

.group-row .col-highlight {
    background-color: var(--bg-light-blue) !important;
}

.buy-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 160, 233, 0.2);
}

.buy-btn:hover {
    background: #0088c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 160, 233, 0.4);
}

.tag {
    background: linear-gradient(93deg, #FFBB5E 7.31%, #BA6F07 92.02%);
    color: #fff;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 2px;
}

.expand-footer {
    height: 56px;
    background: var(--footer-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 8;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    color: #052633;
    font-size: 14px;
    transition: all 0.3s ease;
}

.expand-footer:hover {
    background: linear-gradient(135deg, #e6fcff 0%, #d0f4ff 100%);
    color: #00a0e9;
}

.expand-footer .iconfont {
    display: inline-block;
    transition: transform 0.3s ease;
}

.expand-btn-text {
    display: flex;
    align-items: center;
    color: #052633a6;
    font-size: 14px;
}

.expand-btn-text .icon-xiala-copy {
    margin-left: 6px;
    font-size: 16px;
    color: #052633a6;
    font-weight: 600;
}

.expand-footer:hover .expand-btn-text {
    color: var(--primary-blue);
}

.expand-footer:hover .expand-btn-text .icon-xiala-copy {
    color: var(--primary-blue);
}


.status-img {
    width: 26px;
    height: 26px;
}

thead tr.sticky-row th,
.row-year td,
.row-buyout td {
    background-color: #ffffff !important; /* 强制白色背景 */
    opacity: 1;
    visibility: visible;
}

.buy-now {
    display: flex;
    height: 48px;
    padding: 4px 16px;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid #0526330d;
    font-size: 16px;
    font-weight: 600;
    float: right;
    margin-top: 16px;
    cursor: pointer;
}

.buy-now a {
    color: #000c1fe6;
}

.buy-now .iconfont {
    color: #05263373;
    font-size: 18px;
}

.version-box {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.version-box:hover {
    box-shadow: var(--shadow-md);
}

.version-box .head-box {
    display: flex;
    align-items: center;
    color: #052633;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    height: 72px;
    background: var(--header-gradient);
    border-bottom: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.version-box .head-box .head {
    display: flex;
    justify-content: center;
    align-items: center;
}

.version-box .head-box .head:nth-child(1) {
    width: 288px;
    justify-content: flex-start;
    padding: 0 16px;
}

.version-box .head-box .head:nth-child(2) {
    width: 384px;
}

.version-box .head-box .head:nth-child(3) {
    width: 384px;
}

.version-box .head-box .head:nth-child(4) {
    width: 384px;
}

.version-box .head-box .head img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.version-box .row-box {
    display: flex;
}

.version-box .row-box {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #052633;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    height: 72px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.version-box .row-box:hover {
    background-color: var(--bg-light-blue);
}

.version-box .row-box {
    border-bottom: 1px solid #DADFE1;
}

.version-box .row-box:last-child {
    border-bottom: none;
}

.version-box .row-box i {
    color: #052633d9;
    font-size: 16px;
    font-weight: 500;
}

.version-box .row-box .col {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #DADFE1;
    height: 100%;
    padding: 16px 26px;
}

.version-box .row-box .core-col {
    color: #052633a6;
    font-size: 14px;
    line-height: 22px;
}

.version-box .row-box .col:nth-child(1) {
    justify-content: flex-start;
    padding: 0 16px;
    width: 288px;
}

.version-box .row-box .col:nth-child(2) {
    width: 384px;
}

.version-box .row-box .col:nth-child(3) {
    width: 384px;
}

.version-box .row-box .col:nth-child(4) {
    width: 384px;
    border-right: none;
}

.tag-orange {
    height: 20px;
    padding: 2px 8px;
    border-radius: 16px;
    border: 1px solid #FFECB4;
    background: linear-gradient(93deg, #FFBB5E 7.31%, #BA6F07 92.02%);
    font-size: 11px;
    color: #fff;
}

.group-row .expand-icon {
    font-size: 10px;
    color: #05263373;
    transition: transform 0.3s ease;
    display: inline-block;
}
