body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #1C2526;
    color: #F5F6F5;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #252627;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.navbar .logo .domain {
    display: inline-flex;
    align-items: baseline;
    transition: transform 0.3s ease;
}

.navbar .logo .domain:hover {
    transform: scale(1.05);
}

.navbar .logo .asicb {
    color: #F7931A;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar .logo .bitcoin-symbol {
    font-size: 36px;
    margin-left: 2px;
}

.navbar .logo .com {
    color: #E0E7F0;
    font-size: 20px;
    margin-left: 4px;
    font-weight: 500;
}

.navbar .nav-link {
    color: #F5F6F5;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .nav-link:hover {
    color: #F7931A;
    transform: scale(1.05);
}

.section {
    padding: 80px 0 40px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.miner-table {
    padding: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

.miner-table h1 {
    color: #F5F6F5;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.miner-table h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #F7931A;
    border-radius: 2px;
}

.miner-table .intro-text {
    font-size: 14px;
    color: #90B0D0;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.miner-table .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 0 5px 0;
    padding: 5px 0;
    font-size: 13px;
    color: #90B0D0;
    line-height: 1.2;
}

.miner-table .electricity-cost {
    text-align: left;
    white-space: nowrap;
}

.miner-table .update-date {
    text-align: right;
    white-space: nowrap;
}

.miner-table .search-box {
    margin: 20px auto;
    max-width: 600px;
    padding: 10px;
    background: rgba(60, 145, 230, 0.1);
    border: 1px solid #3C91E6;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.miner-table .search-box:hover {
    transform: scale(1.02);
}

.miner-table .search-box input {
    width: 70%;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    background: #F5F6F5;
    color: #1C2526;
    font-size: 16px;
    outline: none;
}

.miner-table .search-box button {
    padding: 12px 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    background: #F7931A;
    color: #F5F6F5;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.miner-table .search-box button:hover {
    background: #E07B00;
}

.miner-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 16px;
    position: relative;
    table-layout: fixed;
    min-width: 320px;
}

.miner-table th {
    background: #252627;
    color: #F5F6F5;
    font-weight: 700;
    cursor: pointer;
    padding: 12px;
    text-align: center;
    border: 1px solid #4A5A6A;
    position: relative;
    padding-right: 24px;
}

.miner-table th:hover {
    background: #3A3A3A;
}

/* Show triangles for all sortable columns on desktop */
.miner-table th[data-sort] {
    position: relative;
}

.miner-table th[data-sort]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #F5F6F5;
    transition: border-color 0.3s ease;
}

.miner-table th[data-sort].asc::after {
    border-top-color: transparent;
    border-bottom-color: #F7931A;
}

.miner-table th[data-sort].desc::after {
    border-top-color: #F7931A;
    border-bottom-color: transparent;
}

.miner-table td {
    padding: 12px;
    text-align: center;
    color: #F5F6F5;
    border: 1px solid #4A5A6A;
    background: #2A4058;
}

.miner-table td:nth-child(7) {
    background: #00A1D6;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 3px;
    white-space: nowrap;
}

.miner-table td:nth-child(1) {
    text-align: left;
    font-weight: 600;
}

.miner-table th:nth-child(1),
.miner-table td:nth-child(1) {
    width: 30%;
}

.miner-table tr:hover td {
    background: rgba(247, 147, 26, 0.2);
}

.miner-table tr:hover td:nth-child(7) {
    background: #00A1D6;
}

.miner-table tr.search-match td {
    background: rgba(247, 147, 26, 0.3);
}

.miner-table tr.search-match td:nth-child(7) {
    background: #00A1D6;
}

.miner-table a {
    color: #F5F6F5;
    text-decoration: none;
}

.miner-table a:hover {
    color: #F7931A;
}

.miner-table .model-name {
    white-space: nowrap;
}

.miner-table .th-value {
    white-space: nowrap;
    margin-left: 4px;
}

.footer {
    background: #252627;
    padding: 10px 30px 30px 30px;
    text-align: center;
    font-size: 14px;
    border-top: 2px solid #F7931A;
    color: #F5F6F5;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #F5F6F5;
    text-decoration: none;
}

.footer a:hover {
    color: #F7931A;
}

.footer .email-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#searchFeedback {
    font-size: 14px;
    color: #F7931A;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar .logo .asicb {
        font-size: 32px;
    }

    .navbar .logo .bitcoin-symbol {
        font-size: 32px;
    }

    .navbar .logo .com {
        font-size: 16px;
    }

    .navbar .nav-link {
        font-size: 14px;
    }

    .section {
        padding: 60px 0 20px;
    }

    .miner-table {
        padding: 15px;
    }

    .miner-table h1 {
        font-size: 20px;
        margin-bottom: 12px;
        white-space: nowrap;
    }

    .miner-table .intro-text {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .miner-table .table-header {
        font-size: 12px;
        margin: 0 0 3px 0;
        padding: 3px 0;
        line-height: 1.2;
    }

    .miner-table .electricity-cost {
        text-align: left;
    }

    .miner-table .update-date {
        text-align: right;
    }

    .miner-table .search-box {
        max-width: 80%;
        padding: 6px;
    }

    .miner-table .search-box input {
        width: 60%;
        font-size: 14px;
        padding: 8px;
    }

    .miner-table .search-box button {
        width: 40%;
        font-size: 14px;
        padding: 8px;
    }

    .miner-table table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 12px;
        box-shadow: 15px 0 25px -5px rgba(0, 0, 0, 0.5);
        min-width: 320px;
        width: 100%;
    }

    .miner-table th,
    .miner-table td {
        padding: 4px;
        box-sizing: border-box;
    }

    .miner-table th:nth-child(2),
    .miner-table td:nth-child(2),
    .miner-table th:nth-child(3),
    .miner-table td:nth-child(3),
    .miner-table th:nth-child(4),
    .miner-table td:nth-child(4),
    .miner-table th:nth-child(6),
    .miner-table td:nth-child(6) {
        display: none;
    }

    .miner-table th:nth-child(1),
    .miner-table td:nth-child(1) {
        width: 40%;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .miner-table th:nth-child(5),
    .miner-table td:nth-child(5) {
        display: table-cell;
        width: 30%;
        font-size: 12px;
        text-align: center;
    }

    .miner-table th:nth-child(5) {
        white-space: nowrap;
        padding: 4px 2px;
    }

    .miner-table th:nth-child(7),
    .miner-table td:nth-child(7) {
        display: table-cell;
        width: 30%;
        min-width: 80px;
        font-size: 12px;
        white-space: nowrap;
        text-align: center;
    }

    .miner-table th[data-sort="model"],
    .miner-table th[data-sort="coin"],
    .miner-table th[data-sort="profit"] {
        padding-right: 16px;
        position: relative;
    }

    .miner-table th[data-sort="model"]::after,
    .miner-table th[data-sort="coin"]::after,
    .miner-table th[data-sort="profit"]::after {
        content: '';
        border: 4px solid transparent;
        border-top-color: #F5F6F5;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
    }

    .miner-table th[data-sort="model"].asc::after,
    .miner-table th[data-sort="coin"].asc::after,
    .miner-table th[data-sort="profit"].asc::after {
        border-top-color: transparent;
        border-bottom-color: #F7931A;
    }

    .miner-table th[data-sort="model"].desc::after,
    .miner-table th[data-sort="coin"].desc::after,
    .miner-table th[data-sort="profit"].desc::after {
        border-top-color: #F7931A;
        border-bottom-color: transparent;
    }

    .miner-table th:not([data-sort="model"]):not([data-sort="coin"]):not([data-sort="profit"])::after {
        content: none;
    }
}

@media (max-width: 480px) {
    .navbar .logo .asicb,
    .navbar .logo .bitcoin-symbol {
        font-size: 22px;
    }

    .navbar .logo .com {
        font-size: 12px;
    }

    .navbar .nav-link {
        font-size: 12px;
    }

    .miner-table h1 {
        font-size: 20px;
        margin-bottom: 10px;
        white-space: nowrap;
    }

    .miner-table .intro-text {
        font-size: 12px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .miner-table .table-header {
        font-size: 11px;
        margin: 0 0 2px 0;
        padding: 2px 0;
        line-height: 1.2;
    }

    .miner-table .electricity-cost {
        text-align: left;
    }

    .miner-table .update-date {
        text-align: right;
    }

    .miner-table .search-box input {
        width: 60%;
        font-size: 14px;
        padding: 8px;
    }

    .miner-table .search-box button {
        width: 40%;
        font-size: 12px;
        padding: 8px;
    }

    .miner-table th,
    .miner-table td {
        font-size: 11px;
        padding: 3px;
        box-sizing: border-box;
    }

    .miner-table th:nth-child(1),
    .miner-table td:nth-child(1) {
        width: 40%;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .miner-table th:nth-child(5),
    .miner-table td:nth-child(5) {
        width: 30%;
        font-size: 11px;
    }

    .miner-table th:nth-child(5) {
        white-space: nowrap;
        padding: 3px 1px;
    }

    .miner-table th:nth-child(7),
    .miner-table td:nth-child(7) {
        display: table-cell;
        width: 30%;
        min-width: 80px;
        font-size: 11px;
        white-space: nowrap;
        text-align: center;
    }

    .miner-table th[data-sort="model"],
    .miner-table th[data-sort="coin"],
    .miner-table th[data-sort="profit"] {
        padding-right: 14px;
    }

    .miner-table th[data-sort="model"]::after,
    .miner-table th[data-sort="coin"]::after,
    .miner-table th[data-sort="profit"]::after {
        content: '';
        border: 3px solid transparent;
        border-top-color: #F5F6F5;
        right: 3px;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
    }

    .miner-table th[data-sort="model"].asc::after,
    .miner-table th[data-sort="coin"].asc::after,
    .miner-table th[data-sort="profit"].asc::after {
        border-top-color: transparent;
        border-bottom-color: #F7931A;
    }

    .miner-table th[data-sort="model"].desc::after,
    .miner-table th[data-sort="coin"].desc::after,
    .miner-table th[data-sort="profit"].desc::after {
        border-top-color: #F7931A;
        border-bottom-color: transparent;
    }

    .miner-table th:not([data-sort="model"]):not([data-sort="coin"]):not([data-sort="profit"])::after {
        content: none;
    }

    .footer .email-container {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.STYLE1 {
    color: #F7931A;
}

.STYLE2 {
    font-size: 14px;
}

.STYLE3 {
    font-size: 46px;
}