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

:root {
    --cm-teal:     #00a0ac;
    --cm-teal2:    #008f9a;
    --cm-teal3:    #00bbc8;
    --cm-teal-lt:  #e6f7f9;
    --cm-teal-mid: #b3e8ec;
    --cm-teal-bg:  rgba(0,160,172,.09);
    --cm-blue:     #1a6dce;
    --cm-blue-lt:  #e8f1fb;
    --cm-blue-dk:  #1558a8;
    --cm-green:    #4caf50;
    --bg:          #ffffff;
    --bg-soft:     #f6f7f9;
    --bg-muted:    #eef0f3;
    --ink:         #1a1a1a;
    --ink2:        #333333;
    --ink3:        #666666;
    --ink4:        #aaaaaa;
    --rule:        #e2e4e8;
    --rule2:       #d0d3d9;
    --sh1: 0 1px 4px rgba(0,0,0,.06);
    --sh2: 0 3px 14px rgba(0,160,172,.10);
    --sh3: 0 8px 28px rgba(0,160,172,.16);
    --rd:   6px;
    --rd-sm: 3px;
    --rd-lg: 10px;
    --rd-xl: 14px;
    --rd-pill: 40px;
}

html { font-size: 15px; }

body {
    background: var(--bg-soft);
    color: var(--ink);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.65;
}

a { color: var(--cm-teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cm-teal2); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.cm-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.cm-header {
    background: var(--bg);
    border-bottom: 2px solid var(--cm-teal);
    padding: 9px 0;
    box-shadow: var(--sh1);
}

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

.cm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.cm-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--cm-teal);
    letter-spacing: -.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.cm-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cm-teal);
    border-radius: var(--rd-pill);
    padding: 5px 17px;
    box-shadow: 0 3px 12px var(--cm-teal-bg);
}

.cm-domain-pill .cdp-label {
    font-size: 0.61rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    font-weight: 600;
}

.cm-domain-pill .cdp-url {
    font-size: 1.07rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

/* ===== BANNER ===== */
.cm-promo {
    margin: 4px 0 3px;
}
.cm-promo img { border-radius: var(--rd-lg); width: 100%; }

/* ===== CATEGORY NAV ===== */
.cm-nav-panel {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-top: 3px solid var(--cm-teal);
    border-radius: 0 0 var(--rd-xl) var(--rd-xl);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.cm-nav-tag {
    background: var(--cm-teal);
    color: rgba(255,255,255,.9);
    font-size: .67rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.18);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.cm-nav-links a {
    font-size: .8rem;
    color: var(--ink2);
    padding: 4px 5px;
    border-radius: var(--rd-sm);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.cm-nav-links a:hover {
    background: var(--cm-teal-lt);
    color: var(--cm-teal2);
    border-color: var(--cm-teal-mid);
}

.cm-nav-links a.active {
    background: var(--cm-teal);
    color: #fff;
    border-color: var(--cm-teal);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.cm-searchbox {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 9px 16px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.cm-searchbox form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.cm-searchbox input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    padding: 0 16px;
    font-size: .87rem;
    color: var(--ink);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.cm-searchbox input[type="text"]::placeholder { color: var(--ink4); }

.cm-searchbox input[type="text"]:focus {
    border-color: var(--cm-teal);
    box-shadow: 0 0 0 3px var(--cm-teal-bg);
    background: var(--bg);
}

.cm-searchbox button {
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    background: var(--bg-muted);
    color: var(--ink2);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.cm-searchbox button:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.cm-searchbox button[value="1"] {
    background: var(--cm-teal);
    color: #fff;
    border-color: var(--cm-teal);
    font-weight: 800;
    box-shadow: 0 2px 8px var(--cm-teal-bg);
}

.cm-searchbox button[value="1"]:hover {
    background: var(--cm-teal2);
    border-color: var(--cm-teal2);
}

.cm-searchbox button[value="2"] {
    background: var(--cm-blue);
    color: #fff;
    border-color: var(--cm-blue);
}

.cm-searchbox button[value="2"]:hover {
    background: var(--cm-blue-dk);
    border-color: var(--cm-blue-dk);
}

/* ===== HOT TAGS ===== */
.cm-hot-panel {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    padding: 8px 14px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.cm-hot-panel h4 {
    font-size: .75rem;
    font-weight: 800;
    color: var(--cm-teal);
    margin-bottom: 6px;
}

.cm-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cm-hot-tags .cht {
    display: inline-block;
    background: var(--cm-teal-lt);
    color: var(--cm-teal2);
    border: 1.5px solid var(--cm-teal-mid);
    border-radius: var(--rd-pill);
    padding: 2px 11px;
    font-size: .73rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.cm-hot-tags .cht:hover {
    background: var(--cm-teal);
    color: #fff;
    border-color: var(--cm-teal);
}

/* ===== CONTENT SECTION ===== */
.cm-sect {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 13px 15px 11px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.cm-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.cm-sect-hd::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cm-teal);
    border-radius: 3px;
    left: -15px;
}

.cm-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--cm-teal);
    border-radius: 2px;
}

.cm-sect-hd h3 {
    font-size: .97rem;
    font-weight: 900;
    color: var(--ink);
}

.cm-sect-hd h3 a { color: var(--ink); }
.cm-sect-hd h3 a:hover { color: var(--cm-teal); }

.cm-sect-hd h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--ink);
}

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

.cm-grid li {
    border-radius: var(--rd-lg);
    overflow: hidden;
    border: 1.5px solid var(--rule);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

.cm-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: var(--cm-teal-mid);
}

.cm-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

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

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

.cm-item-info {
    padding: 6px 9px 9px;
    border-top: 1px solid var(--rule);
}

.cm-item-info h5 {
    font-size: .76rem;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cm-item-info h5 a { color: var(--ink2); }
.cm-item-info h5 a:hover { color: var(--cm-teal); }

/* ===== PAGINATION ===== */
.cm-pager {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.cm-pager-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.cm-pager-row a.cmpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-sm);
    font-size: .82rem;
    color: var(--ink2);
    text-decoration: none;
    transition: all .15s;
}

.cm-pager-row a.cmpb:hover {
    background: var(--cm-teal-lt);
    border-color: var(--cm-teal);
    color: var(--cm-teal);
}

.cm-pager-row a.cmpb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--cm-teal);
    border: 1.5px solid var(--cm-teal);
    border-radius: var(--rd-sm);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px var(--cm-teal-bg);
}

/* ===== FOOTER ===== */
.cm-footer-band {
    background: var(--ink);
    border-radius: var(--rd-lg);
    padding: 10px 15px;
    margin: 4px 0;
}

.cm-footer-band .cm-sect-hd { border-bottom-color: rgba(255,255,255,.1); }
.cm-footer-band .cm-sect-hd::before { background: var(--cm-teal); }
.cm-footer-band .cm-sect-hd::after { background: var(--cm-teal); }
.cm-footer-band .cm-sect-hd h4 { color: rgba(255,255,255,.48); }

.cm-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cm-flinks dd { display: inline; }

.cm-flinks a {
    display: inline-block;
    font-size: .74rem;
    color: rgba(255,255,255,.38);
    padding: 2px 9px;
    border-radius: var(--rd-sm);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    text-decoration: none;
    transition: all .15s;
}

.cm-flinks a:hover {
    color: var(--cm-teal3);
    border-color: rgba(0,160,172,.4);
    background: rgba(0,160,172,.1);
}

.cm-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink4);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.cm-entry-bar {
    line-height: 1.8;
    padding: 12px 18px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-left: 4px solid var(--cm-teal);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
}

.cm-entry-bar a {
    color: var(--cm-teal);
    font-weight: 700;
    margin-right: 8px;
    font-size: .75rem;
}

.cm-entry-bar b { color: var(--ink); font-weight: 800; }

.cm-entry-specs {
    font-size: .9rem;
    line-height: 1.9;
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--ink2);
}

.cm-preview-area {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.cm-preview-area picture,
.cm-preview-area img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.cm-btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.cm-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 26px;
    background: var(--cm-teal);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--cm-teal-bg);
}

.cm-action-btn:hover {
    background: var(--cm-teal2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,160,172,.25);
}

.cm-client-tip {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.cm-client-tip a { color: var(--ink3); font-weight: 600; }
.cm-client-tip a:hover { color: var(--cm-teal); }

/* ===== SHARE BAR ===== */
.cm-share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--cm-teal-lt);
    border: 1.5px solid var(--cm-teal-mid);
    border-radius: var(--rd-lg);
    padding: 9px 15px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.cm-share-strip .css-lbl { font-size: .72rem; color: var(--cm-teal2); white-space: nowrap; font-weight: 700; }
.cm-share-strip .css-url { font-size: .77rem; color: var(--ink2); flex: 1; min-width: 0; word-break: break-all; }

.cm-share-strip .css-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 15px;
    background: var(--cm-teal);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.cm-share-strip .css-btn:hover { background: var(--cm-teal2); }

/* ===== VISIBILITY ===== */
.cm-dsk { display: block; }
.cm-mob { display: none; }

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

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

    .cm-sitename { font-size: 1.08rem; }
    .cm-domain-pill .cdp-url { font-size: .9rem; }

    .cm-nav-strip { align-items: stretch; }

    .cm-nav-tag {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .cm-nav-links a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .cm-searchbox form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .cm-searchbox input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 10px;
    }

    .cm-searchbox button {
        height: 34px;
        padding: 0 9px;
        font-size: .73rem;
    }

    .cm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .cm-thumb { aspect-ratio: 600 / 350; }
    .cm-item-info h5 { font-size: .71rem; }
    .cm-sect { padding: 10px 10px 8px; }
    .cm-action-btn { padding: 9px 18px; font-size: .83rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .cm-nav-tag { font-size: 10px; }
    .cm-nav-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .cm-nav-tag { font-size: 10px; }
    .cm-nav-links a { font-size: 12px; }
    .cm-searchbox button { padding: 0 6px; font-size: .67rem; }
}
