:root {
    --green: #00a884;
    --green-dk: #008069;
    --green-lt: #d9fdd3;
    --bg: #f0ede5;
    --bg2: #f7f5ef;
    --surface: #ffffff;
    --border: #e8e2d9;
    --border2: #d4cec5;
    --text: #111b21;
    --text2: #54656f;
    --text3: #8696a0;
    --link: #00a884;
    --shadow-xs: 0 1px 3px rgba(11,20,26,0.08);
    --shadow-sm: 0 2px 8px rgba(11,20,26,0.10);
    --shadow-md: 0 4px 16px rgba(11,20,26,0.12);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dk); }
img { max-width: 100%; display: block; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== LAYOUT ===== */
.g-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 14px;
}
.g-inner { width: 100%; }
.row-gap { margin-bottom: 6px; }

/* ===== HEADER ===== */
.g-header {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.g-header .g-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}
.brand-domain-row {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--green-lt);
    border: 1px solid #b7edc9;
    border-radius: 100px;
    padding: 3px 14px 3px 10px;
}
.domain-lbl {
    font-size: 11px;
    color: var(--green-dk);
    font-weight: 500;
    white-space: nowrap;
}
.domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--green-dk);
    letter-spacing: 0.5px;
}

/* ===== PROMO ===== */
.promo-band {
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-md);
    margin-bottom: 6px;
}
.promo-band a { display: block; }
.promo-band img { width: 100%; display: block; }

/* ===== NAVIGATION ===== */
.nav-card {
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    margin-bottom: 6px;
}
.nav-row-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.nav-row-item:last-child { border-bottom: none; }
.nav-zone-tag {
    width: 15%;
    min-width: 42px;
    max-width: 78px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 2px;
    line-height: 1.3;
    flex-shrink: 0;
    word-break: break-all;
    letter-spacing: 0.3px;
}
.nav-links-band {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    gap: 4px;
}
.nav-links-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    border-radius: var(--r-sm);
    background: var(--bg2);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    flex: 1 0 calc(25% - 4px);
    max-width: calc(25% - 4px);
    text-align: center;
    border: 1px solid transparent;
}
.nav-links-band a:hover,
.nav-links-band a.active {
    background: var(--green-lt);
    color: var(--green-dk);
    border-color: #b7edc9;
    font-weight: 700;
}

/* ===== SEARCH ===== */
.search-card {
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
}
.s-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.s-form input[type="text"] {
    flex: 1;
    min-width: 140px;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--border2);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg2);
    outline: none;
    transition: border-color 0.18s;
}
.s-form input[type="text"]:focus { border-color: var(--green); }
.s-form button {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 100px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}
.s-form button:hover { background: var(--green-dk); }

/* ===== HOT TAGS ===== */
.tags-card {
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
}
.tags-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tag-cloud a {
    display: inline-block;
    padding: 3px 12px;
    background: var(--bg2);
    color: var(--text2);
    border-radius: 100px;
    font-size: 12px;
    border: 1px solid var(--border2);
    transition: all 0.18s;
}
.tag-cloud a:hover {
    background: var(--green-lt);
    color: var(--green-dk);
    border-color: #b7edc9;
}

/* ===== SECTION ===== */
.media-block { margin-bottom: 6px; }
.media-block-inner { width: 100%; }
.block-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.block-heading h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
}
.block-heading h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0;
}
.block-heading h3 a { color: var(--text); }
.block-heading h3 a:hover { color: var(--green); }

/* ===== MEDIA GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.media-grid li {
    background: var(--surface);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    transition: box-shadow 0.18s, transform 0.18s;
}
.media-grid li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.media-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--bg2);
}
.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.media-thumb:hover img { transform: scale(1.04); }
.media-caption {
    padding: 6px 9px 8px;
}
.media-caption h5 {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text);
}
.media-caption h5 a { color: var(--text); }
.media-caption h5 a:hover { color: var(--green); }

/* ===== PAGINATION ===== */
.pager-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 0;
}
.pager-row a,
.pager-row .a_page_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border2);
    color: var(--text2);
    font-size: 13px;
    transition: all 0.18s;
    text-decoration: none;
}
.pager-row a:hover,
.pager-row .a_page_info:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.pager-row .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--green);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: default;
}

/* ===== DETAIL PAGES ===== */
.detail-title-bar {
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-all;
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
}
.detail-title-bar a {
    color: var(--green);
    font-weight: 700;
    margin-right: 6px;
}
.detail-info-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
}
.capture-layout {
    width: 100%;
    margin-top: 10px;
}
.capture-layout picture,
.capture-layout img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-sm);
}
.action-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 100px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.18s, transform 0.15s;
    text-decoration: none;
}
.btn-action:hover {
    background: var(--green-dk);
    transform: translateY(-1px);
    color: #fff;
}
.client-hint {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
}
.client-hint a { color: var(--green); font-weight: 600; }

/* ===== SHARE ===== */
.share-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-xs);
}
.share-url-part {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    overflow: hidden;
}
.share-tag {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    background: var(--bg2);
    padding: 2px 9px;
    border-radius: 100px;
    border: 1px solid var(--border2);
}
.share-url-text {
    font-size: 12px;
    color: var(--green-dk);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.share-btn {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.share-btn:hover { background: var(--green-dk); }

/* ===== FRIEND LINKS ===== */
.fl-card {
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
}
.fl-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 7px;
}
.fl-card dl { margin: 0; padding: 0; }
.fl-card dd { display: inline-block; margin: 3px 4px; }
.fl-card dd a {
    color: var(--text2);
    font-size: 12px;
    padding: 2px 10px;
    background: var(--bg2);
    border-radius: 100px;
    border: 1px solid var(--border2);
    transition: all 0.18s;
    display: inline-block;
}
.fl-card dd a:hover {
    background: var(--green-lt);
    color: var(--green-dk);
    border-color: #b7edc9;
}

/* ===== FOOTER ===== */
.g-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 14px 0;
    font-size: 12px;
    color: var(--text3);
    margin-top: 8px;
}
.g-footer a { color: var(--text3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .brand-name { font-size: 17px; }
    .domain-val { font-size: 14px; }
    .nav-zone-tag {
        width: 15%;
        min-width: 40px;
        max-width: 52px;
        font-size: 10px;
    }
    .nav-links-band { width: 85%; }
    .nav-links-band a {
        font-size: 12px;
        flex: 1 0 calc(25% - 4px);
        max-width: calc(25% - 4px);
        padding: 4px 2px;
    }
    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .action-btns { gap: 8px; }
    .btn-action { padding: 9px 18px; font-size: 13px; }
    .share-box { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 480px) and (max-width: 768px) {
    .nav-links-band a { font-size: 14px; }
}

@media (min-width: 769px) {
    .nav-zone-tag {
        font-size: 13px;
        width: auto;
        min-width: 68px;
        max-width: 88px;
    }
    .nav-links-band a {
        font-size: 14px;
        flex: 1 0 calc(12.5% - 4px);
        max-width: calc(12.5% - 4px);
    }
    .media-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }
