/* ============================================
   漫城CMS 粉系少女PC模板 - 粉色主题
   ============================================ */

/* ========== CSS Variables ============ */
:root {
    --primary: #e84393;
    --primary-dark: #d63384;
    --primary-light: #f06292;
    --primary-pale: #fce4ec;
    --accent: #ff6b6b;
    --accent-light: #ff8e8e;
    --bg: #fff5f7;
    --card-bg: #fff;
    --text: #4a2c3a;
    --text-light: #9e7a8a;
    --text-muted: #c9a8b8;
    --border: #f0d4de;
    --border-light: #f8e8ee;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 2px 12px rgba(232,67,147,0.08);
    --shadow-hover: 0 8px 30px rgba(232,67,147,0.15);
    --shadow-soft: 0 2px 8px rgba(232,67,147,0.05);
    --nav-hover: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== Global Reset ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

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

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.25s ease;
}
a:hover { color: var(--primary); }

ul, ol { list-style: none; }

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-pale); }
button { cursor: pointer; border: none; }

::selection { background: var(--primary-pale); color: var(--primary-dark); }

/* ========== Layout ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.box { max-width: 1200px; margin: 0 auto; padding: 20px 15px; }

/* ========== Header ============ */
.header {
    background: var(--card-bg);
    box-shadow: 0 2px 12px rgba(232,67,147,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.95);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.header-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    position: relative;
}
.header-logo::after {
    content: '🌸';
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.7;
}
.header-nav { display: flex; gap: 4px; }
.header-nav a {
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}
.header-nav a:hover,
.header-nav a.on {
    background: var(--nav-hover);
    color: #fff;
    box-shadow: 0 4px 15px rgba(232,67,147,0.3);
}
.header-search { display: flex; align-items: center; }
.header-search input {
    width: 220px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    font-size: 13px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.header-search input:focus {
    background: #fff;
    border-color: var(--primary);
}
.header-search button {
    height: 38px;
    padding: 0 18px;
    background: var(--nav-hover);
    color: #fff;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(232,67,147,0.25);
}
.header-search button:hover {
    box-shadow: 0 6px 20px rgba(232,67,147,0.35);
}
.header-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.header-user .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-pale); }
.header-user .login-link { color: var(--text-light); }
.header-user .login-link:hover { color: var(--primary); }
.header-user .separator { color: var(--border); margin: 0 2px; }

/* ========== Section Card ============ */
.section-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}
.section-card:hover {
    box-shadow: var(--shadow-hover);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-pale);
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--nav-hover);
    border-radius: 3px;
}
.section-more {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}
.section-more:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-pale);
}

/* ========== Comics Grid ============ */
.comics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
@media (max-width: 1200px) { .comics-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .comics-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .comics-grid { grid-template-columns: repeat(2, 1fr); } }

.comic-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}
.comic-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-pale);
}
.comic-cover {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background: var(--bg);
}
.comic-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.comic-item:hover .comic-cover img { transform: scale(1.08); }
.comic-status {
    position: absolute;
    top: 8px; right: 8px;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 11px;
    border-radius: var(--radius-xl);
    font-weight: 500;
}
.comic-content { padding: 14px 12px; }
.comic-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-meta { font-size: 12px; color: var(--text-light); }
.comic-meta span { display: inline-block; margin-right: 8px; }

/* ========== Carousel / Banner ============ */
.carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide .li {
    display: flex;
    height: 380px;
    background: linear-gradient(135deg, #fff5f7 0%, #fce4ec 50%, #fff0f3 100%);
}
.carousel-slide .img {
    width: 55%;
    overflow: hidden;
}
.carousel-slide .img img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide .info {
    flex: 1;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carousel-slide .info .top {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-pale);
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    font-weight: 500;
}
.carousel-slide .info .name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.carousel-slide .info .text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.carousel-slide .info .btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--nav-hover);
    color: #fff;
    border-radius: var(--radius-xl);
    font-size: 14px;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(232,67,147,0.25);
    transition: all 0.3s ease;
}
.carousel-slide .info .btn:hover {
    box-shadow: 0 6px 25px rgba(232,67,147,0.4);
    transform: translateY(-2px);
    color: #fff;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(232,67,147,0.1);
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.8;
}
.carousel-nav:hover {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(232,67,147,0.3);
    opacity: 1;
}
.carousel-nav:hover svg { fill: #fff; }
.carousel-nav svg { width: 24px; height: 24px; fill: var(--text); transition: fill 0.3s ease; }
.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.carousel-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.carousel-dots span.active {
    background: var(--primary);
    border-color: rgba(232,67,147,0.3);
    width: 30px;
    border-radius: 5px;
}

/* ========== Tag List ============ */
.taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.taglist .item {
    padding: 6px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s ease;
}
.taglist .item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
    transform: translateY(-2px);
}

/* ========== Buttons ============ */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}
.btn-primary { background: var(--nav-hover); color: #fff; box-shadow: 0 4px 12px rgba(232,67,147,0.2); }
.btn-primary:hover { opacity: 0.95; color: #fff; box-shadow: 0 6px 20px rgba(232,67,147,0.35); transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--primary-pale); border-color: var(--primary); color: var(--primary); }

/* ========== Pagination ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    padding: 20px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 13px;
    transition: all 0.25s ease;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}
.pagination .on {
    background: var(--nav-hover);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(232,67,147,0.2);
}
.pagination .disabled { color: var(--border); cursor: not-allowed; }
.page-info { color: var(--text-light); margin-bottom: 10px; text-align: center; font-size: 13px; }

/* ========== Page Nav ============ */
.page { text-align: center; margin-top: 30px; padding: 20px 0; }
.page .title { display: block; color: var(--text-light); font-size: 13px; margin-bottom: 12px; }
.page .ul { display: flex; justify-content: center; align-items: center; gap: 6px; }
.page .ul a, .page .ul span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 13px;
    transition: all 0.25s ease;
    text-decoration: none;
}
.page .ul a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}
.page .ul a.disabled {
    color: var(--border);
    cursor: not-allowed;
    pointer-events: none;
}
.page .ul a.on {
    background: var(--nav-hover);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(232,67,147,0.2);
}

/* ========== Footer ============ */
.footer {
    background: linear-gradient(135deg, #fff5f7 0%, #fce4ec 100%);
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
}
.footer-inner { text-align: center; color: var(--text-light); font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a {
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
}
.footer-links a:hover {
    color: var(--primary);
    background: var(--primary-pale);
}

/* ========== User Center ============ */
.user-content { background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.user-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: var(--bg);
    border-radius: var(--radius);
}
.user-tabs a {
    text-align: left;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.25s ease;
}
.user-tabs a:hover,
.user-tabs a.on {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(232,67,147,0.1);
}

/* ========== Breadcrumb ============ */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); padding: 2px 8px; border-radius: var(--radius); }
.breadcrumb a:hover { color: var(--primary); background: var(--primary-pale); }
.breadcrumb span { color: var(--text); }
.breadcrumb .sep { margin: 0 6px; color: var(--text-muted); }

/* ========== Detail Page (Comic) ============ */
.comic-info {
    display: flex;
    gap: 30px;
    padding: 28px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.comic-info .cover {
    width: 220px;
    flex-shrink: 0;
}
.comic-info .cover .img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(232,67,147,0.1);
}
.comic-info .cover .img img { width: 100%; }
.comic-info .cover .status {
    position: absolute;
    top: 10px; right: 10px;
    padding: 3px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 12px;
    border-radius: var(--radius-xl);
}
.comic-info .info { flex: 1; }
.comic-info .info .title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.comic-info .info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}
.comic-info .info .meta .item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: var(--radius-xl);
}
.comic-info .info .meta .item strong { color: var(--text); }
.comic-info .info .tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.comic-info .info .tags a {
    padding: 4px 14px;
    background: var(--primary-pale);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s ease;
}
.comic-info .info .tags a:hover {
    background: var(--primary);
    color: #fff;
}
.comic-info .info .desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comic-info .info .desc.expanded {
    display: block;
}
.comic-info .info .expand-btn {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 16px;
    padding: 2px 12px;
    border: 1px solid var(--primary-pale);
    border-radius: var(--radius-xl);
}
.comic-info .info .expand-btn:hover {
    background: var(--primary-pale);
}
.comic-info .info .actions {
    display: flex;
    gap: 12px;
}
.comic-info .info .actions .btn {
    border-radius: var(--radius-xl);
}
.comic-info .info .actions .read {
    background: var(--nav-hover);
    color: #fff;
    box-shadow: 0 4px 15px rgba(232,67,147,0.25);
}
.comic-info .info .actions .read:hover {
    box-shadow: 0 6px 25px rgba(232,67,147,0.4);
    color: #fff;
}
.comic-info .info .actions .collect {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-light);
}
.comic-info .info .actions .collect:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}
.comic-info .info .actions .collect.active {
    background: var(--primary-pale);
    border-color: var(--primary);
    color: var(--primary);
}
.comic-info .info .actions .collect.active .txt1 { display: none; }
.comic-info .info .actions .collect.active .txt2 { display: inline; }
.comic-info .info .actions .collect .txt2 { display: none; }

/* ========== Chapter List ============ */
.chapter-list {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.chapter-list .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-pale);
    font-size: 18px;
    font-weight: 600;
}
.chapter-list .title .sort {
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
}
.chapter-list .title .sort:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}
.chapter-list .list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 992px) { .chapter-list .list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .chapter-list .list { grid-template-columns: repeat(2, 1fr); } }
.chapter-list .list .item {
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.chapter-list .list .item:hover {
    background: var(--primary-pale);
    color: var(--primary);
    border-color: var(--primary);
}
.chapter-list .list .item .chapter-name { }
.chapter-list .list .item .chapter-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: var(--radius-xl);
    margin-left: 4px;
    font-weight: 600;
}
.chapter-list .list .item .chapter-tag.vip { background: var(--accent); color: #fff; }
.chapter-list .list .item .chapter-tag.pay { background: var(--primary-light); color: #fff; }
.chapter-list .load-more {
    margin-top: 16px;
    text-align: center;
    display: none;
}
.chapter-list .load-more.show { display: block; }

/* ========== Related ============ */
.related {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.related .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-pale);
}
.related .list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.related .list::-webkit-scrollbar { height: 4px; }
.related .list::-webkit-scrollbar-track { background: var(--bg); border-radius: 2px; }
.related .list::-webkit-scrollbar-thumb { background: var(--primary-pale); border-radius: 2px; }
.related .list .item {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
}
.related .list .item .img {
    width: 100%;
    padding-top: 133.33%;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid var(--border-light);
    transition: border-color 0.3s ease;
}
.related .list .item .img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.related .list .item:hover .img { border-color: var(--primary); }
.related .list .item:hover .img img { transform: scale(1.06); }
.related .list .item .name {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== Reader Page ============ */
.read-container { max-width: 900px; margin: 0 auto; position: relative; }
.reader-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.control-left, .control-right { display: flex; gap: 10px; }
.control-center { text-align: center; }
.control-center .chapter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.control-btn {
    padding: 8px 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 13px;
    color: var(--text);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.control-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}
.progress-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 2px;
    transition: width 0.3s ease;
}
.rd-article-wr { min-height: 400px; }
.rd-article__pic {
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
}
.rd-article__pic img { width: 100%; border-radius: var(--radius); }

/* ========== VIP/Buy Modal ============ */
.vip-box, .buy-box { display: none; }
.modal-content {
    padding: 30px;
    text-align: center;
}
.modal-header h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 16px;
}
.modal-body p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}
.modal-body .auto-buy {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}
.modal-body .auto-buy input { margin-right: 6px; }
.btn-vip, .btn-recharge, .handle__confirm {
    padding: 10px 32px;
    background: var(--nav-hover);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232,67,147,0.25);
    transition: all 0.3s ease;
}
.btn-vip:hover, .btn-recharge:hover, .handle__confirm:hover {
    box-shadow: 0 6px 25px rgba(232,67,147,0.4);
    transform: translateY(-1px);
}

/* ========== Search ============ */
.search-page .search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.search-page .search-box input {
    flex: 1;
    height: 46px;
    padding: 0 18px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.search-page .search-box input:focus {
    background: #fff;
    border-color: var(--primary);
}

/* ========== Category Filter ============ */
.filter-bar {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
    width: 60px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    padding-top: 6px;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-options a {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.25s ease;
}
.filter-options a:hover,
.filter-options a.on {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}

/* ========== Classify Filter ============ */
.classify .nav .ul a {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}
.classify .nav .ul a:hover,
.classify .nav .ul a.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}

/* ========== Error Page ============ */
.error-page {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.error-code {
    font-size: 100px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}
.error-msg {
    font-size: 16px;
    color: var(--text-light);
    margin: 16px 0 28px;
}
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ========== Form Elements ============ */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.form-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg);
}
.form-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-pale);
}

/* ========== Ranking ============ */
.rank-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
.rank-list-item:hover {
    background: var(--primary-pale);
    margin: 0 -16px;
    padding: 12px 16px;
    border-radius: var(--radius);
}
.rank-list-item:last-child { border-bottom: none; }
.rank-num {
    width: 28px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}
.rank-num.top3 { font-size: 18px; color: var(--primary); }

/* ========== Scrollbar ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-pale); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ========== Utilities ============ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.clearfix::after { content: ''; display: table; clear: both; }
.hide { display: none !important; }
