/* telegramhao.com original-style reconstruction
   Readable source: intentionally not minified. */

:root {
    --primary: #229ed9;
    --primary-dark: #168ac2;
    --dark: #20252b;
    --nav: #292f36;
    --text: #333333;
    --muted: #888888;
    --border: #e8e8e8;
    --soft: #f7f7f7;
    --danger: #f04438;
    --success: #18a058;
}

* {
    box-sizing: border-box;
}

html {
    background: #ffffff;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.75;
}

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

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 1180px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
}

.site-header {
    background: var(--dark);
    color: #ffffff;
}

.header-main {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.site-brand:hover {
    color: #ffffff;
}

.brand-plane {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 21px;
    line-height: 1;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #cfd5dc;
    font-size: 13px;
}

.site-nav {
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: var(--nav);
}

.nav-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-inner a {
    display: block;
    padding: 12px 17px;
    color: #eef1f3;
    line-height: 22px;
}

.nav-inner a:hover,
.nav-inner a.active {
    color: #ffffff;
    background: #343b44;
}

.page {
    padding: 26px 0 45px;
}

.home-intro {
    padding-bottom: 10px;
}

.home-intro h1,
.article h1,
.detail-title h1,
.simple-page h1 {
    margin: 0 0 12px;
    color: #222222;
    font-size: 26px;
    line-height: 1.4;
}

.home-intro p {
    margin: 0;
    color: #666666;
}

.section-title {
    margin: 26px 0 16px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
    color: #252525;
    font-size: 20px;
    line-height: 26px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    position: relative;
    min-height: 155px;
    padding: 18px;
    border: 1px solid var(--border);
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.product-card:hover {
    border-color: #d4dbe0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}

.stock-badge {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--success);
    font-size: 12px;
}

.stock-badge.sold-out {
    color: #999999;
}

.product-card h3 {
    min-height: 44px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-now {
    color: var(--danger);
    font-size: 20px;
    font-weight: 700;
}

.price-old {
    margin-left: 6px;
    color: #aaaaaa;
    font-size: 12px;
    text-decoration: line-through;
}

.buy-link,
.btn-primary {
    display: inline-block;
    padding: 7px 16px;
    border: 0;
    border-radius: 3px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
}

.buy-link:hover,
.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dddddd;
    background: #ffffff;
}

.pagination .active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.inventory-box {
    border: 1px solid var(--border);
    background: #ffffff;
}

.inventory-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.inventory-tools input {
    width: 360px;
    max-width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dddddd;
    outline: none;
}

.inventory-tools input:focus {
    border-color: var(--primary);
}

.clear-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #999999;
    cursor: pointer;
    font-size: 18px;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th,
.inventory-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
    vertical-align: middle;
}

.inventory-table th {
    background: #fafafa;
    color: #666666;
    font-weight: 600;
}

.inventory-table tr:last-child td {
    border-bottom: 0;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
}

.panel {
    border: 1px solid var(--border);
    background: #ffffff;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
    font-size: 16px;
    font-weight: 600;
}

.panel-body {
    padding: 14px 16px;
}

.latest-list,
.hot-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.latest-list li,
.hot-list li {
    padding: 9px 0;
    border-bottom: 1px dashed #e2e2e2;
}

.latest-list li:last-child,
.hot-list li:last-child {
    border-bottom: 0;
}

.latest-list time {
    display: block;
    color: #999999;
    font-size: 12px;
}

.breadcrumb {
    padding: 14px 0;
    color: #999999;
    font-size: 13px;
}

.breadcrumb a {
    color: #666666;
}

.product-detail-box {
    display: grid;
    grid-template-columns: 36% 64%;
    border: 1px solid var(--border);
    background: #ffffff;
}

.product-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 30px;
    border-right: 1px solid var(--border);
    background: #f8fbfd;
}

.telegram-emblem {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(34, 158, 217, .24);
    font-size: 78px;
    transform: rotate(-12deg);
}

.product-order {
    padding: 26px 30px;
}

.detail-title {
    margin-bottom: 13px;
}

.detail-sub {
    margin-bottom: 10px;
    color: #777777;
}

.detail-price {
    margin: 8px 0 22px;
    color: var(--danger);
    font-size: 28px;
    font-weight: 700;
}

.detail-price del {
    margin-left: 8px;
    color: #aaaaaa;
    font-size: 14px;
    font-weight: 400;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    color: #555555;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background: #ffffff;
    outline: none;
    font: inherit;
}

.form-control:focus {
    border-color: var(--primary);
}

.qty-box {
    display: flex;
    width: 165px;
}

.qty-box button {
    width: 40px;
    border: 1px solid #dcdcdc;
    background: #fafafa;
    cursor: pointer;
}

.qty-box input {
    width: 85px;
    border-left: 0;
    border-right: 0;
    text-align: center;
}

.payment-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

.product-copy,
.article,
.simple-page {
    color: #444444;
    font-size: 15px;
}

.product-copy {
    margin-top: 26px;
}

.product-copy h2,
.article h2,
.simple-page h2 {
    margin: 26px 0 12px;
    color: #2b2b2b;
    font-size: 20px;
}

.product-copy h3,
.article h3,
.simple-page h3 {
    margin: 22px 0 10px;
    color: #333333;
    font-size: 17px;
}

.product-copy p,
.article p,
.simple-page p {
    margin: 10px 0;
}

.product-copy ul,
.product-copy ol,
.article ul,
.article ol,
.simple-page ul,
.simple-page ol {
    padding-left: 24px;
}

.article-list-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.article-list-item:first-child {
    padding-top: 0;
}

.article-list-item h2 {
    margin: 0 0 7px;
    font-size: 18px;
}

.article-list-item p {
    margin: 0 0 6px;
    color: #666666;
}

.article-list-item time {
    color: #999999;
    font-size: 12px;
}

.article-cover,
.simple-cover {
    display: block;
    width: 100%;
    max-width: 880px;
    margin: 14px 0 20px;
    border: 0;
}

.article-date {
    margin: -5px 0 16px;
    color: #999999;
    font-size: 13px;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0 28px;
}

.tutorial-card {
    padding: 20px;
    border: 1px solid var(--border);
    background: #ffffff;
}

.tutorial-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.tutorial-card p {
    min-height: 48px;
    margin: 0 0 13px;
    color: #777777;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: #f4f6f8;
}

.auth-card {
    width: 400px;
    max-width: 100%;
    padding: 30px;
    border: 1px solid #e4e6e8;
    background: #ffffff;
    box-shadow: 0 7px 26px rgba(0, 0, 0, .06);
}

.auth-card h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.auth-card .welcome {
    margin: 0 0 22px;
    color: #888888;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    font-size: 13px;
}

.auth-submit {
    width: 100%;
    height: 42px;
    margin-top: 6px;
}

.back-home {
    display: block;
    margin-top: 18px;
    color: #888888;
    text-align: center;
}

.order-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.order-box {
    padding: 18px;
    border: 1px solid var(--border);
}

.action-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-light {
    display: inline-block;
    padding: 7px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
}

.site-footer {
    padding: 25px 0 30px;
    border-top: 1px solid #e7e7e7;
    background: #f8f8f8;
    color: #777777;
    font-size: 13px;
    text-align: center;
}

.customer-service {
    margin-bottom: 8px;
}

.customer-service a {
    color: var(--primary);
}

.empty-state {
    padding: 20px;
    color: #999999;
    text-align: center;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column,
    .product-detail-box,
    .order-tabs {
        grid-template-columns: 1fr;
    }

    .product-preview {
        min-height: 240px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: calc(100% - 22px);
    }

    .header-main {
        min-height: 58px;
    }

    .header-links {
        display: none;
    }

    .site-brand {
        font-size: 17px;
    }

    .nav-inner {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .nav-inner a {
        flex: 0 0 auto;
        padding: 10px 12px;
    }

    .page {
        padding-top: 18px;
    }

    .home-intro h1,
    .article h1,
    .detail-title h1,
    .simple-page h1 {
        font-size: 22px;
    }

    .product-grid,
    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 0;
    }

    .inventory-box {
        overflow-x: auto;
    }

    .inventory-table {
        min-width: 700px;
    }

    .product-order {
        padding: 20px 18px;
    }
}
