/* ===== GLOBAL RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #2B7FC1;
    --secondary-blue: #1c5ba0;
    --accent-green: #3eae5e;
    --light-green: #4bc874;
    --text-dark: #222222;
    --text-body: #444444;
    --grey-text: #666666;
    --light-grey: #f0f0f0;
    --border-grey: #ddd;
    --white: #ffffff;
    --shadow-light: 0 1px 3px rgba(0,0,0,.08);
    --shadow-mid: 0 2px 6px rgba(0,0,0,.12);
    --shadow-heavy: 0 4px 12px rgba(0,0,0,.15);
    --radius: 6px;
    --radius-btn: 4px;
}

html {
    font-size: 15px;
}

body {
    background: #ffffff;
    color: var(--text-body);
    font-family: 'Segoe UI','Helvetica Neue','PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,sans-serif;
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--secondary-blue);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.cf::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== CONTAINER ===== */
.container-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER ===== */
.header-bar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 10px 0;
    box-shadow: var(--shadow-mid);
    margin-bottom: 1px;
}

.header-bar .container-center {
    display: flex;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    flex-wrap: wrap;
}

.logo-path {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -.3px;
    display: block;
}

.domain-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
    padding: 5px 13px;
}

.card-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}

.card-value {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.banner-zone {
    margin: 2px 0;
}

.banner-zone img {
    border-radius: var(--radius);
    width: 100%;
    box-shadow: var(--shadow-light);
}

/* ===== NAVIGATION ===== */
.nav-section {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2px 0;
    box-shadow: var(--shadow-light);
}

.nav-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-grey);
    min-height: 42px;
}

.nav-strip:last-child {
    border-bottom: none;
}

.nav-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border-grey);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.nav-items {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 5px 8px;
    gap: 4px;
    flex: 1;
}

.nav-items a {
    font-size: .84rem;
    color: var(--text-body);
    padding: 4px 7px;
    border-radius: var(--radius-btn);
    transition: all .15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-items a:hover {
    background: rgba(43, 127, 193, .1);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.nav-items a.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    font-weight: 700;
}

/* ===== SEARCH BOX ===== */
.search-box {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 2px 0;
    box-shadow: var(--shadow-light);
}

.search-box form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-btn);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--text-dark);
    background: var(--light-grey);
    outline: none;
    transition: border-color .2s ease;
}

.search-box input[type="text"]::placeholder {
    color: var(--grey-text);
}

.search-box input[type="text"]:focus {
    border-color: var(--primary-blue);
    background: var(--white);
}

.search-box button {
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: var(--radius-btn);
    background: var(--primary-blue);
    color: var(--white);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
    flex-shrink: 0;
}

.search-box button:hover {
    background: var(--secondary-blue);
}

.search-box button[value="1"] {
    background: var(--accent-green);
}

.search-box button[value="1"]:hover {
    background: var(--light-green);
}

/* ===== HOT KEYWORDS ===== */
.hotword-box {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 2px 0;
    box-shadow: var(--shadow-light);
}

.hotword-box h4 {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.tag-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    display: inline-block;
    background: rgba(43, 127, 193, .08);
    color: var(--grey-text);
    border: 1px solid var(--border-grey);
    border-radius: 18px;
    padding: 3px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s ease;
}

.tag:hover {
    background: rgba(43, 127, 193, .15);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ===== CARD BLOCK ===== */
.card-block {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    padding: 11px;
    margin: 2px 0;
    box-shadow: var(--shadow-light);
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-grey);
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--accent-green);
    border-radius: 1px;
}

.card-title h3 {
    font-size: 1.0rem;
    font-weight: 800;
    color: var(--text-dark);
}

.card-title h3 a {
    color: var(--text-dark);
}

.card-title h3 a:hover {
    color: var(--primary-blue);
}

/* ===== ITEMS GRID ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.items-grid li {
    border-radius: var(--radius-btn);
    overflow: hidden;
    border: 1px solid var(--border-grey);
    background: var(--light-grey);
    transition: box-shadow .2s ease, transform .2s ease;
}

.items-grid li:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

.item-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--light-grey);
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.item-thumb:hover img {
    transform: scale(1.05);
}

.item-meta {
    padding: 6px 8px 8px;
}

.item-meta h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-meta h5 a {
    color: var(--text-body);
}

.item-meta h5 a:hover {
    color: var(--primary-blue);
}

/* ===== PAGINATION ===== */
.page-nav {
    margin: 12px 0 4px;
    display: flex;
    justify-content: center;
}

.page-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    background: var(--light-grey);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-btn);
    font-size: .84rem;
    color: var(--grey-text);
    text-decoration: none;
    transition: all .15s ease;
}

.page-link:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.page-link-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    background: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-btn);
    font-size: .84rem;
    font-weight: 700;
    color: var(--white);
    cursor: default;
}

/* ===== FOOTER ===== */
.footer-section {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    padding: 9px 12px;
    margin: 2px 0;
    box-shadow: var(--shadow-light);
}

.footer-title {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-grey);
}

.footer-title h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.links-group dd {
    display: inline;
}

.links-group a {
    display: inline-block;
    font-size: .76rem;
    color: var(--grey-text);
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid var(--border-grey);
    background: var(--light-grey);
    text-decoration: none;
    transition: all .15s ease;
}

.links-group a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: rgba(43, 127, 193, .05);
}

.footer-info {
    text-align: center;
    padding: 8px 0 10px;
    color: var(--grey-text);
    font-size: .75rem;
}

/* ===== DETAIL PAGE ===== */
.page-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 14px;
    font-size: .98rem;
    margin: 2px 0;
    word-break: break-all;
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-left: 4px solid var(--accent-green);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-light);
    color: var(--text-dark);
}

.page-title a {
    color: var(--accent-green);
    font-weight: 700;
    margin-right: 6px;
}

.info-block {
    font-size: .9rem;
    line-height: 1.95;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-light);
    margin: 2px 0;
    color: var(--text-body);
}

.image-gallery {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.image-gallery picture,
.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-btn);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 11px 0;
}

.button-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-btn);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}

.button-download:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-mid);
}

.client-notice {
    text-align: center;
    padding: 7px;
    font-size: .83rem;
}

.client-notice a {
    color: var(--primary-blue);
    font-weight: 600;
}

.client-notice a:hover {
    color: var(--secondary-blue);
}

/* ===== LINK SHARE ===== */
.link-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--light-grey);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 2px 0;
    flex-wrap: wrap;
}

.link-label {
    font-size: .77rem;
    color: var(--grey-text);
    white-space: nowrap;
}

.link-content {
    font-size: .79rem;
    color: var(--grey-text);
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.link-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--accent-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-btn);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
    flex-shrink: 0;
}

.link-copy:hover {
    background: var(--light-green);
}

/* ===== VISIBILITY HELPERS ===== */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .brand-name {
        font-size: 1.14rem;
    }

    .card-value {
        font-size: .94rem;
    }

    /* Navigation mobile */
    .nav-strip {
        align-items: stretch;
    }

    .nav-text {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.5;
        word-break: break-all;
        flex-shrink: 0;
    }

    .nav-items {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 5px;
        align-items: center;
    }

    .nav-items a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
    }

    /* Search single line */
    .search-box form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .search-box input[type="text"] {
        height: 36px;
        font-size: .8rem;
        padding: 0 8px;
    }

    .search-box button {
        height: 36px;
        padding: 0 8px;
        font-size: .73rem;
    }

    /* Grid */
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .item-thumb {
        aspect-ratio: 600 / 350;
    }

    .item-meta h5 {
        font-size: .72rem;
    }

    .card-block {
        padding: 9px;
    }

    .button-download {
        padding: 9px 14px;
        font-size: .85rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nav-text {
        font-size: 10px;
    }

    .nav-items a {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .nav-text {
        font-size: 10px;
    }

    .nav-items a {
        font-size: 12px;
    }

    .search-box button {
        padding: 0 6px;
        font-size: .68rem;
    }
}
