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

:root {
    --green: #08752f;
    --green-dark: #055c24;
    --green-light: #12a557;
    --text: #151515;
    --gray: #777;
    --border: #d8d8d8;
    --light-bg: #f7f8f7;
}

body {
    min-width: 320px;
    background: #fff;
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* HEADER */

.site-header {
    width: 100%;
    background: var(--green);
    color: #fff;
}

.header-inner {
    width: min(1160px, calc(100% - 40px));
    min-height: 92px;
    margin: auto;
    display: flex;
    align-items: center;
}

.logo {
    width: 175px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.logo strong {
    margin-top: 4px;
    font-size: 23px;
}

.main-nav {
    height: 92px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    height: 92px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    position: relative;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.main-nav a.active::after {
    content: "";
    height: 3px;
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    background: #fff;
}

.member-btn {
    margin-left: auto;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.member-btn:hover {
    background: #fff;
    color: var(--green);
}


/* MAIN */

.main-content {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 65px;
}


/* STOCK */

.stock-section {
    width: 100%;
}

.vvip-stock-box h2 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.vvip-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

#last-price {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.5px;
}

.vvip-change-box {
    color: #0eaa5a;
    font-size: 19px;
    font-weight: 700;
}

.vvip-subtext {
    margin-top: 7px;
    color: #777;
    font-size: 11px;
}

.vvip-subtext a {
    color: #666;
    text-decoration: underline;
}


/* TABS */

.vvip-time-tabs {
    margin-top: 20px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.tab-btn {
    min-width: 60px;
    height: 31px;
    padding: 0 14px;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-size: 12px;
}

.tab-btn:hover {
    background: #f5f5f5;
}

.tab-btn.active {
    border-color: #08752f;
    background: #08752f;
    color: #fff;
}


/* CHART */

.vvip-chart-container {
    width: 100%;
    height: 380px;
    margin-top: 22px;
    position: relative;
}

#myChart {
    width: 100% !important;
    height: 380px !important;
}


/* STOCK DATA */

.vvip-data-table {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
    table-layout: fixed;
}

.vvip-data-table td {
    height: 50px;
    padding: 0 12px;
    border: 1px solid var(--border);
    font-size: 13px;
}

.vvip-data-table .lbl {
    width: 15%;
    background: #fafafa;
    color: #777;
}

.vvip-data-table .val {
    width: 35%;
    color: #111;
    text-align: right;
    font-weight: 700;
}


/* SECTION */

.result-section {
    margin-top: 70px;
}

.history-section {
    margin-top: 55px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 22px;
    font-weight: 700;
}

.heading-line {
    width: 42px;
    height: 3px;
    margin-top: 9px;
    background: var(--green);
}


/* SUMMARY */

.vvip-summary-table-box {
    width: 92%;
    margin: auto;
    overflow-x: auto;
}

.vvip-summary-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    table-layout: fixed;
}

.vvip-summary-table th,
.vvip-summary-table td {
    border: 1px solid #444;
    text-align: center;
}

.vvip-summary-table th {
    height: 45px;
    background: #f5f5f5;
    font-size: 14px;
    font-weight: 700;
}

.vvip-summary-table td {
    height: 48px;
    background: #fff;
    font-size: 14px;
}

.vvip-summary-table th:first-child {
    width: 28%;
}

.vvip-summary-number {
    font-size: 18px !important;
    font-weight: 800;
}


/* HISTORY */

.history-table-wrapper {
    width: 92%;
    margin: auto;
    overflow-x: auto;
}

.vvip-history-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
}

.vvip-history-table th,
.vvip-history-table td {
    height: 39px;
    padding: 5px 8px;
    border: 1px solid #555;
    text-align: center;
}

.vvip-history-table th {
    background: #f3f3f3;
    font-size: 13px;
    font-weight: 700;
}

.vvip-history-table td {
    background: #fff;
    color: #222;
    font-size: 13px;
}

.vvip-history-table tbody tr:hover td {
    background: #f4faf6;
}


/* FOOTER */

.site-footer {
    margin-top: 0;
    background: var(--green);
    color: #fff;
}

.footer-inner {
    width: min(1160px, calc(100% - 40px));
    min-height: 250px;
    margin: auto;
    padding: 55px 0 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 55px;
}

.footer-column h2 {
    margin-bottom: 20px;
    font-size: 25px;
}

.footer-column h3 {
    margin-bottom: 18px;
    font-size: 17px;
}

.footer-column p,
.footer-column a {
    margin-bottom: 9px;
    display: block;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #fff;
}

.footer-button {
    width: fit-content;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 3px;
}

.footer-button:hover {
    background: #fff;
    color: var(--green) !important;
}

.copyright {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .65);
    text-align: center;
    font-size: 11px;
}


/* TABLET */

@media (max-width: 1000px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .logo {
        width: auto;
        margin-right: auto;
    }

    .member-btn {
        margin-left: 15px;
    }

    .main-nav {
        width: 100%;
        height: auto;
        margin-top: 15px;
        order: 3;
        overflow-x: auto;
    }

    .main-nav a {
        height: 42px;
        padding: 0 15px;
    }

    .main-nav a.active::after {
        left: 15px;
        right: 15px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}


/* MOBILE */

@media (max-width: 700px) {
    .header-inner,
    .main-content,
    .footer-inner {
        width: calc(100% - 24px);
    }

    .site-header {
        position: relative;
    }

    .logo {
        font-size: 20px;
    }

    .logo strong {
        font-size: 19px;
    }

    .member-btn {
        padding: 8px 12px;
    }

    .main-content {
        padding-top: 25px;
    }

    .vvip-stock-box h2 {
        font-size: 20px;
    }

    #last-price {
        font-size: 36px;
    }

    .vvip-change-box {
        font-size: 15px;
    }

    .vvip-price-row {
        gap: 8px;
        flex-wrap: wrap;
    }

    .vvip-chart-container,
    #myChart {
        height: 270px !important;
    }

    .vvip-data-table {
        min-width: 620px;
    }

    .stock-section {
        overflow-x: auto;
    }

    .result-section {
        margin-top: 45px;
    }

    .history-section {
        margin-top: 40px;
    }

    .vvip-summary-table-box,
    .history-table-wrapper {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}