/**
 * 宠物网 - 全局CSS框架
 * 基于 chongwuwang.com.cn 设计风格
 * 完全重构版本
 */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-gray);
    min-width: 320px;
    padding-bottom: 0;
}

ul, ol {
    list-style: none;
}

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

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

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

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==================== CSS Variables ==================== */
:root {
    --primary: #1890ff;
    --primary-dark: #0052cc;
    --primary-light: #e6f7ff;
    --accent: #ff6b35;
    --accent-dark: #e55a28;
    --accent-light: #fff5f0;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-dark: #2c3e50;
    --bg-darker: #1a252f;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --max-width: 1400px;
    --header-height: 0px;
    --transition-fast: 0.15s ease;
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

p {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* ==================== Grid System ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

[class*="col-"] {
    padding: 0 10px;
}

/* ==================== Header ==================== */
.site-header {
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    color: #666666;
    font-size: 13px;
    line-height: 40px;
    height: 40px;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-top a {
    color: #666666;
}

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

.site-name-top {
    color: var(--text);
    font-weight: 600;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-links .btn-login {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.4;
}

.auth-links .btn-login:hover {
    background: var(--primary);
    color: #fff;
}

.auth-links .btn-register {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    border: none;
    padding: 5px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.4;
}

.auth-links .btn-register:hover {
    background: linear-gradient(135deg, #e55a28, #ff6b35);
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.user-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
}

.user-dropdown-menu {
    min-width: 180px;
    right: 0;
    left: auto;
}

.user-dropdown-menu li.divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.user-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 13px;
    transition: background 0.2s;
}

.user-dropdown-menu li a:hover {
    background: var(--bg-light);
}

.user-dropdown-menu li a.text-danger {
    color: #e74c3c;
}

.user-dropdown-menu .icon-sm {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 移动端用户菜单 */
@media (max-width: 768px) {
    .user-menu-toggle span:not(.user-avatar-placeholder) {
        display: none;
    }

    .user-dropdown-menu {
        position: fixed;
        bottom: 60px;
        right: 0;
        left: auto;
        width: 200px;
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    }
}

/* Header Main */
.header-main {
    background: #ffffff;
    padding: 0;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-main .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
}

/* Logo - 固定左侧 */
.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* 导航 - 中间填充 */
.header-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 64px;
    margin: 0;
    padding: 0;
}

.header-nav .nav-list > li {
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
}

.header-nav .nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    height: 64px;
    line-height: 64px;
    transition: all var(--transition);
    white-space: nowrap;
}

.header-nav .nav-list > li > a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-nav .nav-list > li.active > a {
    color: var(--primary);
    font-weight: 600;
    box-shadow: inset 0 -3px 0 var(--primary);
}

/* 搜索 - 固定右侧 */
.header-search {
    flex: 0 0 280px;
    width: 280px;
}

.logo h1 {
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.logo h1:hover {
    color: var(--primary-dark);
}

/* Header Search Form */
.header-search form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    height: 38px;
    background: var(--bg-gray);
    transition: all var(--transition);
}

.header-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.header-search .search-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    height: 100%;
}

.header-search .search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 4px;
    margin: 2px;
    transition: background var(--transition);
    height: calc(100% - 4px);
}

.header-search .search-btn:hover {
    background: var(--primary-dark);
}

/* Menu Toggle & Mobile Search Toggle (hidden on desktop) */
.menu-toggle {
    display: none;
}

.mobile-search-toggle {
    display: none;
}

/* Search Bar */
.search-bar {
    flex: 0 0 300px;
    width: 300px;
}

.search-bar form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    height: 36px;
    background: var(--bg);
    transition: border-color var(--transition);
}

.search-bar form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    height: 100%;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 4px;
    margin: 2px;
    transition: background var(--transition);
    height: calc(100% - 4px);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ==================== Navigation (已合并到 header-nav) ==================== */
.main-nav {
    display: none;
}

/* ==================== Navigation Dropdown ==================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 1001;
    padding: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-dropdown-menu li:not(:last-child) {
    border-bottom: none;
}

/* Sub Navigation */
.sub-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: 40px;
}

.sub-nav-list {
    display: flex;
    flex-wrap: wrap;
    height: 40px;
}

.sub-nav-list li {
    position: relative;
    height: 40px;
}

.sub-nav-list li a {
    display: block;
    padding: 0 14px;
    color: var(--text);
    font-size: 14px;
    line-height: 40px;
    transition: color var(--transition);
}

.sub-nav-list li a:hover {
    color: var(--primary);
}

.sub-nav-list li.active a {
    color: var(--primary);
    box-shadow: inset 0 -2px 0 var(--primary);
}

/* ==================== Main Content Area ==================== */
.main-content {
    padding: 20px 0;
}

.content-wrapper {
    display: flex;
    gap: 24px;
}

.content-main {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.content-sidebar {
    flex: 0 0 300px;
    width: 300px;
}

/* ==================== Sidebar ==================== */
.sidebar-panel {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.sidebar-panel h3 {
    font-size: 16px;
    color: var(--text);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
    font-weight: 600;
}

.sidebar-panel .panel-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 13px;
}

.sidebar-panel .panel-footer a {
    color: var(--primary);
}

/* Login Panel */
.login-panel .panel-title-bar {
    background: linear-gradient(135deg, #1890ff, #0052cc);
    color: #ffffff;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    border: none;
}

.login-panel h3 {
    background: linear-gradient(135deg, #1890ff, #0052cc);
    color: #ffffff;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    border-bottom: none;
}

.login-panel .sidebar-login-form {
    padding: 16px;
}

.login-panel .form-group {
    margin-bottom: 12px;
}

.login-panel .form-group input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.login-panel .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.login-panel .btn-login-submit {
    display: block;
    width: 100%;
    height: 36px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition);
}

.login-panel .btn-login-submit:hover {
    background: var(--primary-dark);
}

.login-panel .login-footer {
    text-align: right;
    padding: 0 16px 12px;
    font-size: 13px;
}

.login-panel .login-footer a {
    color: var(--primary);
}

/* Sign Panel */
.sign-panel .sign-info {
    padding: 16px;
}

.sign-panel .sign-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.sign-panel .sign-info strong {
    color: var(--accent);
}

.sign-panel .btn {
    margin: 0 16px 16px;
}

/* ==================== Announcement Panel ==================== */
.announcement-panel {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.announcement-panel h3 {
    font-size: 16px;
    color: var(--text);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-panel h3::before {
    content: '📢';
    font-size: 14px;
}

.announcement-list {
    padding: 4px 0;
}

.announcement-list li {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    transition: background var(--transition-fast);
}

.announcement-list li:last-child {
    border-bottom: none;
}

.announcement-list li:hover {
    background: var(--primary-light);
}

.announcement-list a {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.announcement-list .announcement-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.announcement-list .announcement-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-list .announcement-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-panel .empty-text {
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

/* Newsflash Panel */
.newsflash-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsflash-panel h3 .newsflash-icon,
.newsflash-panel h3 svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.newsflash-panel .newsflash-list {
    padding: 8px 0;
}

.newsflash-panel .newsflash-list li {
    padding: 10px 16px;
    border-bottom: 1px dotted var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.newsflash-panel .newsflash-list li:last-child {
    border-bottom: none;
}

.newsflash-panel .newsflash-list a {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

.newsflash-panel .newsflash-list a:hover {
    color: var(--primary);
}

.newsflash-panel .newsflash-list .newsflash-meta-small {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.newsflash-panel .empty-text {
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

/* Circles Panel */
.circles-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
}

.circles-panel .circles-list {
    padding: 8px 0;
}

.circles-panel .circles-list li {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
}

.circles-panel .circles-list li:last-child {
    border-bottom: none;
}

.circles-panel .circles-list a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circles-panel .circle-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-gray);
}

.circles-panel .circle-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.circles-panel .circle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.circles-panel .circle-name {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.circles-panel .circle-name:hover {
    color: var(--primary);
}

.circles-panel .circle-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.circles-panel .empty-text {
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

/* ==================== Footer ==================== */
.site-footer {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: #bbb;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 3px solid var(--primary);
}

.footer-content {
    display: flex;
    gap: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-content > div {
    flex: 1;
    min-width: 200px;
}

.footer-content h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-content h4::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-content p {
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
    line-height: 1.7;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #999;
    font-size: 13px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a::before {
    content: '›';
    color: var(--primary);
    font-size: 16px;
}

.footer-links ul li a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-contact p {
    color: #999;
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-bottom p {
    margin-bottom: 0;
    color: #777;
}

.footer-bottom a {
    color: #777;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: #bbb;
}

/* ==================== Card Styles ==================== */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* 卡片缩略图 */
.card-thumb {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--bg-gray);
}

.card-thumb a {
    position: absolute;
    inset: 0;
    display: block;
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.06);
}

/* 卡片角标 */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-block;
    background: rgba(24, 144, 255, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: #333333;
    transition: color var(--transition);
}

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

.card-excerpt {
    font-size: 13px;
    color: #999999;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999999;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-category {
    display: inline-block;
    background: #e6f7ff;
    color: #1890ff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Article Card */
.article-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.article-card .card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-gray);
    border-radius: 8px 8px 0 0;
}

.article-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.article-card:hover .card-thumb img {
    transform: scale(1.08);
}

.article-card .card-body {
    padding: 14px 16px;
    position: relative;
}

.article-card .card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(24, 144, 255, 0.9);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* 文章卡片缩略图别名样式 (.card-thumbnail) */
.article-card .card-thumbnail {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.article-card .card-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .card-thumbnail img {
    transform: scale(1.08);
}

/* Image Card */
.image-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.image-card .card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-gray);
    border-radius: 8px 8px 0 0;
}

.image-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.image-card:hover .card-thumb img {
    transform: scale(1.08);
}

.image-card .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.image-card:hover .image-overlay {
    opacity: 1;
}

/* Product Card */
.product-card .card-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-gray);
}

.product-card .card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .card-price {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
}

.product-card .card-price .original {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: normal;
}

/* ==================== Featured Articles ==================== */
.featured-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 12px;
    margin-bottom: 20px;
}

.featured-main {
    grid-row: 1 / 3;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-gray);
    box-shadow: var(--shadow-sm);
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-main:hover img {
    transform: scale(1.03);
}

.featured-main .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.featured-main .featured-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.featured-main .featured-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-main .featured-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    display: flex;
    gap: 12px;
}

.featured-secondary {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-gray);
    box-shadow: var(--shadow-sm);
}

.featured-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-secondary:hover img {
    transform: scale(1.05);
}

.featured-secondary .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 14px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.featured-secondary .featured-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.featured-secondary .featured-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.featured-secondary .featured-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

/* ==================== Collection Section ==================== */
.collection-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.collection-card {
    display: flex;
    gap: 15px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}

.collection-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.collection-thumb {
    flex: 0 0 160px;
    height: 110px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-gray);
    position: relative;
}

.collection-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.collection-thumb .collection-issue {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.collection-card .collection-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.collection-card .collection-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

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

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

.collection-card .collection-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.collection-card .collection-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.collection-card .collection-item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.collection-card .collection-item a {
    color: var(--text-light);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-card .collection-item a:hover {
    color: var(--primary);
}

/* ==================== Button Styles ==================== */
.btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-disabled,
.btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    border-color: #ccc;
}

.btn-disabled:hover,
.btn:disabled:hover {
    background: #ccc;
    color: #999;
}

/* ==================== Form Styles ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-error,
.form-group .error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #e53935;
}

textarea.form-control {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ==================== Badge/Tag ==================== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    line-height: 1.5;
    white-space: nowrap;
}

.badge-primary {
    background: var(--primary);
    color: #fff;
}

.badge-accent {
    background: var(--accent);
    color: #fff;
}

.badge-gray {
    background: var(--bg-gray);
    color: var(--text-light);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 15px;
    background: var(--bg-gray);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
    margin: 0 4px 4px 0;
}

.tag:hover {
    background: var(--primary);
    color: #fff;
}

.tag.active {
    background: var(--primary);
    color: #fff;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    background: var(--bg);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pagination .prev,
.pagination .next {
    padding: 0 14px;
}

.pagination .active span,
.pagination span.active,
.pagination .active a {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .disabled span,
.pagination .disabled a {
    color: var(--text-muted);
    cursor: not-allowed;
    background: var(--bg-gray);
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text);
}

/* ==================== Alert / Message ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    position: relative;
    line-height: 1.5;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    opacity: 0.5;
    line-height: 1;
    padding: 0;
}

.alert-close:hover {
    opacity: 1;
}

/* ==================== Section Headers ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.section-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 20px;
    background: var(--primary);
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 2px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    display: flex;
    align-items: center;
    flex: 1;
}

.section-more {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.section-more:hover {
    color: var(--primary);
}

/* ==================== Banner / Carousel ==================== */
.banner-carousel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-gray);
    height: 320px;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 320px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--transition-slow);
    border: none;
    padding: 0;
}

.banner-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
    transition: all var(--transition-slow);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-slow);
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.6);
}

.banner-arrow.prev {
    left: 15px;
}

.banner-arrow.next {
    right: 15px;
}

/* ==================== Article Grid ==================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Article List */
.article-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-thumb {
    flex: 0 0 160px;
    height: 110px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-gray);
}

.article-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-info {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-list-title a {
    color: var(--text);
}

.article-list-title a:hover {
    color: var(--primary);
}

/* ==================== Breed Grid ==================== */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.breed-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.breed-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.breed-card .breed-thumb {
    width: 100%;
    padding-top: 66%;
    position: relative;
    overflow: hidden;
    background: var(--bg-gray);
    border-radius: 8px 8px 0 0;
}

.breed-card .breed-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breed-card .breed-info {
    padding: 12px;
}

.breed-card .breed-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.breed-card .breed-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 6px 16px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-light);
    cursor: pointer;
    background: var(--bg);
    transition: all var(--transition);
}

.filter-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== Image Gallery ==================== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* Image Toolbar (Search + Sort) */
.image-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.image-search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 400px;
}

.image-search-form .form-control {
    flex: 1;
}

.image-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.image-sort .sort-label {
    color: var(--text-muted);
}

.image-sort .sort-link {
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.image-sort .sort-link:hover {
    color: var(--primary);
    background: rgba(26, 115, 232, 0.05);
}

.image-sort .sort-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Image Overlay - Enhanced */
.image-card .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-overlay-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    opacity: 0.8;
}

/* ==================== Image Detail ==================== */
.image-detail {
    margin-bottom: 30px;
}

.image-detail-main {
    display: flex;
    gap: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.image-detail-viewer {
    flex: 1;
    min-width: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 400px;
}

.image-detail-img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

.image-detail-info {
    flex: 0 0 340px;
    width: 340px;
    padding: 24px;
    border-left: 1px solid var(--border-light);
}

.image-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.4;
}

.image-detail-category {
    margin-bottom: 12px;
}

.image-detail-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Image Meta Table */
.image-meta-table {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-top: 16px;
}

.image-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-light);
    font-size: 13px;
}

.image-meta-row:last-child {
    border-bottom: none;
}

.image-meta-label {
    color: var(--text-muted);
    flex: 0 0 80px;
}

.image-meta-value {
    color: var(--text);
    text-align: right;
    flex: 1;
}

/* Image Download Options */
.image-download-options h3 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.download-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Image Share */
.image-share h3 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: opacity var(--transition);
}

.share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.share-weibo {
    background: #e6162d;
}

.share-qq {
    background: #12b7f5;
}

.share-wechat {
    background: #07c160;
}

/* Related Images */
.related-images {
    margin-top: 30px;
}

/* Page Info */
.pagination .page-info {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 10px;
    min-width: auto;
    padding: 0 8px;
}

.pagination .ellipsis {
    border: none;
    background: transparent;
    color: var(--text-muted);
    min-width: auto;
    padding: 0 4px;
    cursor: default;
}

/* ==================== Q&A List ==================== */
.qa-list {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.qa-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.qa-item:last-child {
    border-bottom: 1px solid var(--border-light);
}

/* 回答数量徽章 */
.qa-answer-count {
    flex: 0 0 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    border: 1px solid #d6e9ff;
}

.qa-answer-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.qa-answer-label {
    font-size: 11px;
    color: var(--primary);
    margin-top: 2px;
}

.qa-item .qa-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qa-title {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.5;
}

.qa-title a {
    color: var(--text);
    font-weight: 500;
}

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

.qa-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.qa-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qa-meta svg {
    width: 13px;
    height: 13px;
}

.qa-user {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    min-width: 80px;
}

.qa-username {
    color: var(--text-light);
    font-weight: 500;
    font-size: 13px;
}

.qa-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    overflow: hidden;
}

.qa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-content {
    flex: 1;
    min-width: 0;
}

.qa-title {
    font-size: 14px;
    margin-bottom: 6px;
}

.qa-title a {
    color: var(--text);
}

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

.qa-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.qa-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.qa-answer-count {
    flex: 0 0 auto;
    background: var(--primary);
    color: #fff;
    min-width: 36px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== Question Module ==================== */
/* Search Bar Block */
.search-bar-block {
    margin-bottom: 20px;
}

.search-bar-block .search-form {
    display: flex;
    gap: 8px;
}

.search-bar-block .search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.search-bar-block .search-input:focus {
    border-color: var(--primary);
}

.search-bar-block .search-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: background var(--transition);
}

.search-bar-block .search-btn:hover {
    background: var(--primary-dark);
}

/* Question List */
.question-list {
    margin-bottom: 20px;
}

.question-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.question-item:last-child {
    border-bottom: none;
}

.question-stats {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.question-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 6px 8px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.question-stats .stat-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.question-stats .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.question-body {
    flex: 1;
    min-width: 0;
}

.question-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.question-title a {
    color: var(--text);
}

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

.question-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.question-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.avatar-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Question Detail */
.question-detail {
    margin-bottom: 30px;
}

.question-detail-title {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text);
}

.question-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.question-detail-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.question-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 30px;
    word-break: break-word;
}

/* Answers Section */
.answers-section {
    margin-top: 20px;
}

.answers-header {
    font-size: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

.answers-list {
    margin-bottom: 30px;
}

.answer-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    position: relative;
}

.answer-item.answer-accepted {
    border-color: #4caf50;
    background: #f1f8e9;
}

.answer-accepted-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #4caf50;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
}

.answer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.answer-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-weight: 500;
}

.answer-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    word-break: break-word;
}

.answer-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: background var(--transition);
}

.btn-accept:hover {
    background: #388e3c;
}

.answers-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

/* Answer Form */
.answer-form-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.answer-form-section h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.answer-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
}

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

.answer-form .btn-primary {
    margin-top: 10px;
}

.answer-login-prompt {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.answer-login-prompt a {
    color: var(--primary);
    font-weight: 500;
}

/* Question Form */
.question-form {
    margin-bottom: 30px;
}

.question-form .form {
    background: #fff;
    padding: 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.question-form .form-group {
    margin-bottom: 18px;
}

.question-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.question-form label .required {
    color: #e53935;
}

.question-form input[type="text"],
.question-form select,
.question-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.question-form input[type="text"]:focus,
.question-form select:focus,
.question-form textarea:focus {
    border-color: var(--primary);
}

.question-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.question-form .form-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #e53935;
}

.question-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-gray);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-cancel:hover {
    background: var(--border-light);
    color: var(--text);
}

/* Related Questions Sidebar */
.related-questions {
    margin-top: 20px;
}

.related-questions h4 {
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.related-questions li {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--border-light);
}

.related-questions li:last-child {
    border-bottom: none;
}

.related-questions li a {
    color: var(--text);
}

.related-questions li a:hover {
    color: var(--primary);
}

/* Not Found */
.not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

.not-found p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.empty-state a {
    color: var(--primary);
}

/* ==================== VIP / Membership Panel ==================== */
.vip-panel {
    background: linear-gradient(135deg, #ff6b35, #e55a28);
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.vip-panel::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.vip-panel::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.vip-panel h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.vip-panel p {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.vip-panel .btn-vip {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform var(--transition);
    margin: 0 6px;
    position: relative;
    z-index: 1;
}

.vip-panel .btn-vip:hover {
    transform: scale(1.05);
}

.vip-panel .btn-vip-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: background var(--transition);
    margin: 0 6px;
    position: relative;
    z-index: 1;
}

.vip-panel .btn-vip-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* ==================== Sign-in Panel (Homepage) ==================== */
.signin-panel {
    background: var(--bg);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.signin-panel .signin-header {
    background: linear-gradient(135deg, #1890ff, #0052cc);
    color: #ffffff;
    padding: 16px 20px;
    height: 60px;
    box-sizing: border-box;
}

.signin-panel .signin-greeting {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.signin-panel .signin-quote {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 20px 0;
    margin-bottom: 12px;
    font-style: italic;
    text-align: center;
}

.signin-panel .signin-body {
    padding: 16px 20px;
    text-align: center;
}

.signin-panel .signin-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #ffffff;
    padding: 10px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition);
}

.signin-panel .signin-btn:hover {
    opacity: 0.9;
}

.signin-panel .signin-streak {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.signin-panel .signin-streak strong {
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
}

/* ==================== Latest Articles Sidebar ==================== */
.latest-articles-widget {
    background: var(--bg);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.latest-articles-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
}

.latest-articles-widget ul {
    padding: 8px 0;
}

.latest-articles-widget li {
    padding: 10px 16px;
    border-bottom: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-articles-widget li:last-child {
    border-bottom: none;
}

.latest-articles-widget .article-rank {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 20px;
}

.latest-articles-widget a {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

.latest-articles-widget a:hover {
    color: var(--primary);
}

/* ==================== Copyright Notice ==================== */
.copyright-section {
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.copyright-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
}

.copyright-section p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==================== 侧边栏面板通用样式 ==================== */
.sidebar-panel .panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-panel .panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-panel .panel-body {
    padding: 12px 16px;
}

/* 登录面板 */
.login-panel .panel-header {
    background: linear-gradient(135deg, #1890ff, #0052cc);
    border-bottom: none;
}

.login-panel .panel-header h3 {
    color: #fff;
}

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

.login-panel .form-group {
    margin-bottom: 12px;
}

.login-panel .form-control {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-panel .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    outline: none;
}

.login-panel .btn-block {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.login-panel .btn-block:hover {
    background: var(--primary-dark);
}

.login-panel .panel-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-panel .panel-footer a {
    color: var(--primary);
}

/* 签到面板 */
.signin-panel .signin-header {
    background: linear-gradient(135deg, #1890ff, #0052cc);
    padding: 16px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.signin-panel .signin-greeting {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.signin-panel .signin-quote {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-style: italic;
}

.signin-panel .signin-body {
    padding: 16px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.signin-panel .signin-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.signin-panel .signin-btn:hover {
    opacity: 0.9;
}

.signin-panel .signin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.signin-panel .signin-streak {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.signin-panel .signin-streak strong {
    color: var(--accent);
}

/* VIP面板 */
.vip-panel .vip-icon {
    text-align: center;
    margin-bottom: 8px;
}

.vip-panel .vip-icon svg {
    color: #fff;
}

/* 最新文章排行列表 */
.article-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    transition: background 0.2s;
}

.article-rank-list li:hover {
    background: #fafafa;
}

.article-rank-list li:last-child {
    border-bottom: none;
}

.article-rank-list .rank-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.article-rank-list li:nth-child(n+4) .rank-num {
    background: var(--text-muted);
}

.article-rank-list .rank-title {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
    text-decoration: none;
}

.article-rank-list .rank-title:hover {
    color: var(--primary);
}

/* 快讯列表 */
.newsflash-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.newsflash-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.newsflash-list li:last-child {
    border-bottom: none;
}

.newsflash-list .newsflash-title {
    display: block;
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
}

.newsflash-list .newsflash-title:hover {
    color: var(--primary);
}

.newsflash-list .newsflash-meta {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* 圈子列表 */
.circles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.circles-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.circles-list li:last-child {
    border-bottom: none;
}

.circles-list .circle-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.circles-list .circle-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circles-list .circle-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #0052cc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.circles-list .circle-info {
    flex: 1;
    min-width: 0;
}

.circles-list .circle-name {
    display: block;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.circles-list .circle-name:hover {
    color: var(--primary);
}

.circles-list .circle-meta {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

/* 版权声明 */
.copyright-section .panel-body {
    background: #f9f9f9;
}

.copyright-section p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== Loading Skeleton ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, #e8e8e8 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-image {
    width: 100%;
    padding-top: 56.25%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.skeleton-card .skeleton-image {
    padding-top: 56.25%;
}

.skeleton-card .skeleton-body {
    padding: 15px;
}

.skeleton-card .skeleton-body .skeleton-text {
    height: 14px;
    margin-bottom: 6px;
}

.skeleton-card .skeleton-body .skeleton-text:last-child {
    width: 40%;
}

@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==================== Image Lazy Loading ==================== */
img.lazy {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

img.lazy.loaded {
    opacity: 1;
}

.lazy-placeholder {
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.lazy-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), #4a90d9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    box-shadow: 0 4px 14px rgba(24, 144, 255, 0.4);
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* ==================== Hamburger Menu ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition-slow);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* ==================== Mobile Bottom Navigation ==================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 998;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.mobile-bottom-nav .bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 60px;
    flex: 1;
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-bottom-nav .bottom-nav-item.active {
    color: var(--primary);
}

.mobile-bottom-nav .bottom-nav-item:hover {
    color: var(--primary);
}

.mobile-bottom-nav .bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.mobile-bottom-nav .bottom-nav-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.mobile-bottom-nav .bottom-nav-label {
    font-size: 10px;
    line-height: 1;
}

/* ==================== Dropdown Menu (Generic) ==================== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 1001;
    padding: 4px 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

/* ==================== Modal ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-sm {
    max-width: 360px;
}

.modal-lg {
    max-width: 640px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text);
    margin: 0;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

/* Login Modal */
.modal-login .modal-body {
    padding: 24px;
}

.modal-login .login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.modal-login .login-tab {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    outline: none;
}

.modal-login .login-tab:hover {
    color: var(--primary);
}

.modal-login .login-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.modal-login .form-group {
    margin-bottom: 16px;
}

.modal-login .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.modal-login .form-group input:focus {
    border-color: var(--primary);
}

.modal-login .captcha-group {
    display: flex;
    gap: 8px;
}

.modal-login .captcha-group input {
    flex: 1;
}

.modal-login .captcha-group .captcha-img {
    flex: 0 0 100px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-login .send-code-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}

.modal-login .send-code-btn:hover {
    background: var(--primary-dark);
}

.modal-login .send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-login .login-agreement {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

.modal-login .login-agreement a {
    color: var(--primary);
}

.modal-login .social-login {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.modal-login .social-login p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.modal-login .social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.modal-login .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.modal-login .social-icon:hover {
    background: var(--border-light);
}

/* Payment Modal */
.modal-payment .payment-amount {
    text-align: center;
    padding: 20px 0;
}

.modal-payment .payment-amount .amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.modal-payment .payment-amount .amount-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-payment .payment-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-payment .payment-method {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    font-size: 14px;
    color: var(--text-light);
}

.modal-payment .payment-method:hover {
    border-color: var(--primary);
}

.modal-payment .payment-method.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.modal-payment .payment-qrcode {
    text-align: center;
    padding: 15px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.modal-payment .payment-qrcode-placeholder {
    width: 180px;
    height: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.modal-payment .payment-tip {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.modal-payment .payment-status {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Report Modal */
.modal-report .report-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-report .report-type {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    background: var(--bg);
    transition: all var(--transition-fast);
}

.modal-report .report-type:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-report .report-type.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.modal-report textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color var(--transition);
}

.modal-report textarea:focus {
    border-color: var(--primary);
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    color: #fff;
    box-shadow: var(--shadow-md);
    animation: toastSlideIn 0.3s ease, toastSlideOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
    max-width: 400px;
    text-align: center;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-success {
    background: #4caf50;
}

.toast-error {
    background: #f44336;
}

.toast-info {
    background: #2196f3;
}

.toast-warning {
    background: #ff9800;
}

.toast .toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ==================== Utility Classes ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.font-bold { font-weight: 600; }

.mt-0 { margin-top: 0; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-0 { padding: 0; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }

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

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

.hidden-mobile { display: block; }
.hidden-desktop { display: none; }

/* ==================== Dividers ==================== */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 20px 0;
}

.divider-dashed {
    border-top: 1px dashed var(--border);
    margin: 15px 0;
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

/* ==================== Shop Styles ==================== */

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Shop Activity List */
.shop-activity-list {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
    margin-bottom: 20px;
}

.shop-activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px dotted var(--border-light);
    font-size: 13px;
}

.shop-activity-item:last-child {
    border-bottom: none;
}

.shop-activity-item .activity-user {
    color: var(--primary);
    font-weight: 500;
}

.shop-activity-item .activity-action {
    color: var(--text-light);
}

.shop-activity-item .activity-product {
    color: var(--text);
    flex: 1;
}

.shop-activity-item .activity-time {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* Shop Orders Table */
.shop-orders-table-wrapper {
    overflow-x: auto;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.shop-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shop-orders-table thead {
    background: var(--bg-gray);
}

.shop-orders-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.shop-orders-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

.shop-orders-table tr:last-child td {
    border-bottom: none;
}

.shop-orders-table tr:hover td {
    background: var(--bg-gray);
}

.shop-orders-table .order-no {
    font-family: monospace;
    font-size: 13px;
    color: var(--text);
}

.shop-orders-table .order-time {
    font-size: 13px;
    white-space: nowrap;
}

/* Shop Detail */
.shop-detail {
    display: flex;
    gap: 30px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-bottom: 20px;
}

.shop-detail-image {
    flex: 0 0 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-gray);
}

.shop-detail-image img {
    width: 100%;
    display: block;
}

.shop-detail-info {
    flex: 1;
    min-width: 0;
}

.shop-detail-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.shop-detail-price {
    margin-bottom: 16px;
}

.shop-detail-price .price-current {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

.shop-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.shop-detail-desc {
    margin-bottom: 24px;
}

.shop-detail-desc h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.shop-detail-desc p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.shop-detail-actions {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.shop-orders-link {
    margin-bottom: 20px;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== Newsflash List ==================== */
.newsflash-search-bar {
    margin-bottom: 16px;
}

.newsflash-search-form {
    display: flex;
    gap: 10px;
}

.newsflash-search-form .form-control {
    flex: 1;
}

.newsflash-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.newsflash-sort-bar .sort-label {
    font-size: 13px;
    color: var(--text-light);
}

.newsflash-sort-bar .sort-item {
    padding: 4px 12px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: all var(--transition);
}

.newsflash-sort-bar .sort-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.newsflash-sort-bar .sort-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.newsflash-list {
    margin-bottom: 20px;
}

.newsflash-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.newsflash-item:last-child {
    border-bottom: none;
}

.newsflash-item-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.newsflash-item-title a {
    color: var(--text);
}

.newsflash-item-title a:hover {
    color: var(--primary);
}

.newsflash-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.newsflash-item-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== Newsflash Detail ==================== */
.newsflash-detail {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.newsflash-detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.newsflash-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.newsflash-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.newsflash-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.newsflash-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 10px 0;
}

.newsflash-detail-content p {
    color: var(--text);
    margin-bottom: 14px;
}

/* Related Newsflashes */
.related-newsflashes {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.related-newsflashes .section-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.related-newsflashes .section-header::after {
    width: 40px;
}

.related-newsflashes .section-title {
    font-size: 16px;
}

.related-newsflash-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-newsflash-list li {
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-newsflash-list li:last-child {
    border-bottom: none;
}

.related-newsflash-list a {
    font-size: 14px;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-newsflash-list a:hover {
    color: var(--primary);
}

.related-newsflash-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 15px;
    white-space: nowrap;
}

/* ==================== Circle Module Styles ==================== */

/* Circle Page */
.circle-page {
    margin-bottom: 20px;
}

/* Circle Hero */
.circle-hero {
    background: linear-gradient(135deg, #1a73e8, #4a90d9);
    border-radius: var(--radius);
    padding: 40px 30px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.circle-hero-content h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.circle-hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    margin-bottom: 20px;
}

.circle-hero-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.circle-hero-links .hero-link {
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: background var(--transition);
    text-decoration: none;
}

.circle-hero-links .hero-link:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

/* Circle Info Section */
.circle-info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.circle-info-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    border-left: 3px solid var(--primary);
}

.circle-info-card h3 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 10px;
}

.circle-info-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Circle Create Section */
.circle-create-section {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.circle-create-section h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 15px;
}

.circle-create-form .form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.circle-create-form .form-row .form-control {
    flex: 1;
}

.circle-create-form .form-row .btn {
    flex: 0 0 auto;
}

/* Circle Grid */
.circle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.circle-grid-sm {
    grid-template-columns: repeat(5, 1fr);
}

/* Circle Card */
.circle-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.circle-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.circle-card-body {
    padding: 16px;
}

.circle-card-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.circle-card-name a {
    color: var(--text);
}

.circle-card-name a:hover {
    color: var(--primary);
}

.circle-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.circle-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.circle-card-sm .circle-card-name {
    font-size: 14px;
    margin-bottom: 6px;
}

/* Circle Section */
.circle-section {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

/* Circle Detail Page */
.circle-detail-page {
    margin-bottom: 20px;
}

.circle-detail-header {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.circle-detail-info h2 {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 8px;
}

.circle-detail-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.circle-detail-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.circle-detail-stats strong {
    color: var(--accent);
    font-size: 16px;
}

.circle-detail-actions {
    flex-shrink: 0;
}

/* Topic Publish Form */
.topic-publish-form {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.topic-publish-form h4 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
}

.publish-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.publish-tab {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    outline: none;
}

.publish-tab:hover {
    color: var(--primary);
}

.publish-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.publish-form .form-group {
    margin-bottom: 12px;
}

.publish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publish-visibility {
    font-size: 13px;
    color: var(--text-muted);
}

/* Topic List */
.topic-list {
    margin-top: 10px;
}

.topic-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-gray);
}

.topic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.topic-content {
    flex: 1;
    min-width: 0;
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.topic-type-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 500;
    color: #fff;
}

.badge-say {
    background: #1a73e8;
}

.badge-ask {
    background: #e67e22;
}

.badge-vote {
    background: #9b59b6;
}

.badge-guess {
    background: #27ae60;
}

.topic-username {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.topic-circle {
    font-size: 12px;
    color: var(--text-muted);
}

.topic-circle a {
    color: var(--primary);
    font-size: 12px;
}

.topic-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.topic-title a {
    color: var(--text);
}

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

.topic-text {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.topic-text a {
    color: var(--text-light);
}

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

.topic-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.topic-time {
    margin-left: auto;
}

/* Topic Detail Page */
.topic-detail-page {
    margin-bottom: 20px;
}

.topic-detail-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 20px;
}

.topic-detail-header {
    margin-bottom: 15px;
}

.topic-detail-title {
    font-size: 22px;
    color: var(--text);
    margin-top: 10px;
    margin-bottom: 0;
}

.topic-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 15px;
}

.topic-detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-gray);
}

.topic-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-detail-author-info {
    display: flex;
    flex-direction: column;
}

.topic-detail-author-info .author-name {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.topic-detail-author-info .author-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.topic-detail-body {
    margin-bottom: 20px;
}

.topic-detail-content {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    word-break: break-word;
}

.topic-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 10px;
}

.topic-detail-actions {
    display: flex;
    gap: 15px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.action-icon {
    font-size: 14px;
}

.topic-detail-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.topic-detail-back {
    display: flex;
    gap: 10px;
}

/* Circle Sidebar Tabs */
.circle-sidebar-tabs {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.sidebar-tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-tab-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
    outline: none;
}

.sidebar-tab-btn:hover {
    color: var(--primary);
}

.sidebar-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.sidebar-tab-content {
    display: none;
    padding: 10px 0;
}

.sidebar-tab-content.active {
    display: block;
}

.sidebar-circle-list {
    padding: 0;
}

.sidebar-circle-list li {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-circle-list li:last-child {
    border-bottom: none;
}

.sidebar-circle-list a {
    display: flex;
    flex-direction: column;
}

.sidebar-circle-list .sc-name {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

/* ==================== 个人中心页面 ==================== */
.user-profile-page {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f5f5 100%);
    border-bottom: 1px solid var(--border-light);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #e0e0e0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-summary {
    flex: 1;
}

.profile-summary h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-summary p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.profile-summary p strong {
    color: var(--primary);
}

/* VIP 等级徽章 */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.vip-badge.vip-none {
    background: #f0f0f0;
    color: #999;
}

.vip-badge.vip-month {
    background: linear-gradient(135deg, #e6f7ff, #bae7ff);
    color: #1890ff;
}

.vip-badge.vip-season {
    background: linear-gradient(135deg, #f6ffed, #d9f7be);
    color: #52c41a;
}

.vip-badge.vip-year {
    background: linear-gradient(135deg, #fff7e6, #ffe7ba);
    color: #fa8c16;
}

.vip-badge svg {
    width: 14px;
    height: 14px;
}

/* 标签导航 */
.profile-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 2px solid var(--border-light);
    overflow-x: auto;
}

.profile-tabs .tab-item {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.profile-tabs .tab-item:hover {
    color: var(--primary);
}

.profile-tabs .tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* 标签内容区 */
.profile-tab-content {
    padding: 24px;
}

.profile-tab-content .panel {
    background: #fff;
    border-radius: var(--radius);
}

.profile-tab-content .panel > h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

/* 表单 */
.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
    background: #fff;
    color: var(--text);
}

.profile-form input[type="text"]:focus,
.profile-form input[type="email"]:focus,
.profile-form input[type="password"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}

.profile-form input[type="text"]:disabled {
    background: #f5f5f5;
    color: var(--text-muted);
    cursor: not-allowed;
}

.profile-form input[type="file"] {
    font-size: 13px;
}

.profile-form .help-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-form .field-error {
    display: block;
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
}

.profile-form .form-group.has-error input {
    border-color: #ff4d4f;
}

.profile-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.profile-form .btn-primary {
    background: var(--primary);
    color: #fff;
}

.profile-form .btn-primary:hover {
    background: var(--primary-dark);
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 8px;
    border: 2px solid var(--border);
}

.current-avatar {
    margin-top: 8px;
}

/* 密码强度条 */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-fill.weak {
    width: 33%;
    background: #ff4d4f;
}

.strength-fill.medium {
    width: 66%;
    background: #faad14;
}

.strength-fill.strong {
    width: 100%;
    background: #52c41a;
}

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.match-status {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.match-status.match {
    color: #52c41a;
}

.match-status.no-match {
    color: #ff4d4f;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    background: #fafafa;
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.data-table td:first-child {
    font-family: monospace;
    color: var(--primary);
}

/* 内容列表 */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.content-item:last-child {
    border-bottom: none;
}

.content-item .item-title {
    margin-bottom: 8px;
}

.content-item .item-title a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.content-item .item-title a:hover {
    color: var(--primary);
}

.content-item .item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 空状态 */
.empty-text {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .profile-header {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .profile-summary h2 {
        justify-content: center;
        font-size: 18px;
    }

    .profile-tabs {
        padding: 0 12px;
    }

    .profile-tabs .tab-item {
        padding: 12px 12px;
        font-size: 13px;
    }

    .profile-tab-content {
        padding: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .content-item .item-meta {
        gap: 10px;
    }
}

.sidebar-circle-list .sc-name:hover {
    color: var(--primary);
}

.sidebar-circle-list .sc-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Circle Filter Tabs */
.circle-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.login-prompt p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.login-prompt .btn {
    margin: 0 5px;
}

/* ==================== SVG Icons ==================== */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-sm {
    width: 14px;
    height: 14px;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.action-icon .icon,
.action-icon svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.empty-icon .icon,
.empty-icon svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.stat-icon .icon,
.stat-icon svg {
    width: 24px;
    height: 24px;
}

.nav-icon .icon,
.nav-icon svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.bottom-nav-icon .icon,
.bottom-nav-icon svg {
    width: 22px;
    height: 22px;
}

/* ==================== Circle Responsive ==================== */
@media (max-width: 1024px) {
    .circle-info-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .circle-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .circle-grid-sm {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .circle-hero {
        padding: 25px 20px;
    }

    .circle-hero-content h2 {
        font-size: 22px;
    }

    .circle-info-section {
        grid-template-columns: 1fr;
    }

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

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

    .circle-create-form .form-row {
        flex-direction: column;
    }

    .circle-create-form .form-row .btn {
        width: 100%;
    }

    .circle-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-detail-card {
        padding: 15px;
    }

    .topic-detail-title {
        font-size: 18px;
    }
}

/* =================== 大屏适配 (1366px+) =================== */
@media (min-width: 1366px) {
    .container {
        max-width: 1340px;
        padding: 0 20px;
    }

    .article-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .breed-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .image-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .featured-articles .featured-main {
        flex: 0 0 60%;
    }

    .featured-articles .featured-secondary {
        flex: 0 0 40%;
    }
}

/* =================== 超大屏适配 (1920px+) =================== */
@media (min-width: 1920px) {
    :root {
        --max-width: 1600px;
    }

    .container {
        max-width: 1600px;
    }

    .article-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .image-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==================== Responsive ==================== */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 12px;
    }

    .content-sidebar {
        flex: 0 0 280px;
        width: 280px;
    }

    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-detail-main {
        flex-direction: column;
    }

    .image-detail-info {
        flex: 1 1 auto;
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-light);
    }

    .image-detail-viewer {
        min-height: 300px;
    }

    .breed-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-bar {
        flex: 0 0 280px;
        width: 280px;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-content > div {
        flex: 0 0 calc(50% - 20px);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-detail {
        flex-direction: column;
    }

    .shop-detail-image {
        flex: 0 0 auto;
    }

    .featured-articles {
        grid-template-rows: 200px 200px;
    }

    .featured-main .featured-title {
        font-size: 18px;
    }

    .featured-secondary .featured-title {
        font-size: 14px;
    }

    .collection-section {
        grid-template-columns: 1fr;
    }

    .col-t-6 { flex: 0 0 50%; max-width: 50%; }
    .col-t-12 { flex: 0 0 100%; max-width: 100%; }

    .featured-articles .featured-main {
        flex: 0 0 55%;
    }

    .featured-articles .featured-secondary {
        flex: 0 0 45%;
    }
}

/* Mobile: max-width 768px */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }

    .hidden-desktop {
        display: block;
    }

    .container {
        max-width: 100% !important;
        padding: 0 12px !important;
    }

    /* Header Mobile */
    .header-top {
        font-size: 11px;
        line-height: 30px;
        height: 30px;
    }

    /* App风格Header */
    .header-top {
        display: none !important;
    }

    .header-main {
        height: 48px !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .header-main .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo h1 {
        font-size: 22px;
    }

    .search-bar {
        flex: 1 1 100%;
        width: 100%;
        order: 3;
    }

    /* Hamburger */
    .hamburger {
        display: flex;
    }

    /* Navigation Mobile */
    .main-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        z-index: 1000;
        transition: left var(--transition-slow);
        overflow-y: auto;
        padding-top: 60px;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        height: auto;
    }

    .main-nav .nav-list > li {
        height: auto;
    }

    .main-nav .nav-list > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        line-height: 1.4;
    }

    /* Nav dropdown mobile */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu li a {
        color: #ccc;
        padding-left: 30px;
    }

    .nav-dropdown-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .nav-dropdown-menu li:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .sub-nav {
        display: none;
    }

    .sub-nav.active {
        display: block;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        padding-top: 60px;
        overflow-y: auto;
        transition: left var(--transition-slow);
    }

    .sub-nav.active .sub-nav-list {
        flex-direction: column;
        height: auto;
    }

    .sub-nav.active .sub-nav-list li {
        height: auto;
    }

    .sub-nav.active .sub-nav-list li a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-light);
        line-height: 1.4;
    }

    /* Content Mobile */
    .content-wrapper {
        flex-direction: column;
    }

    .content-sidebar {
        flex: 1 1 auto;
        width: 100%;
    }

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

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

    .image-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .image-search-form {
        max-width: 100%;
    }

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

    .article-list-item {
        flex-direction: column;
    }

    .article-list-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }

    .banner-slides {
        height: 180px;
        padding-top: 0;
    }

    .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    /* Featured Articles Mobile */
    .featured-articles {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 150px 150px;
    }

    .featured-main {
        grid-row: 1;
    }

    .featured-main .featured-title {
        font-size: 16px;
    }

    .featured-secondary .featured-title {
        font-size: 13px;
    }

    /* Collection Section Mobile */
    .collection-section {
        grid-template-columns: 1fr;
    }

    .collection-card {
        flex-direction: column;
    }

    .collection-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 140px;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-content > div {
        flex: 1 1 auto;
    }

    .back-to-top {
        bottom: calc(70px + env(safe-area-inset-bottom));
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Mobile Bottom Nav - 修复底部导航栏不可见问题 */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 56px;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
        z-index: 9999 !important;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    body {
        padding-bottom: 60px !important;
    }

    .site-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .col-m-6 { flex: 0 0 50%; max-width: 50%; }
    .col-m-12 { flex: 0 0 100%; max-width: 100%; }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

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

    .shop-detail {
        padding: 20px;
    }

    .shop-detail-name {
        font-size: 18px;
    }

    /* Modal Mobile */
    .modal {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .modal-header {
        padding: 14px 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-footer {
        padding: 12px 18px;
    }

    .toast {
        max-width: 90vw;
    }

    /* 搜索框移动端隐藏，用搜索图标代替 */
    .header-search {
        display: none !important;
    }

    .header-search.mobile-show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 12px 16px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        animation: slideDown 0.2s ease;
    }

    .header-search.mobile-show form {
        display: flex;
        gap: 8px;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 导航菜单移动端隐藏 */
    .header-nav {
        display: none !important;
    }

    .header-nav.active {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        background: #fff;
        z-index: 1001;
        padding: 60px 0 20px;
        overflow-y: auto;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
        animation: slideInLeft 0.25s ease;
    }

    .header-nav.active .nav-list {
        flex-direction: column;
        padding: 0;
    }

    .header-nav.active .nav-list > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-nav.active .nav-list > li > a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
    }

    .header-nav.active .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }

    .header-nav.active .dropdown.open .dropdown-menu {
        display: block;
    }

    @keyframes slideInLeft {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    /* Header布局 */
    .header-main .container {
        flex-wrap: nowrap !important;
        gap: 12px !important;
        justify-content: space-between;
    }

    .header-logo {
        flex: 1 1 auto;
        text-align: left;
    }

    .header-logo img {
        height: 32px;
    }

    /* 汉堡菜单按钮 */
    .menu-toggle {
        display: flex !important;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* 搜索图标按钮 */
    .mobile-search-toggle {
        display: flex !important;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* 内容区域无padding */
    .content-wrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .content-main {
        padding: 12px 0 !important;
        width: 100% !important;
    }

    .content-sidebar {
        width: 100% !important;
        padding: 0 0 16px 0 !important;
        margin-top: 16px;
    }

    /* 卡片圆角更小 */
    .article-card,
    .breed-card,
    .image-card {
        border-radius: 6px !important;
    }

    /* 文章网格2列紧凑 */
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
    }

    .article-card .card-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .article-card .card-excerpt {
        display: none;
    }

    .article-card .card-meta {
        font-size: 11px;
    }

    /* 品种网格2列 */
    .breed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
    }

    /* 图片网格2列 */
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
    }

    /* 特色文章垂直堆叠 */
    .featured-articles {
        flex-direction: column;
    }

    .featured-articles .featured-main,
    .featured-articles .featured-secondary {
        flex: 1 1 100%;
    }

    .featured-secondary {
        flex-direction: row;
        gap: 10px;
    }

    .featured-secondary .featured-item {
        flex: 1;
    }

    /* section标题更小 */
    .section-title {
        font-size: 18px;
    }

    /* 侧边栏面板间距 */
    .sidebar-panel,
    .login-panel,
    .signin-panel,
    .vip-panel,
    .latest-articles-widget,
    .newsflash-panel,
    .circles-panel,
    .copyright-section,
    .announcement-panel {
        margin-bottom: 12px;
    }

    /* 底部导航栏触摸优化 */
    .mobile-bottom-nav .bottom-nav-item {
        font-size: 11px;
        height: 56px;
    }

    .mobile-bottom-nav .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-nav .bottom-nav-item.active {
        color: var(--primary);
    }

    /* 表单元素触摸优化 */
    input, select, textarea, button {
        font-size: 16px; /* 防止iOS缩放 */
    }

    /* 分页器触摸优化 */
    .pagination .page-link {
        padding: 10px 14px;
        min-width: 40px;
        min-height: 40px;
    }

    /* 问答列表触摸优化 */
    .qa-item {
        padding: 12px;
    }

    /* 面包屑隐藏 */
    .breadcrumb {
        display: none;
    }

    /* 轮播图高度 */
    .banner-carousel {
        height: 180px;
    }

    .banner-carousel .banner-slide img {
        height: 180px;
    }
}

/* Small Mobile: max-width 480px */
@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

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

    .breed-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 17px;
    }

    .card-title {
        font-size: 14px;
    }

    .banner-slides {
        height: 150px;
        padding-top: 0;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    .banner-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .vip-panel {
        padding: 15px;
    }

    .vip-panel .btn-vip,
    .vip-panel .btn-vip-secondary {
        display: block;
        margin: 6px 0;
    }

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

    .shop-detail {
        padding: 15px;
    }

    .shop-detail-name {
        font-size: 16px;
    }

    .shop-detail-price .price-current {
        font-size: 22px;
    }

    .featured-articles {
        grid-template-rows: 180px 120px 120px;
    }

    .featured-main .featured-title {
        font-size: 15px;
    }

    .featured-secondary .featured-title {
        font-size: 12px;
    }

    .collection-card {
        gap: 10px;
    }

    .collection-thumb {
        height: 120px;
    }

    .collection-card .collection-title {
        font-size: 14px;
    }

    .mobile-bottom-nav .bottom-nav-label {
        font-size: 9px;
    }

    .modal {
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh;
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    /* 单列布局 */
    .article-grid,
    .breed-grid,
    .image-grid {
        grid-template-columns: 1fr;
    }

    /* 特色小卡片垂直 */
    .featured-secondary {
        flex-direction: column;
    }

    /* 卡片标题更大 */
    .article-card .card-title {
        font-size: 14px;
    }

    /* section标题 */
    .section-title {
        font-size: 16px;
    }

    /* 搜索框 */
    .header-search input {
        height: 36px;
        font-size: 14px;
    }

    /* 底部导航文字保持显示 */
    .mobile-bottom-nav .bottom-nav-label {
        font-size: 9px;
    }

    /* 轮播图更矮 */
    .banner-carousel {
        height: 150px;
    }

    .banner-carousel .banner-slide img {
        height: 150px;
    }

    /* 侧边栏全宽 */
    .content-sidebar {
        width: 100%;
    }
}

/* ===================================================== */
/* 通知徽章 & 通知下拉面板                                */
/* ===================================================== */
.notification-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.notification-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
    border: 1px solid #d6e9ff;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 1px 3px rgba(24, 144, 255, 0.1);
}

.notification-toggle:hover {
    background: linear-gradient(135deg, #d6e9ff, #c2dbff);
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.25);
    transform: scale(1.05);
}

.notification-toggle .bell-icon {
    width: 18px;
    height: 18px;
    color: inherit;
    transition: transform 0.3s ease;
}

.notification-toggle:hover .bell-icon {
    transform: rotate(10deg);
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff3b30, #ff6b6b);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #ffffff;
    box-sizing: content-box;
    pointer-events: none;
    animation: notifBadgePulse 1.6s ease-in-out infinite;
    box-shadow: 0 1px 4px rgba(255, 59, 48, 0.4);
}

@keyframes notifBadgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* 通知下拉面板 */
.notification-panel {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    width: 340px;
    max-width: 92vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    z-index: 1100;
    padding: 0;
    overflow: hidden;
}

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    background: #fafbfc;
}

.notification-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.notification-mark-all {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.notification-mark-all:hover {
    text-decoration: underline;
}

.notification-panel-body {
    max-height: 380px;
    overflow-y: auto;
}

.notification-panel-footer {
    padding: 8px 14px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: #fafbfc;
}

.notification-panel-footer a {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
}

.notification-panel-footer a:hover {
    color: var(--primary);
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
    position: relative;
}

.notif-item:hover {
    background: var(--primary-light);
}

.notif-item.unread {
    background: #fff7f0;
}

.notif-item.unread:hover {
    background: #ffeede;
}

.notif-avatar-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.notif-avatar,
.notif-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.notif-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.notif-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.notif-dot {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
}

.notification-empty,
.notification-loading {
    padding: 30px 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* 移动端通知面板 */
@media (max-width: 768px) {
    .notification-panel {
        position: fixed;
        top: auto;
        bottom: 60px;
        right: 0;
        left: auto;
        width: 92vw;
        max-width: 360px;
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 0 12px rgba(0,0,0,0.18);
    }

    .notification-panel-body {
        max-height: 50vh;
    }
}

/* ===================================================== */
/* 圈子话题 - 点赞按钮                                    */
/* ===================================================== */
.topic-like-area {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    text-align: center;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.like-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.like-btn.liked {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.like-btn .icon {
    width: 18px;
    height: 18px;
}

.like-btn .like-count {
    font-weight: 600;
    min-width: 14px;
    text-align: center;
}

/* ===================================================== */
/* 圈子话题 - 评论区                                     */
/* ===================================================== */
.topic-comments-section {
    margin-top: 24px;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.comments-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comments-section-title .icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.comment-form-wrap {
    margin-bottom: 20px;
}

.comment-form {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px;
}

.comment-input {
    width: 100%;
    min-height: 60px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    box-sizing: border-box;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.comment-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.comment-counter {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-comment-submit {
    padding: 6px 16px;
    font-size: 13px;
}

.comment-login-tip {
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.comment-login-tip a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.comment-list {
    margin-top: 8px;
}

.comment-empty {
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-avatar.small {
    width: 28px;
    height: 28px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.comment-author-tag {
    display: inline-block;
    padding: 1px 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    line-height: 14px;
    border-radius: 3px;
}

.reply-arrow {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-word;
}

.comment-actions {
    margin-top: 6px;
}

.comment-reply-link {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
}

.comment-reply-link:hover {
    color: var(--primary);
}

.reply-list {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.reply-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-form-wrap {
    margin-top: 10px;
}

.reply-form .comment-input {
    min-height: 44px;
    font-size: 13px;
}

/* 移动端评论适配 */
@media (max-width: 768px) {
    .topic-comments-section {
        padding: 14px;
    }

    .comment-item {
        gap: 8px;
        padding: 12px 0;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .comment-content {
        font-size: 13px;
    }

    .notification-panel {
        width: 92vw;
    }
}

/* ==================== 订单状态徽章 ==================== */
.badge-warn {
    background: #ff9800;
    color: #fff;
}

.badge-info {
    background: #17a2b8;
    color: #fff;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

/* ==================== 订单确认页（checkout） ==================== */
.checkout-form {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.checkout-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.checkout-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.checkout-product-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-gray);
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-product-info {
    flex: 1;
    min-width: 0;
}

.checkout-product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}

.checkout-product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.checkout-product-price {
    text-align: right;
    flex-shrink: 0;
}

.checkout-product-price .price-current {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.checkout-product-stock {
    font-size: 12px;
    color: var(--text-muted);
}

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

.checkout-form-row:last-child {
    margin-bottom: 0;
}

.checkout-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.checkout-label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.checkout-input,
.checkout-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition);
    font-family: inherit;
}

.checkout-input:focus,
.checkout-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.checkout-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.6;
}

.checkout-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.checkout-summary {
    background: #fafafa;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
}

.checkout-summary-row:not(:last-child) {
    border-bottom: 1px dashed var(--border-light);
}

.checkout-summary-total {
    padding-top: 14px;
    margin-top: 6px;
    border-top: 2px solid var(--border) !important;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.checkout-summary-total .price-current {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

.checkout-summary-price {
    color: var(--text);
    font-weight: 500;
}

.checkout-submit-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}

/* ==================== 订单详情页（order_detail） ==================== */
.order-detail-page {
    max-width: 800px;
    margin: 0 auto;
}

.order-detail-page .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-status-badge {
    font-size: 13px;
    padding: 4px 12px;
}

.order-cancelled-notice {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 14px 20px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    margin-bottom: 16px;
}

/* 订单状态流程 */
.order-status-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px 20px;
    margin-bottom: 16px;
    position: relative;
}

.order-status-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.order-status-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all var(--transition);
    z-index: 1;
}

.order-status-step.active .order-status-step-dot {
    background: var(--primary);
    color: #fff;
}

.order-status-step-label {
    font-size: 12px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.order-status-step.active .order-status-step-label {
    color: var(--primary);
    font-weight: 600;
}

.order-status-step-line {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.order-status-step-line.active {
    background: var(--primary);
}

/* 订单信息卡片 */
.order-detail-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.order-detail-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.order-detail-info-row {
    display: flex;
    padding: 6px 0;
    font-size: 14px;
}

.order-detail-label {
    flex: 0 0 100px;
    color: var(--text-light);
}

.order-detail-value {
    flex: 1;
    color: var(--text);
    word-break: break-all;
}

.order-detail-value.order-no {
    font-family: monospace;
    font-size: 13px;
}

.order-detail-value.price-current {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
}

/* 订单操作区 */
.order-detail-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* 支付方式选择 */
.order-pay-section {
    width: 100%;
    margin-bottom: 8px;
}

.order-pay-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}

.order-pay-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.order-pay-method {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
    color: var(--text-light);
    background: var(--bg);
}

.order-pay-method:hover {
    border-color: var(--primary-light);
}

.order-pay-method.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 支付二维码弹窗（pay-modal） ==================== */
.pay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.pay-modal-box {
    position: relative;
    width: 380px;
    max-width: 90%;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: payModalIn 0.25s ease;
}

@keyframes payModalIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pay-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.pay-modal-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    transition: color var(--transition);
}

.pay-modal-close:hover {
    color: var(--text);
}

.pay-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.pay-modal-amount {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.pay-modal-amount .price-current {
    color: #e74c3c;
    font-size: 22px;
    font-weight: 700;
}

.pay-modal-qrcode {
    margin: 0 auto 16px;
    width: 220px;
    height: 220px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.pay-modal-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pay-modal-tip {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.pay-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ==================== 响应式：订单/支付页 ==================== */
@media (max-width: 768px) {
    .checkout-form,
    .order-detail-page {
        max-width: 100%;
    }

    .checkout-card,
    .order-detail-card {
        padding: 16px;
    }

    .checkout-product {
        flex-wrap: wrap;
    }

    .checkout-product-image {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .checkout-product-price {
        width: 100%;
        text-align: left;
        padding-left: 80px;
        margin-top: -8px;
    }

    .checkout-submit-bar {
        flex-direction: column-reverse;
    }

    .checkout-submit-bar .btn {
        width: 100%;
    }

    .order-detail-label {
        flex: 0 0 84px;
    }

    .order-status-flow {
        padding: 16px 8px;
    }

    .order-status-step-dot {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .order-status-step-label {
        font-size: 11px;
    }

    .order-pay-methods {
        flex-direction: column;
    }

    .order-pay-method {
        width: 100%;
        justify-content: center;
    }

    .order-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .order-detail-actions .btn {
        width: 100%;
    }

    .pay-modal-box {
        width: 92%;
    }

    .pay-modal-qrcode {
        width: 180px;
        height: 180px;
    }
}

/* ========================================================================== */
/* 首页视觉重构：对齐 chongwuwang.com.cn 的 PC / H5 页面节奏                 */
/* ========================================================================== */
.logo-brand-copy,
.header-inline-auth,
.mobile-user-toggle {
    display: none;
}

body.page-home {
    --primary: #168fe4;
    --primary-dark: #0878c5;
    --primary-light: #edf7ff;
    --text: #222222;
    --text-light: #666666;
    --text-muted: #a0a5aa;
    --bg-gray: #f5f7f9;
    --border: #e7e9ec;
    --border-light: #eef0f2;
    --radius: 4px;
    --radius-lg: 4px;
    background: #f5f7f9;
    color: #222;
    overflow-x: hidden;
}

.page-home .container {
    width: 100%;
    max-width: 1100px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.page-home .header-top {
    display: none;
}

.page-home .site-header {
    top: 0;
    background: #fff;
    box-shadow: 0 1px 8px rgba(30, 45, 60, 0.06);
}

.page-home .header-main {
    height: 64px;
    padding: 0;
    border-bottom: 0;
    box-shadow: none;
}

.page-home .header-main .container {
    gap: 0;
    justify-content: flex-start;
}

.page-home .header-logo {
    flex: 0 0 auto;
    margin-right: 26px;
}

.page-home .header-logo > a {
    gap: 8px;
    min-width: 112px;
    color: #111;
}

.page-home .header-logo .logo-img,
.page-home .logo img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
}

.page-home .logo-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.page-home .logo-brand-copy strong {
    max-width: 116px;
    overflow: hidden;
    color: #111;
    font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.page-home .logo-brand-copy small {
    margin-top: 2px;
    color: #777;
    font-size: 7px;
    letter-spacing: -0.2px;
}

.page-home .header-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.page-home .header-nav .nav-list {
    height: 64px;
    gap: 0;
}

.page-home .header-nav .nav-list > li,
.page-home .header-nav .nav-list > li > a {
    height: 64px;
}

.page-home .header-nav .nav-list > li > a {
    padding: 0 12px;
    background: transparent;
    color: #222;
    font-size: 15px;
    font-weight: 400;
    line-height: 64px;
}

.page-home .header-nav .nav-list > li > a:hover {
    background: transparent;
    color: var(--primary);
}

.page-home .header-nav .nav-list > li:first-child > a {
    position: relative;
}

.page-home .header-nav .nav-list > li:first-child > a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 9px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.page-home .header-search {
    flex: 0 0 214px;
    width: 214px;
    margin-left: 16px;
}

.page-home .header-search form {
    height: 34px;
    border: 0;
    border-radius: 3px;
    background: #f5f5f5;
}

.page-home .header-search .search-input {
    min-width: 0;
    padding: 0 12px;
    background: transparent;
    font-size: 13px;
}

.page-home .header-search .search-btn {
    flex: 0 0 48px;
    border-radius: 0;
    background: transparent;
    color: #333;
    font-size: 13px;
}

.page-home .header-inline-auth {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.page-home .header-inline-auth a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 3px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
}

.page-home .header-inline-auth a:hover {
    background: #eef6fc;
    color: var(--primary);
}

.page-home .sub-nav {
    height: 55px;
    border-top: 1px solid #f3f4f5;
    border-bottom: 0;
    background: #fff;
}

.page-home .sub-nav .container,
.page-home .sub-nav-list,
.page-home .sub-nav-list > li {
    height: 55px;
}

.page-home .sub-nav-list {
    gap: 0;
}

.page-home .sub-nav-list > li > a {
    height: 55px;
    padding: 0 14px;
    color: #444;
    font-size: 13px;
    line-height: 55px;
}

.page-home .main-content {
    padding: 16px 0 40px;
}

.page-home .content-wrapper {
    display: block;
}

.page-home .content-main {
    width: 100%;
    max-width: none;
    padding: 0;
}

.page-home .content-sidebar {
    display: none;
}

.page-home .home-banner-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    height: 443px;
    margin: 0 0 24px;
}

.page-home .home-banner-main,
.page-home .home-banner-side-card {
    border: 0;
    border-radius: 4px;
    box-shadow: none;
}

.page-home .home-banner-main {
    min-width: 0;
}

.page-home .home-banner-side {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 16px;
    width: auto;
    max-width: none;
    min-width: 0;
}

.page-home .home-banner-side-card {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background: #e9ecef;
    color: #fff;
}

.page-home .home-banner-side-card:hover {
    border-color: transparent;
    box-shadow: none;
    color: #fff;
    transform: none;
}

.page-home .home-banner-side-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-home .home-banner-side-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(16, 22, 28, 0.72) 100%);
}

.page-home .home-banner-side-tag,
.page-home .home-banner-tag {
    position: relative;
    align-self: flex-start;
    padding: 0 0 0 10px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    backdrop-filter: none;
}

.page-home .home-banner-side-tag::before,
.page-home .home-banner-tag::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 3px;
    background: #87c8e9;
}

.page-home .home-banner-side-title {
    margin-top: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-line-clamp: 2;
}

.page-home .home-banner-side-card:hover .home-banner-side-title {
    color: #fff;
}

.page-home .home-banner-caption {
    padding: 22px 20px 24px;
}

.page-home .home-banner-title {
    margin: 12px 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.page-home .home-banner-author::before {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.36);
    box-shadow: none;
}

.page-home .home-banner-dots {
    top: 22px;
    right: 24px;
    bottom: auto;
    left: auto;
    gap: 8px;
    transform: none;
}

.page-home .home-banner-dot,
.page-home .home-banner-dot.active {
    width: 20px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.page-home .home-banner-dot.active {
    background: #fff;
}

.page-home .home-banner-progress {
    display: none;
}

.page-home .featured-articles {
    display: flex;
    gap: 16px;
    margin: 0 0 24px;
    overflow: hidden;
}

.page-home .featured-articles .featured-main,
.page-home .featured-articles .featured-secondary {
    display: contents;
    flex: none;
}

.page-home .featured-articles .card {
    position: relative;
    flex: 1 1 0;
    height: 217px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #edf0f2;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.page-home .featured-articles .card-thumb,
.page-home .featured-main .card-thumb,
.page-home .featured-secondary .card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-top: 0;
    border-radius: 0;
}

.page-home .featured-articles .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-home .featured-articles .card-body,
.page-home .featured-articles .card-badge {
    display: none;
}

.page-home .home-promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    height: 200px;
    margin: 0 0 24px;
    padding: 28px 54px;
    overflow: hidden;
    border: 1px solid #e3efcf;
    border-radius: 4px;
    background: linear-gradient(100deg, #f4ffdf 0%, #ecfbd8 55%, #f8ffe9 100%);
    color: #173319;
}

.page-home .home-promo-banner:hover {
    color: #173319;
}

.page-home .home-promo-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.page-home .home-promo-kicker {
    margin-bottom: 8px;
    color: #5c8850;
    font-size: 14px;
    letter-spacing: 0.14em;
}

.page-home .home-promo-copy strong {
    font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.page-home .home-promo-subtitle {
    margin-top: 12px;
    color: #4f6750;
    font-size: 18px;
}

.page-home .home-promo-art {
    position: absolute;
    right: 48px;
    bottom: 2px;
    width: 330px;
    height: 178px;
    color: #557f44;
}

.page-home .home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 780px) 300px;
    gap: 20px;
    align-items: start;
}

.page-home .home-content-primary,
.page-home .home-content-secondary {
    min-width: 0;
}

.page-home .home-content-primary > .section-header,
.page-home .home-content-secondary > .section-header,
.page-home .home-content-secondary .collection-section > .section-header {
    min-height: 64px;
    margin: 16px 0 0;
    padding: 17px 20px;
    border-bottom: 1px solid #eef0f2;
    border-radius: 4px 4px 0 0;
    background: #fff;
}

.page-home .home-content-primary > .section-header:first-child,
.page-home .home-content-secondary > .section-header:first-child {
    margin-top: 0;
}

.page-home .section-header .section-title {
    padding-left: 0;
    color: #222;
    font-size: 22px;
    font-weight: 600;
}

.page-home .section-header .section-title::before {
    display: none;
}

.page-home .section-header::before,
.page-home .section-header::after {
    display: none;
}

.page-home .section-header .section-more {
    min-height: 34px;
    padding: 0 16px;
    border-radius: 18px;
    background: #f6f7f8;
    color: #858b91;
}

.page-home .home-content-primary .article-grid {
    display: block;
    margin: 0;
    padding: 0 16px;
    border-radius: 0 0 4px 4px;
    background: #fff;
}

.page-home .home-content-primary .article-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    min-height: 172px;
    padding: 16px 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-home .home-content-primary .article-card:last-child {
    border-bottom: 0;
}

.page-home .home-content-primary .article-card .card-thumb {
    width: 190px;
    height: 140px;
    padding-top: 0;
    border-radius: 4px;
}

.page-home .home-content-primary .article-card .card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 7px 0 5px;
}

.page-home .home-content-primary .article-card .card-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.page-home .home-content-primary .article-card .card-excerpt {
    margin-bottom: 10px;
    color: #777;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
}

.page-home .home-content-primary .article-card .card-meta {
    margin-top: auto;
    color: #a3a8ad;
    font-size: 12px;
}

.page-home .home-content-primary .article-card .card-badge {
    border-radius: 2px;
    background: rgba(232, 245, 252, 0.94);
    box-shadow: none;
    color: #558ba8;
    font-weight: 400;
}

.page-home .home-content-primary .filter-tabs {
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f5;
    background: #fff;
}

.page-home .home-content-primary .filter-tab {
    padding: 5px 15px;
    border: 0;
    background: #f5f6f7;
}

.page-home .home-content-primary .filter-tab.active {
    background: #dcebfb;
    color: #168fe4;
}

.page-home .home-content-primary .breed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 16px;
    border-radius: 0 0 4px 4px;
    background: #eef0f2;
}

.page-home .home-content-primary .breed-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 118px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.page-home .home-content-primary .breed-card:hover {
    box-shadow: none;
    transform: none;
}

.page-home .home-content-primary .breed-card .breed-thumb {
    width: 118px;
    height: 118px;
    padding-top: 0;
    border-radius: 0;
}

.page-home .home-content-primary .breed-card .breed-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 12px 14px;
    text-align: left;
}

.page-home .home-content-primary .breed-card .breed-name,
.page-home .home-content-primary .breed-card .breed-desc {
    text-align: left;
}

.page-home .home-content-primary .breed-card .breed-name {
    margin-bottom: 5px;
}

.page-home .home-content-primary .breed-card .breed-info .badge {
    align-self: flex-start;
    margin-bottom: 5px;
}

.page-home .home-content-primary .image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 16px;
    border-radius: 0 0 4px 4px;
    background: #fff;
}

.page-home .home-content-primary .image-card {
    border-radius: 4px;
    box-shadow: none;
}

.page-home .home-content-primary .image-card .card-thumb {
    height: auto;
    aspect-ratio: 4 / 3;
    padding-top: 0;
    border-radius: 4px;
}

.page-home .home-content-primary .image-card .image-overlay {
    opacity: 1;
}

.page-home .home-content-secondary .qa-list {
    margin: 0;
    padding: 0 14px;
    gap: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: none;
}

.page-home .home-content-secondary .qa-item {
    gap: 10px;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    border-radius: 0;
    box-shadow: none;
}

.page-home .home-content-secondary .qa-item:hover {
    border-color: #eef0f2;
    box-shadow: none;
    transform: none;
}

.page-home .home-content-secondary .qa-answer-count {
    flex-basis: 44px;
    padding: 8px 4px;
    border: 0;
}

.page-home .home-content-secondary .qa-answer-count .qa-answer-num {
    font-size: 18px;
}

.page-home .home-content-secondary .qa-title {
    font-size: 14px;
    font-weight: 500;
}

.page-home .home-content-secondary .collection-section {
    display: block;
    grid-template-columns: none;
    margin: 16px 0 0;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}

.page-home .home-content-secondary .collection-section > .section-header {
    margin-top: 0;
}

.page-home .home-content-secondary .collection-viewport {
    margin: 0;
    padding: 0 14px 14px;
    overflow: visible;
}

.page-home .home-content-secondary .collection-track {
    display: block;
    transform: none !important;
}

.page-home .home-content-secondary .collection-slide {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    border-radius: 4px;
    box-shadow: none;
}

.page-home .home-content-secondary .collection-slide:nth-child(n + 3) {
    display: none;
}

.page-home .home-content-secondary .collection-cover {
    padding-top: 54%;
}

.page-home .home-content-secondary .collection-arrow {
    display: none;
}

@media (max-width: 1199px) and (min-width: 769px) {
    .page-home .container {
        width: calc(100% - 24px);
        max-width: 1100px !important;
    }

    .page-home .header-nav .nav-list > li > a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 14px;
    }

    .page-home .header-search {
        flex-basis: 190px;
        width: 190px;
    }

    .page-home .header-inline-auth {
        display: none;
    }

    .page-home .header-search.mobile-show {
        width: 100% !important;
        max-width: none;
        margin: 0;
        flex-basis: auto;
    }

    .page-home .home-banner-row {
        height: clamp(340px, 36vw, 443px);
    }

    .page-home .home-content-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    body.page-home {
        padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important;
        font-size: 14px;
    }

    .page-home .container {
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .page-home .site-header {
        height: 91px;
    }

    .page-home .header-main {
        height: 91px !important;
        padding: 0 !important;
        border-bottom: 0;
    }

    .page-home .header-main .container {
        display: grid !important;
        grid-template-columns: auto 1fr 44px 44px;
        grid-template-rows: 44px 47px;
        gap: 0 !important;
        padding: 0 12px !important;
    }

    .page-home .hamburger {
        display: none !important;
    }

    .page-home .header-logo {
        grid-row: 1;
        grid-column: 1 / 3;
        width: auto;
        margin: 0;
        text-align: left;
    }

    .page-home .header-logo > a {
        min-width: 0;
        gap: 6px;
    }

    .page-home .header-logo .logo-img,
    .page-home .logo img {
        width: 30px;
        height: 30px;
    }

    .page-home .logo-brand-copy strong {
        max-width: 108px;
        font-size: 18px;
    }

    .page-home .logo-brand-copy small {
        font-size: 6px;
    }

    .page-home .header-inline-auth {
        display: none;
    }

    .page-home .header-search.mobile-show {
        width: 100% !important;
        max-width: none;
        margin: 0;
        flex-basis: auto;
    }

    .page-home .mobile-search-toggle,
    .page-home .mobile-user-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: #202326;
    }

    .page-home .mobile-search-toggle {
        grid-row: 1;
        grid-column: 3;
    }

    .page-home .mobile-user-toggle {
        grid-row: 1;
        grid-column: 4;
    }

    .page-home .header-nav {
        display: block !important;
        grid-row: 2;
        grid-column: 1 / -1;
        width: calc(100% + 24px);
        min-width: 0;
        margin-left: -12px;
        overflow-x: auto;
        overflow-y: hidden;
        border-top: 1px solid #f4f4f4;
        background: #fff;
        scrollbar-width: none;
    }

    .page-home .header-nav::-webkit-scrollbar {
        display: none;
    }

    .page-home .header-nav .nav-list {
        display: flex !important;
        flex-direction: row !important;
        width: max-content;
        min-width: 100%;
        height: 47px !important;
        padding: 0 12px !important;
    }

    .page-home .header-nav .nav-list > li {
        display: flex;
        flex: 0 0 auto;
        width: auto !important;
        height: 47px !important;
        border: 0 !important;
    }

    .page-home .header-nav .nav-list > li > a {
        display: flex !important;
        align-items: center;
        height: 47px !important;
        padding: 0 12px !important;
        color: #222;
        font-size: 15px !important;
        line-height: 47px !important;
        white-space: nowrap;
    }

    .page-home .header-nav .nav-list > li:first-child > a::after {
        right: 12px;
        bottom: 4px;
        left: 12px;
    }

    .page-home .header-nav .dropdown-menu,
    .page-home .sub-nav {
        display: none !important;
    }

    .page-home .main-content {
        padding: 0 0 24px;
    }

    .page-home .content-main {
        padding: 0 !important;
    }

    .page-home .home-banner-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 6px;
        width: auto;
        height: 147px;
        margin: 10px 6px 8px;
    }

    .page-home .home-banner-main {
        height: 147px;
    }

    .page-home .home-banner-side {
        display: flex;
        flex-direction: column;
        gap: 6px;
        height: 147px;
    }

    .page-home .home-banner-side-card {
        min-height: 0;
    }

    .page-home .home-banner-caption,
    .page-home .home-banner-side-info,
    .page-home .home-banner-arrow,
    .page-home .home-banner-dots,
    .page-home .home-banner-progress {
        display: none;
    }

    .page-home .featured-articles {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px;
        margin: 0 0 8px;
        padding: 0 6px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: #b5b9bd transparent;
    }

    .page-home .featured-articles .featured-main,
    .page-home .featured-articles .featured-secondary {
        display: contents !important;
    }

    .page-home .featured-articles .card {
        flex: 0 0 238px;
        width: 238px;
        height: 147px;
        min-height: 147px;
        max-height: 147px;
        scroll-snap-align: start;
    }

    .page-home .featured-articles .card-thumb,
    .page-home .featured-main .card-thumb,
    .page-home .featured-secondary .card-thumb {
        width: 100%;
        height: 147px;
        padding-top: 0 !important;
    }

    .page-home .home-promo-banner {
        height: 84px;
        margin: 0 6px 12px;
        padding: 12px 18px;
    }

    .page-home .home-promo-kicker {
        display: none;
    }

    .page-home .home-promo-copy strong {
        font-size: 24px;
    }

    .page-home .home-promo-subtitle {
        margin-top: 4px;
        font-size: 12px;
    }

    .page-home .home-promo-art {
        right: -8px;
        width: 142px;
        height: 82px;
    }

    .page-home .home-content-grid {
        display: block;
    }

    .page-home .home-content-primary > .section-header,
    .page-home .home-content-secondary > .section-header,
    .page-home .home-content-secondary .collection-section > .section-header {
        min-height: 54px;
        margin: 12px 6px 0;
        padding: 12px;
    }

    .page-home .home-content-primary > .section-header:first-child,
    .page-home .home-content-secondary > .section-header:first-child {
        margin-top: 0;
    }

    .page-home .section-header .section-title {
        font-size: 18px;
    }

    .page-home .section-header .section-more {
        min-height: 32px;
        padding: 0 14px;
        font-size: 12px;
    }

    .page-home .home-content-primary .article-grid {
        margin: 0 6px;
        padding: 0 12px;
    }

    .page-home .home-content-primary .article-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        min-height: 106px;
        padding: 14px 0;
    }

    .page-home .home-content-primary .article-card .card-thumb {
        width: 104px;
        height: 78px;
        padding-top: 0 !important;
        border-radius: 3px;
    }

    .page-home .home-content-primary .article-card .card-body {
        padding: 0;
    }

    .page-home .home-content-primary .article-card .card-title {
        margin-bottom: 8px;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
    }

    .page-home .home-content-primary .article-card .card-excerpt,
    .page-home .home-content-primary .article-card .card-meta span:nth-child(n + 3) {
        display: none;
    }

    .page-home .home-content-primary .article-card .card-meta {
        gap: 10px;
        margin-top: auto;
        font-size: 10px;
    }

    .page-home .home-content-primary .article-card .card-badge {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 10px;
    }

    .page-home .home-content-primary .filter-tabs {
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0 6px;
        padding: 10px 12px;
        overflow-x: auto;
    }

    .page-home .home-content-primary .filter-tab {
        flex: 0 0 auto;
        padding: 5px 12px;
        font-size: 12px;
    }

    .page-home .home-content-primary .breed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        margin: 0 6px;
        padding: 10px;
        background: #fff;
    }

    .page-home .home-content-primary .breed-card {
        display: block;
        min-height: 0;
        overflow: hidden;
        border: 1px solid #eef0f2;
        border-radius: 4px !important;
    }

    .page-home .home-content-primary .breed-card .breed-thumb {
        width: 100%;
        height: auto;
        padding-top: 70%;
    }

    .page-home .home-content-primary .breed-card .breed-info {
        padding: 9px 10px 10px;
    }

    .page-home .home-content-primary .breed-card .breed-name {
        font-size: 14px;
    }

    .page-home .home-content-primary .breed-card .breed-desc {
        display: none;
    }

    .page-home .home-content-primary .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        margin: 0 6px;
        padding: 10px;
    }

    .page-home .home-content-primary .image-card {
        border-radius: 4px !important;
    }

    .page-home .home-content-primary .image-card .image-overlay {
        padding: 9px;
    }

    .page-home .home-content-primary .image-card .card-thumb {
        height: auto;
        aspect-ratio: 4 / 3;
        padding-top: 0 !important;
    }

    .page-home .home-content-primary .image-card .image-overlay-title {
        font-size: 12px;
    }

    .page-home .home-content-secondary {
        margin-top: 12px;
    }

    .page-home .home-content-secondary .qa-list {
        margin: 0 6px;
    }

    .page-home .home-content-secondary .qa-answer-count {
        flex-basis: 40px;
    }

    .page-home .home-content-secondary .collection-section {
        margin: 12px 6px 0;
    }

    .page-home .home-content-secondary .collection-section > .section-header {
        margin: 0;
    }

    .page-home .home-content-secondary .collection-viewport {
        padding: 0 12px 12px;
    }

    .page-home .site-footer,
    .page-home .back-to-top {
        display: none;
    }

    .page-home .mobile-bottom-nav {
        display: flex !important;
        height: calc(60px + env(safe-area-inset-bottom));
        padding: 0 4px env(safe-area-inset-bottom);
        border-top: 1px solid #e9ebed;
        box-shadow: 0 -3px 12px rgba(20, 35, 50, 0.08);
    }

    .page-home .mobile-bottom-nav .bottom-nav-item {
        flex: 1 1 14.285%;
        min-width: 0;
        height: 60px;
        padding: 5px 0 4px;
        color: #262a2e;
        font-size: 10px;
    }

    .page-home .mobile-bottom-nav .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .page-home .mobile-bottom-nav .bottom-nav-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .page-home .mobile-bottom-nav .bottom-nav-create {
        position: relative;
        color: var(--primary);
    }

    .page-home .bottom-nav-plus {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-top: -9px;
        border-radius: 7px;
        background: #1677e8;
        box-shadow: 0 4px 10px rgba(22, 119, 232, 0.28);
        color: #fff;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
    }

    .page-home .bottom-nav-create .bottom-nav-label {
        margin-top: 1px;
        color: #1677e8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .home-banner-slide,
    .page-home .home-banner-link img,
    .page-home .collection-track {
        transition: none !important;
        animation: none !important;
    }
}

/* =============================================================
 * 宠友圈子 UI 重构：PC / H5
 * ============================================================= */
body.page-circle {
    --circle-primary: #168fe4;
    --circle-primary-dark: #0875c8;
    --circle-primary-soft: #eaf5fe;
    --circle-accent: #ff7a45;
    --circle-ink: #1e2732;
    --circle-muted: #74808d;
    --circle-line: #e7ecf1;
    --circle-surface: #ffffff;
    --circle-page-bg: #f4f7fa;
    overflow-x: hidden;
    background: var(--circle-page-bg);
    color: var(--circle-ink);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.page-circle .container {
    width: calc(100% - 32px);
    max-width: 1180px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.page-circle .header-top {
    display: none;
}

.page-circle .site-header {
    position: relative;
    z-index: 50;
    background: #fff;
    box-shadow: none;
}

.page-circle .header-main {
    height: 64px;
    padding: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.page-circle .header-main .container {
    display: flex;
    height: 64px;
    align-items: center;
}

.page-circle .header-logo {
    flex: 0 0 auto;
    margin-right: 28px;
}

.page-circle .header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-circle .header-logo .logo-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.page-circle .logo-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.page-circle .logo-brand-copy strong {
    color: #26313c;
    font-size: 15px;
    font-weight: 700;
}

.page-circle .logo-brand-copy small {
    margin-top: 4px;
    color: #a1a8b0;
    font-size: 9px;
    letter-spacing: 0.04em;
}

.page-circle .header-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.page-circle .header-nav .nav-list {
    gap: 0;
}

.page-circle .header-nav .nav-list > li > a {
    height: 64px;
    padding: 0 11px;
    color: #3f4852;
    font-size: 14px;
    line-height: 64px;
}

.page-circle .header-nav .nav-list > li > a:hover,
.page-circle .header-nav .nav-list > li > a[href$="/circle"] {
    color: var(--circle-primary);
}

.page-circle .header-search {
    flex: 0 0 220px;
    width: 220px;
    margin-left: 14px;
}

.page-circle .header-search form {
    height: 36px;
    border: 1px solid #e3e8ed;
    border-radius: 18px;
    background: #f7f9fb;
}

.page-circle .header-search .search-input {
    min-width: 0;
    padding: 0 14px;
    background: transparent;
    font-size: 13px;
}

.page-circle .header-search .search-btn {
    flex: 0 0 52px;
    border-radius: 18px;
    font-size: 13px;
}

.page-circle .header-inline-auth {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.page-circle .header-inline-auth a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 13px;
}

.page-circle .sub-nav {
    height: 48px;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.page-circle .sub-nav .container,
.page-circle .sub-nav-list,
.page-circle .sub-nav-list > li {
    height: 48px;
}

.page-circle .sub-nav-list > li > a {
    height: 48px;
    padding: 0 16px;
    color: #5d6670;
    font-size: 13px;
    line-height: 48px;
}

.page-circle .main-content {
    padding: 24px 0 48px;
}

.page-circle .content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.page-circle .content-main {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
}

.page-circle .content-sidebar {
    width: auto;
    min-width: 0;
}

.page-circle .content-sidebar .vip-panel,
.page-circle .content-sidebar .latest-articles-widget,
.page-circle .content-sidebar .newsflash-panel,
.page-circle .content-sidebar .copyright-section,
.page-circle .content-sidebar .signin-panel {
    display: none;
}

.page-circle .content-sidebar .sidebar-panel {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--circle-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.page-circle .content-sidebar .panel-header {
    min-height: 52px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--circle-line);
    background: #fff;
}

.page-circle .content-sidebar .panel-header h3 {
    color: var(--circle-ink);
    font-size: 16px;
}

.page-circle .content-sidebar .panel-body {
    padding: 16px 18px;
}

.page-circle .content-sidebar .login-panel .panel-header {
    background: var(--circle-primary);
}

.page-circle .content-sidebar .login-panel .panel-header h3 {
    color: #fff;
}

.page-circle .content-sidebar .sidebar-login-form .form-control {
    height: 42px;
    border-color: var(--circle-line);
    border-radius: 6px;
}

.page-circle .content-sidebar .circles-panel .panel-body {
    padding: 4px 16px;
}

.page-circle .content-sidebar .circles-list li {
    padding: 13px 0;
}

.page-circle .content-sidebar .circle-avatar {
    width: 42px;
    height: 42px;
}

.page-circle .content-sidebar .circle-name {
    color: var(--circle-ink);
    font-size: 14px;
    font-weight: 600;
}

.page-circle .circle-page,
.page-circle .square-page,
.page-circle .circle-detail-page,
.page-circle .topic-detail-page {
    margin: 0;
    padding: 0;
}

.page-circle .breadcrumb {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: #98a1aa;
    font-size: 12px;
}

.page-circle .breadcrumb a {
    color: #7b8793;
}

.page-circle .breadcrumb a:hover {
    color: var(--circle-primary);
}

.page-circle .circle-community-intro {
    display: flex;
    min-height: 176px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 16px;
    padding: 30px 34px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--circle-primary);
    color: #fff;
}

.page-circle .circle-community-copy {
    max-width: 590px;
}

.page-circle .circle-community-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.page-circle .circle-community-intro h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}

.page-circle .circle-community-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.75;
}

.page-circle .circle-community-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.page-circle .circle-intro-primary,
.page-circle .circle-intro-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

.page-circle .circle-intro-primary {
    background: #fff;
    color: var(--circle-primary-dark);
}

.page-circle .circle-intro-secondary {
    background: transparent;
    color: #fff;
}

.page-circle .circle-intro-primary:hover {
    background: #f3f9fe;
    color: var(--circle-primary-dark);
}

.page-circle .circle-intro-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.page-circle .circle-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 20px;
    padding: 6px;
    border: 1px solid var(--circle-line);
    border-radius: 10px;
    background: #fff;
}

.page-circle .circle-tab {
    min-height: 42px;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    color: #687481;
    font-size: 14px;
    margin: 0;
}

.page-circle .circle-tab:hover {
    background: #f5f8fa;
    color: var(--circle-primary);
}

.page-circle .circle-tab.active {
    border: 0;
    background: var(--circle-primary-soft);
    color: var(--circle-primary-dark);
    font-weight: 700;
}

.page-circle .circle-section-head,
.page-circle .detail-section-head {
    min-height: 48px;
    margin: 0 0 12px;
}

.page-circle .circle-section-head h3,
.page-circle .detail-section-head h3 {
    color: var(--circle-ink);
    font-size: 21px;
    font-weight: 700;
}

.page-circle .create-circle-btn,
.page-circle .btn-publish-topic {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 7px;
    background: var(--circle-primary);
    font-size: 14px;
}

.page-circle .create-circle-btn:hover,
.page-circle .btn-publish-topic:hover {
    background: var(--circle-primary-dark);
}

.page-circle .circle-create-box,
.page-circle .topic-publish-form,
.page-circle .square-publish {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--circle-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.page-circle .circle-create-box .form-control,
.page-circle .topic-publish-form .form-control,
.page-circle .square-publish textarea,
.page-circle .comment-input {
    border-color: #dce3e9;
    border-radius: 7px;
    background: #fff;
}

.page-circle .circle-create-box .form-control:focus,
.page-circle .topic-publish-form .form-control:focus,
.page-circle .square-publish textarea:focus,
.page-circle .comment-input:focus {
    border-color: var(--circle-primary);
    box-shadow: 0 0 0 3px rgba(22, 143, 228, 0.12);
}

.page-circle .circle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.page-circle .circle-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
        "avatar name action"
        "avatar desc action"
        "avatar meta action";
    gap: 5px 15px;
    align-items: center;
    min-height: 146px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--circle-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-circle .circle-card:hover {
    border-color: #bdddf4;
    box-shadow: 0 8px 24px rgba(31, 85, 126, 0.08);
    transform: translateY(-2px);
}

.page-circle .circle-card-avatar {
    grid-area: avatar;
    width: 72px;
    height: 72px;
    margin: 0;
    border: 3px solid #edf6fc;
    background: var(--circle-primary);
    font-size: 24px;
}

.page-circle .circle-card-name {
    grid-area: name;
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.page-circle .circle-card-name a {
    color: var(--circle-ink);
}

.page-circle .circle-card-desc {
    grid-area: desc;
    min-height: 0;
    margin: 0;
    color: var(--circle-muted);
    font-size: 13px;
    line-height: 1.55;
}

.page-circle .circle-card-meta {
    grid-area: meta;
    justify-content: flex-start;
    margin: 2px 0 0;
    color: #87929d;
}

.page-circle .circle-card-action {
    grid-area: action;
    align-self: center;
}

.page-circle .circle-card-action .btn-join,
.page-circle .circle-card-action .btn-joined {
    min-width: 64px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 18px;
    line-height: 34px;
    text-align: center;
}

.page-circle .circle-card-action .btn-join {
    border-color: var(--circle-primary);
    color: var(--circle-primary);
}

.page-circle .circle-card-action .btn-join:hover {
    background: var(--circle-primary);
}

.page-circle .topic-list,
.page-circle .topic-card-list {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--circle-line);
    border-radius: 10px;
    background: #fff;
}

.page-circle .topic-list {
    gap: 0;
}

.page-circle .topic-item {
    gap: 14px;
    padding: 19px 20px;
    border-bottom: 1px solid var(--circle-line);
}

.page-circle .topic-item:hover {
    background: #fbfdff;
}

.page-circle .topic-avatar,
.page-circle .tc-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    background: var(--circle-primary);
}

.page-circle .topic-title,
.page-circle .tc-title {
    font-size: 17px;
}

.page-circle .topic-title a,
.page-circle .tc-title a {
    color: var(--circle-ink);
}

.page-circle .topic-summary,
.page-circle .tc-summary {
    color: var(--circle-muted);
    font-size: 14px;
    line-height: 1.65;
}

.page-circle .topic-summary a,
.page-circle .tc-summary a {
    color: inherit;
}

.page-circle .topic-type-badge,
.page-circle .tc-type-badge {
    border-radius: 4px;
    font-weight: 600;
}

.page-circle .topic-type-badge.badge-guess,
.page-circle .tc-type-badge.badge-guess {
    background: #27ae60;
}

.page-circle .topic-type-badge.badge-vote,
.page-circle .tc-type-badge.badge-vote {
    background: #8e63ce;
}

.page-circle .my-circle-item,
.page-circle .login-prompt-box,
.page-circle .empty-state {
    border: 1px solid var(--circle-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.page-circle .my-circle-item {
    min-height: 72px;
    padding: 14px 18px;
}

.page-circle .login-prompt-box {
    padding: 48px 24px;
}

.page-circle .circle-info-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 180px;
    margin: 0 0 18px;
    padding: 28px 30px;
    border: 0;
    border-radius: 12px;
    background: var(--circle-primary);
    box-shadow: none;
    color: #fff;
}

.page-circle .circle-info-avatar {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
    border: 4px solid rgba(255, 255, 255, 0.88);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 67, 121, 0.16);
}

.page-circle .circle-info-name {
    margin-bottom: 9px;
    color: #fff;
    font-size: 28px;
}

.page-circle .circle-info-desc {
    max-width: 600px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.page-circle .circle-info-stats {
    gap: 18px;
    color: rgba(255, 255, 255, 0.78);
}

.page-circle .circle-info-stats svg,
.page-circle .circle-info-stats strong {
    color: #fff;
}

.page-circle .circle-info-actions {
    align-items: stretch;
}

.page-circle .circle-info-actions .btn-join-circle,
.page-circle .circle-info-actions .btn-leave-circle,
.page-circle .circle-info-actions .btn-owner-tag,
.page-circle .circle-info-actions .btn-manage {
    min-height: 40px;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.72);
    border-radius: 7px;
    background: #fff;
    color: var(--circle-primary-dark);
}

.page-circle .circle-info-actions .btn-leave-circle {
    background: transparent;
    color: #fff;
}

.page-circle .circle-info-actions .btn-owner-tag {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.page-circle .owner-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-circle .owner-avatar-form {
    display: flex;
    gap: 6px;
}

.page-circle .owner-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.page-circle .owner-avatar-note {
    max-width: 170px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-circle .publish-topic-bar {
    margin-bottom: 12px;
}

.page-circle .join-prompt {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid #cfe7f8;
    border-radius: 10px;
    background: var(--circle-primary-soft);
}

.page-circle .join-prompt p {
    margin: 0;
    color: #496478;
}

.page-circle .detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-circle .detail-section-head .count {
    color: var(--circle-muted);
    font-size: 13px;
}

.page-circle .square-head {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
    padding: 24px 28px;
    border: 1px solid #cfe7f8;
    border-radius: 12px;
    background: var(--circle-primary-soft);
}

.page-circle .square-head h2 {
    color: var(--circle-ink);
    font-size: 27px;
    font-weight: 700;
}

.page-circle .square-head h2 svg {
    color: var(--circle-primary) !important;
}

.page-circle .square-head .sub {
    color: #668093;
    font-size: 14px;
}

.page-circle .square-stats {
    margin: 0 0 14px;
    padding: 0 4px;
}

.page-circle .square-publish-header span {
    font-size: 16px;
}

.page-circle .square-publish textarea {
    min-height: 96px;
    font-size: 15px;
}

.page-circle .square-publish-types label,
.page-circle .publish-tab,
.page-circle .filter-tab,
.page-circle .sort-tab {
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.page-circle .square-publish-types label.active,
.page-circle .filter-tab.active {
    background: var(--circle-primary);
    border-color: var(--circle-primary);
}

.page-circle .square-publish .btn-publish {
    min-width: 84px;
    min-height: 40px;
    border-radius: 7px;
    background: var(--circle-primary);
}

.page-circle .square-hot-circles {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--circle-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.page-circle .hot-circle-item {
    min-height: 56px;
    padding: 8px 12px;
    border: 1px solid var(--circle-line);
    border-radius: 8px;
    background: #fff;
}

.page-circle .square-toolbar {
    margin-bottom: 14px;
}

.page-circle .square-filter-tabs,
.page-circle .square-sort {
    padding: 5px;
    border: 1px solid var(--circle-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

.page-circle .sort-tab.active {
    background: #fff1eb;
    color: #dc642f;
}

.page-circle .topic-card-list {
    gap: 0;
}

.page-circle .topic-card {
    gap: 14px;
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid var(--circle-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.page-circle .topic-card:last-child {
    border-bottom: 0;
}

.page-circle .topic-card:hover {
    background: #fbfdff;
    box-shadow: none;
}

.page-circle .tc-thumb {
    width: 112px;
    height: 84px;
    border-radius: 7px;
}

.page-circle .topic-detail-card,
.page-circle .topic-comments-section {
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--circle-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.page-circle .topic-detail-title {
    margin-top: 12px;
    color: var(--circle-ink);
    font-size: 27px;
    line-height: 1.45;
    text-wrap: balance;
}

.page-circle .topic-detail-author {
    margin-bottom: 22px;
    padding-bottom: 18px;
}

.page-circle .topic-detail-avatar {
    width: 48px;
    height: 48px;
    background: var(--circle-primary);
}

.page-circle .topic-detail-content {
    color: #303943;
    font-size: 16px;
    line-height: 1.9;
}

.page-circle .topic-detail-footer {
    margin-top: 22px;
}

.page-circle .topic-like-area {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--circle-line);
}

.page-circle .like-btn {
    min-height: 44px;
    border-color: #d9e4ec;
    color: #62717d;
}

.page-circle .like-btn:hover,
.page-circle .like-btn.liked {
    border-color: #ff8a5c;
    background: #fff2ec;
    color: #e96735;
}

.page-circle .topic-comments-section {
    margin-top: 0;
}

.page-circle .comments-section-title {
    margin-bottom: 18px;
    font-size: 19px;
}

.page-circle .comment-form {
    padding: 14px;
    border-color: var(--circle-line);
    background: #f7f9fb;
}

.page-circle .comment-input {
    min-height: 84px;
    font-size: 14px;
}

.page-circle .btn-comment-submit {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 6px;
}

.page-circle .comment-item {
    padding: 18px 0;
}

.page-circle .reply-list {
    border: 1px solid #e9eef2;
    background: #f7f9fb;
}

.page-circle .topic-detail-back {
    margin-top: 14px;
}

.page-circle .circle-tab:focus-visible,
.page-circle .create-circle-btn:focus-visible,
.page-circle .btn-join:focus-visible,
.page-circle .btn-join-circle:focus-visible,
.page-circle .btn-leave-circle:focus-visible,
.page-circle .btn-manage:focus-visible,
.page-circle .btn-publish-topic:focus-visible,
.page-circle .filter-tab:focus-visible,
.page-circle .sort-tab:focus-visible,
.page-circle .like-btn:focus-visible,
.page-circle .comment-reply-link:focus-visible {
    outline: 3px solid rgba(22, 143, 228, 0.28);
    outline-offset: 2px;
}

@media (max-width: 1199px) and (min-width: 769px) {
    .page-circle .container {
        width: calc(100% - 24px);
    }

    .page-circle .content-wrapper {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 16px;
    }

    .page-circle .header-nav .nav-list > li > a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 13px;
    }

    .page-circle .header-search {
        flex-basis: 190px;
        width: 190px;
    }

    .page-circle .header-inline-auth {
        display: none;
    }

    .page-circle .circle-card {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "avatar name"
            "avatar desc"
            "avatar meta"
            "action action";
    }

    .page-circle .circle-card-avatar {
        width: 64px;
        height: 64px;
    }

    .page-circle .circle-card-action {
        justify-self: flex-end;
    }
}

@media (max-width: 768px) {
    body.page-circle {
        padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
        background: #f4f7fa;
        font-size: 14px;
    }

    .page-circle .container {
        width: 100%;
        max-width: 100% !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .page-circle .site-header,
    .page-circle .header-main,
    .page-circle .header-main .container {
        height: 52px !important;
    }

    .page-circle .header-main {
        position: relative;
        padding: 0 !important;
        border-bottom: 1px solid #e8edf1;
    }

    .page-circle .header-main .container {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .page-circle .menu-toggle,
    .page-circle .mobile-search-toggle,
    .page-circle .mobile-user-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        margin: 0;
        color: #48545f;
    }

    .page-circle .menu-toggle {
        flex-direction: column;
        gap: 4px;
    }

    .page-circle .menu-toggle span {
        width: 18px;
    }

    .page-circle .header-logo {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
    }

    .page-circle .header-logo a {
        gap: 8px;
        min-height: 44px;
    }

    .page-circle .header-logo .logo-img {
        width: 36px;
        height: 36px;
        border-radius: 7px;
    }

    .page-circle .logo-brand-copy {
        min-width: 0;
    }

    .page-circle .logo-brand-copy strong {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .page-circle .logo-brand-copy small {
        display: none;
    }

    .page-circle .header-nav,
    .page-circle .header-inline-auth,
    .page-circle .sub-nav {
        display: none;
    }

    .page-circle .header-search {
        position: fixed;
        top: 52px;
        right: 0;
        left: 0;
        z-index: 90;
        display: none;
        width: 100%;
        margin: 0;
        padding: 9px 12px;
        border-bottom: 1px solid #e4e9ed;
        background: #fff;
        box-shadow: 0 8px 18px rgba(30, 55, 75, 0.08);
    }

    .page-circle .header-search.mobile-show {
        display: block;
    }

    .page-circle .header-search form {
        height: 40px;
    }

    .page-circle .main-content {
        padding: 12px 0 24px;
    }

    .page-circle .content-wrapper {
        display: block;
    }

    .page-circle .content-main {
        width: 100%;
        max-width: none;
    }

    .page-circle .content-sidebar,
    .page-circle .site-footer {
        display: none !important;
    }

    .page-circle .breadcrumb {
        display: none;
    }

    .page-circle .circle-community-intro {
        display: block;
        min-height: 0;
        margin: 0 0 10px;
        padding: 20px;
        border-radius: 10px;
    }

    .page-circle .circle-community-kicker {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .page-circle .circle-community-intro h1 {
        margin-bottom: 8px;
        font-size: 23px;
        line-height: 1.35;
    }

    .page-circle .circle-community-intro p {
        font-size: 13px;
        line-height: 1.65;
    }

    .page-circle .circle-community-actions {
        margin-top: 16px;
    }

    .page-circle .circle-intro-primary,
    .page-circle .circle-intro-secondary {
        flex: 1 1 0;
        min-height: 44px;
        padding: 0 12px;
        font-size: 13px;
    }

    .page-circle .circle-tabs {
        gap: 4px;
        margin-bottom: 14px;
        padding: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .page-circle .circle-tabs::-webkit-scrollbar {
        display: none;
    }

    .page-circle .circle-tab {
        min-width: max-content;
        min-height: 44px;
        flex: 1 0 auto;
        padding: 0 12px;
        font-size: 13px;
    }

    .page-circle .circle-section-head,
    .page-circle .detail-section-head {
        min-height: 42px;
        margin-bottom: 8px;
    }

    .page-circle .circle-section-head h3,
    .page-circle .detail-section-head h3 {
        font-size: 18px;
    }

    .page-circle .create-circle-btn,
    .page-circle .btn-publish-topic {
        min-height: 44px;
        padding: 0 13px;
        font-size: 13px;
    }

    .page-circle .circle-create-box,
    .page-circle .topic-publish-form,
    .page-circle .square-publish {
        margin-bottom: 12px;
        padding: 14px;
        border-radius: 9px;
    }

    .page-circle .circle-create-box .form-row {
        display: block;
    }

    .page-circle .circle-create-box .form-row .form-control,
    .page-circle .circle-create-box .form-row .btn {
        width: 100%;
        min-height: 44px;
        margin: 0 0 9px;
    }

    .page-circle .circle-create-box .form-row .btn {
        margin-bottom: 0;
    }

    .page-circle .circle-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-circle .circle-card {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        grid-template-areas:
            "avatar name action"
            "avatar meta action"
            "desc desc desc";
        gap: 5px 11px;
        min-height: 0;
        padding: 14px;
        border-radius: 9px;
    }

    .page-circle .circle-card:hover {
        transform: none;
    }

    .page-circle .circle-card-avatar {
        width: 58px;
        height: 58px;
        border-width: 2px;
        font-size: 19px;
    }

    .page-circle .circle-card-name {
        font-size: 15px;
    }

    .page-circle .circle-card-desc {
        margin-top: 5px;
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .page-circle .circle-card-meta {
        gap: 9px;
        font-size: 11px;
    }

    .page-circle .circle-card-action .btn-join,
    .page-circle .circle-card-action .btn-joined {
        min-width: 56px;
        min-height: 44px;
        padding: 0 11px;
        font-size: 12px;
        line-height: 42px;
    }

    .page-circle .topic-list,
    .page-circle .topic-card-list {
        border-radius: 9px;
    }

    .page-circle .topic-item,
    .page-circle .topic-card {
        gap: 10px;
        padding: 15px 13px;
    }

    .page-circle .topic-avatar,
    .page-circle .tc-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 13px;
    }

    .page-circle .topic-header,
    .page-circle .tc-header {
        gap: 5px;
        margin-bottom: 6px;
    }

    .page-circle .topic-title,
    .page-circle .tc-title {
        margin-bottom: 5px;
        font-size: 15px;
        line-height: 1.5;
    }

    .page-circle .topic-summary,
    .page-circle .tc-summary {
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.55;
        -webkit-line-clamp: 2;
    }

    .page-circle .topic-meta,
    .page-circle .tc-footer {
        gap: 12px;
        font-size: 11px;
    }

    .page-circle .topic-time,
    .page-circle .tc-time {
        margin-left: 0;
    }

    .page-circle .my-circle-item {
        min-height: 68px;
        padding: 12px 14px;
    }

    .page-circle .login-prompt-box {
        padding: 36px 16px;
    }

    .page-circle .circle-info-card {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        margin-bottom: 12px;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .page-circle .circle-info-avatar {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
        border-width: 3px;
    }

    .page-circle .circle-info-main {
        min-width: 0;
    }

    .page-circle .circle-info-name {
        margin-bottom: 5px;
        font-size: 21px;
    }

    .page-circle .circle-info-desc {
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.55;
    }

    .page-circle .circle-info-stats {
        gap: 12px;
        font-size: 11px;
    }

    .page-circle .circle-info-stats strong {
        font-size: 13px;
    }

    .page-circle .circle-info-actions {
        grid-column: 1 / -1;
        width: 100%;
        align-items: stretch;
    }

    .page-circle .circle-info-actions form:not(.owner-avatar-form),
    .page-circle .circle-info-actions .btn-join-circle,
    .page-circle .circle-info-actions .btn-leave-circle,
    .page-circle .circle-info-actions .btn-owner-tag {
        width: 100%;
    }

    .page-circle .owner-actions,
    .page-circle .owner-avatar-form {
        width: 100%;
    }

    .page-circle .owner-avatar-form .btn-manage {
        flex: 1 1 0;
    }

    .page-circle .owner-avatar-note {
        max-width: 100%;
        text-align: left;
    }

    .page-circle .publish-topic-bar {
        justify-content: stretch;
    }

    .page-circle .btn-publish-topic {
        width: 100%;
    }

    .page-circle .publish-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .page-circle .publish-tab {
        min-width: 0;
        padding: 0 5px;
        font-size: 12px;
    }

    .page-circle .upload-area {
        padding: 10px;
    }

    .page-circle .upload-add-btn,
    .page-circle .upload-preview-item {
        width: 64px;
        height: 64px;
    }

    .page-circle .join-prompt {
        display: block;
        min-height: 0;
        margin-bottom: 12px;
        padding: 14px;
    }

    .page-circle .join-prompt p {
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.6;
    }

    .page-circle .join-prompt .btn,
    .page-circle .join-prompt form,
    .page-circle .join-prompt button {
        width: 100%;
        min-height: 42px;
    }

    .page-circle .detail-section-head .count {
        font-size: 11px;
    }

    .page-circle .square-head {
        display: block;
        min-height: 0;
        margin-bottom: 8px;
        padding: 18px;
        border-radius: 10px;
    }

    .page-circle .square-head h2 {
        margin-bottom: 6px;
        font-size: 22px;
    }

    .page-circle .square-head .sub {
        font-size: 12px;
    }

    .page-circle .square-stats {
        gap: 8px;
        margin-bottom: 10px;
        font-size: 11px;
    }

    .page-circle .square-publish-header span {
        font-size: 14px;
    }

    .page-circle .square-publish textarea {
        min-height: 86px;
        font-size: 14px;
    }

    .page-circle .square-publish-footer {
        display: block;
    }

    .page-circle .square-publish-types {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .page-circle .square-publish-types label {
        min-width: 0;
        padding: 0 5px;
        font-size: 11px;
    }

    .page-circle .square-publish .btn-publish {
        width: 100%;
        margin-top: 10px;
    }

    .page-circle .square-hot-circles {
        padding: 13px;
        border-radius: 9px;
    }

    .page-circle .hot-circles-list {
        margin-right: -13px;
        padding-right: 13px;
    }

    .page-circle .hot-circle-item {
        min-height: 52px;
        padding: 7px 10px;
    }

    .page-circle .square-toolbar {
        display: block;
        margin-bottom: 10px;
    }

    .page-circle .square-filter-tabs,
    .page-circle .square-sort {
        display: flex;
        width: 100%;
        margin-bottom: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .page-circle .square-filter-tabs::-webkit-scrollbar,
    .page-circle .square-sort::-webkit-scrollbar {
        display: none;
    }

    .page-circle .filter-tab,
    .page-circle .sort-tab {
        min-width: max-content;
        min-height: 36px;
        padding: 0 13px;
        font-size: 12px;
    }

    .page-circle .square-sort {
        width: max-content;
        max-width: 100%;
        margin-left: auto;
    }

    .page-circle .topic-card {
        display: flex;
    }

    .page-circle .tc-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 8px;
    }

    .page-circle .topic-detail-card,
    .page-circle .topic-comments-section {
        margin-bottom: 12px;
        padding: 16px;
        border-radius: 10px;
    }

    .page-circle .topic-detail-header {
        margin-bottom: 12px;
    }

    .page-circle .topic-detail-title {
        margin-top: 9px;
        font-size: 21px;
        line-height: 1.5;
    }

    .page-circle .topic-detail-author {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .page-circle .topic-detail-avatar {
        width: 42px;
        height: 42px;
    }

    .page-circle .topic-detail-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .page-circle .topic-detail-images {
        gap: 5px;
    }

    .page-circle .topic-detail-footer {
        display: block;
        margin-top: 16px;
        padding-top: 14px;
    }

    .page-circle .topic-detail-meta {
        margin-top: 8px;
    }

    .page-circle .like-btn {
        width: 100%;
        justify-content: center;
    }

    .page-circle .comments-section-title {
        font-size: 17px;
    }

    .page-circle .comment-form {
        padding: 10px;
    }

    .page-circle .comment-input {
        min-height: 76px;
        font-size: 16px;
    }

    .page-circle .comment-item {
        gap: 9px;
        padding: 15px 0;
    }

    .page-circle .comment-avatar {
        width: 34px;
        height: 34px;
    }

    .page-circle .comment-time {
        width: 100%;
        margin-left: 0;
    }

    .page-circle .reply-list {
        margin-left: -8px;
        padding: 8px 10px;
    }

    .page-circle .topic-detail-back {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .page-circle .topic-detail-back .btn {
        min-width: 0;
        min-height: 42px;
        padding: 0 8px;
        font-size: 12px;
    }

    .page-circle .pagination {
        gap: 5px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .page-circle .pagination a,
    .page-circle .pagination span {
        min-width: 38px;
        min-height: 38px;
        flex: 0 0 auto;
    }

    .page-circle .mobile-bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        height: calc(62px + env(safe-area-inset-bottom));
        padding: 4px 4px env(safe-area-inset-bottom);
        border-top: 1px solid #e2e7eb;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -4px 16px rgba(25, 54, 78, 0.08);
    }

    .page-circle .bottom-nav-item {
        min-width: 0;
        min-height: 54px;
        gap: 2px;
        color: #8a949e;
    }

    .page-circle .bottom-nav-icon,
    .page-circle .bottom-nav-icon svg {
        width: 21px;
        height: 21px;
    }

    .page-circle .bottom-nav-label {
        font-size: 10px;
    }

    .page-circle .bottom-nav-item[data-nav="circle"] {
        color: var(--circle-primary);
        font-weight: 700;
    }

    .page-circle .bottom-nav-plus {
        display: flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        margin-top: -9px;
        border-radius: 10px;
        background: var(--circle-primary);
        box-shadow: 0 4px 10px rgba(22, 143, 228, 0.28);
        color: #fff;
        font-size: 27px;
        line-height: 1;
    }

    .page-circle .bottom-nav-create .bottom-nav-label {
        color: var(--circle-primary);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-circle *,
    .page-circle *::before,
    .page-circle *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   宠物商城：电商化 PC / H5 视觉与购买流程
   ========================================================= */
.page-shop { background: #f5f5f5; }
.page-shop .main-content { padding-top: 16px; }
.page-shop .content-wrapper { display: block; }
.page-shop .content-main { width: 100%; max-width: none; min-width: 0; }
.page-shop .content-sidebar { display: none; }
.page-shop .main-content > .container { max-width: 1280px; }
.page-shop .alert { max-width: 1280px; margin: 0 auto 14px; }
.mall-page { --mall-orange:#ff5000; --mall-red:#ff0036; --mall-ink:#222; --mall-muted:#777; --mall-line:#eee; color:var(--mall-ink); padding-bottom:34px; }
.mall-page *, .mall-page *::before, .mall-page *::after { box-sizing:border-box; }
.mall-page a { text-decoration:none; }
.mall-topbar { min-height:78px; display:grid; grid-template-columns:260px minmax(360px,1fr) auto; align-items:center; gap:30px; padding:0 24px; margin-bottom:14px; background:#fff; border-radius:16px; box-shadow:0 4px 20px rgba(40,30,20,.05); }
.mall-topbar-compact { min-height:70px; }
.mall-brand { display:flex; align-items:center; gap:9px; color:var(--mall-orange); white-space:nowrap; }
.mall-brand span { width:40px; height:40px; display:grid; place-items:center; color:#fff; font-size:22px; font-weight:900; border-radius:12px 12px 12px 4px; background:linear-gradient(135deg,#ff7a00,var(--mall-red)); box-shadow:0 6px 15px rgba(255,80,0,.22); }
.mall-brand strong { font-size:23px; letter-spacing:-1px; }
.mall-brand em { color:#aaa; font-size:12px; font-style:normal; padding-left:9px; border-left:1px solid #ddd; }
.mall-search { height:44px; display:flex; border:2px solid var(--mall-orange); border-radius:24px; overflow:hidden; background:#fff; }
.mall-search input { min-width:0; flex:1; border:0; outline:0; padding:0 18px; font-size:14px; color:#333; background:transparent; }
.mall-search button { width:92px; border:0; color:#fff; font-size:15px; font-weight:700; cursor:pointer; background:linear-gradient(90deg,#ff7a00,var(--mall-orange)); }
.mall-user-actions { display:flex; align-items:center; gap:18px; white-space:nowrap; }
.mall-user-actions > a { color:#555; font-size:14px; }
.mall-user-actions > a:hover { color:var(--mall-orange); }
.mall-cart-link { display:inline-flex; align-items:center; gap:6px; color:#444; white-space:nowrap; }
.mall-cart-link svg { width:20px; height:20px; color:var(--mall-orange); }
.mall-cart-link b { min-width:20px; height:20px; display:inline-grid; place-items:center; padding:0 5px; border-radius:10px; color:#fff; font-size:11px; background:var(--mall-red); }
.mall-breadcrumb { display:flex; align-items:center; gap:10px; min-height:42px; padding:0 4px; color:#aaa; font-size:13px; }
.mall-breadcrumb a { color:#777; }.mall-breadcrumb a:hover { color:var(--mall-orange); }.mall-breadcrumb strong { max-width:70%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#444; font-weight:500; }
.mall-hero { display:grid; grid-template-columns:210px minmax(0,1fr) 220px; gap:12px; min-height:380px; }
.mall-category-nav, .mall-service-card, .mall-hero-banner { border-radius:16px; overflow:hidden; }
.mall-category-nav { padding:14px 0; background:#fff; box-shadow:0 4px 20px rgba(40,30,20,.05); }
.mall-category-nav h2 { margin:0 18px 10px; padding-bottom:11px; font-size:17px; border-bottom:1px solid #f1f1f1; }
.mall-category-nav a { position:relative; display:flex; flex-direction:column; gap:2px; padding:11px 34px 11px 18px; color:#333; }
.mall-category-nav a:hover { color:var(--mall-orange); background:#fff6f0; }
.mall-category-nav strong { font-size:14px; }.mall-category-nav span { color:#aaa; font-size:11px; }.mall-category-nav b { position:absolute; right:16px; top:20px; color:#bbb; font-size:18px; }
.mall-hero-banner { position:relative; display:grid; grid-template-columns:55% 45%; min-width:0; padding:42px 36px; color:#5c2600; background:radial-gradient(circle at 75% 50%,rgba(255,255,255,.8),transparent 34%),linear-gradient(135deg,#fff0d9,#ffd6bf 55%,#ffc5bd); }
.mall-hero-banner::before { content:""; position:absolute; inset:auto -60px -100px auto; width:280px; height:280px; border:40px solid rgba(255,255,255,.24); border-radius:50%; }
.mall-hero-copy { position:relative; z-index:2; }
.mall-kicker { display:inline-block; padding:5px 10px; color:#fff; font-size:11px; letter-spacing:1px; border-radius:4px; background:#b96b24; }
.mall-hero-copy h1 { max-width:430px; margin:18px 0 10px; font-size:34px; line-height:1.18; letter-spacing:-1px; }
.mall-hero-copy > p { max-width:440px; min-height:44px; margin:0 0 14px; color:#85573a; font-size:14px; line-height:1.7; }
.mall-hero-price { display:flex; align-items:baseline; gap:10px; margin-bottom:18px; }.mall-hero-price small { font-size:12px; }.mall-hero-price strong { color:var(--mall-red); font-size:28px; }
.mall-hero-btn { display:inline-flex; align-items:center; justify-content:center; min-width:126px; height:42px; color:#fff; font-weight:700; border-radius:21px; background:linear-gradient(90deg,var(--mall-red),var(--mall-orange)); box-shadow:0 8px 20px rgba(255,64,0,.25); }
.mall-hero-visual { position:relative; z-index:1; display:grid; place-items:center; min-width:0; }.mall-hero-visual img { width:100%; max-height:275px; object-fit:contain; border-radius:28px 28px 80px 28px; filter:drop-shadow(0 14px 18px rgba(104,43,9,.16)); }
.mall-promo-stamp { position:absolute; right:1px; top:4px; width:64px; height:64px; display:grid; place-items:center; color:#fff; font-size:16px; font-weight:900; line-height:1.05; text-align:center; border:4px solid rgba(255,255,255,.8); border-radius:50%; background:var(--mall-red); transform:rotate(8deg); }
.mall-service-card { padding:22px 18px; background:#fff; box-shadow:0 4px 20px rgba(40,30,20,.05); }.mall-service-card h3 { margin:0 0 19px; font-size:17px; }.mall-service-card > div { display:flex; align-items:center; gap:11px; margin:16px 0; }.mall-service-card > div > span { width:38px; height:38px; display:grid; place-items:center; flex:none; color:#ff6b00; font-weight:800; border-radius:12px; background:#fff3e9; }.mall-service-card p { margin:0; }.mall-service-card strong,.mall-service-card small { display:block; }.mall-service-card strong { font-size:14px; }.mall-service-card small { margin-top:3px; color:#aaa; font-size:11px; }.mall-service-card > a { display:block; margin-top:22px; padding:12px; color:#8b4d18; font-size:12px; text-align:center; border-radius:10px; background:#fff5e9; }
.mall-promo-strip { display:grid; grid-template-columns:160px repeat(4,1fr); gap:0; margin:14px 0 26px; padding:14px 18px; border-radius:16px; background:#fff; box-shadow:0 4px 20px rgba(40,30,20,.05); }.mall-promo-strip > div { display:flex; flex-direction:column; justify-content:center; padding-left:8px; border-right:1px solid #eee; }.mall-promo-strip > div b { color:var(--mall-red); font-size:20px; }.mall-promo-strip > div span { margin-top:3px; color:#aaa; font-size:11px; }.mall-promo-strip > a { display:flex; align-items:center; gap:10px; min-width:0; padding:2px 14px; color:#333; }.mall-promo-strip img { width:48px; height:48px; flex:none; object-fit:cover; border-radius:10px; background:#f6f6f6; }.mall-promo-strip a span,.mall-promo-strip a strong,.mall-promo-strip a small { display:block; min-width:0; }.mall-promo-strip a strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.mall-promo-strip a small { margin-top:5px; color:var(--mall-red); font-weight:700; }
.mall-section { margin-top:28px; }.mall-section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:14px; padding:0 4px; }.mall-section-head > div { display:grid; grid-template-columns:auto auto; align-items:center; column-gap:10px; }.mall-section-head span { grid-row:1/3; align-self:stretch; display:grid; place-items:center; padding:0 9px; color:#fff; font-size:12px; font-weight:700; border-radius:5px; background:linear-gradient(180deg,var(--mall-red),var(--mall-orange)); }.mall-section-head h2 { margin:0; font-size:25px; }.mall-section-head p { margin:2px 0 0; color:#999; font-size:12px; }.mall-section-head > a { color:#777; font-size:13px; }.mall-section-head > a:hover { color:var(--mall-orange); }
.mall-product-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }.mall-product-grid-compact { grid-template-columns:repeat(6,minmax(0,1fr)); }
.mall-product-card { min-width:0; overflow:hidden; border:1px solid transparent; border-radius:14px; background:#fff; transition:.22s ease; box-shadow:0 4px 16px rgba(40,30,20,.045); }.mall-product-card:hover { border-color:#ffd9c5; transform:translateY(-4px); box-shadow:0 12px 28px rgba(87,44,20,.11); }
.mall-product-cover { position:relative; display:block; aspect-ratio:1/1; overflow:hidden; color:#999; background:#f7f7f7; }.mall-product-cover img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }.mall-product-card:hover .mall-product-cover img { transform:scale(1.05); }.mall-product-placeholder { width:100%; height:100%; display:grid; place-items:center; color:#ff9f6b; font-size:48px; font-weight:900; background:linear-gradient(145deg,#fff4ea,#ffe4d4); }
.mall-product-badge { position:absolute; left:9px; top:9px; padding:4px 7px; color:#fff; font-size:10px; border-radius:4px; background:var(--mall-orange); }.mall-product-badge.badge-exchange { background:#8b52d0; }.mall-product-badge.badge-lottery { background:#e93578; }.mall-product-soldout { position:absolute; inset:auto 0 0; padding:7px; color:#fff; font-size:12px; text-align:center; background:rgba(0,0,0,.58); }
.mall-product-body { padding:12px 12px 14px; }.mall-product-body h3 { height:42px; margin:0 0 6px; overflow:hidden; font-size:14px; font-weight:600; line-height:1.5; }.mall-product-body h3 a { color:#292929; }.mall-product-body h3 a:hover { color:var(--mall-orange); }.mall-product-desc { height:34px; margin:0 0 8px; overflow:hidden; color:#999; font-size:11px; line-height:1.55; }.mall-product-meta { display:flex; gap:6px; margin-bottom:9px; }.mall-product-meta span { padding:2px 5px; color:#ff6b2c; font-size:9px; border:1px solid #ffd5c2; border-radius:3px; }.mall-product-bottom { display:flex; align-items:end; justify-content:space-between; gap:8px; }.mall-product-price { min-width:0; color:var(--mall-red); white-space:nowrap; }.mall-product-price small { font-size:11px; }.mall-product-price strong { font-size:20px; letter-spacing:-.5px; }.mall-card-cart,.mall-card-arrow { width:31px; height:31px; display:grid; place-items:center; flex:none; padding:0; color:#fff; border:0; border-radius:50%; background:linear-gradient(135deg,#ff7a00,var(--mall-red)); cursor:pointer; }.mall-card-cart svg { width:16px; height:16px; }.mall-card-cart:disabled { cursor:not-allowed; filter:grayscale(1); opacity:.5; }.mall-card-arrow { font-size:22px; }
.mall-benefit-zone { display:grid; grid-template-columns:34% 66%; overflow:hidden; margin-top:30px; border-radius:18px; background:linear-gradient(135deg,#322243,#65417b); box-shadow:0 14px 35px rgba(45,24,60,.18); }.mall-benefit-copy { padding:35px; color:#fff; }.mall-benefit-copy > span { color:#ffd9a7; font-size:12px; letter-spacing:2px; }.mall-benefit-copy h2 { margin:10px 0; font-size:27px; }.mall-benefit-copy p { color:#e9dced; font-size:13px; line-height:1.7; }.mall-benefit-copy a { display:inline-block; margin-top:9px; padding:10px 20px; color:#4c2a5b; font-weight:700; border-radius:20px; background:#ffd8a4; }.mall-benefit-products { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:20px; }.mall-benefit-products a { min-width:0; display:flex; flex-direction:column; padding:12px; color:#fff; border-radius:14px; background:rgba(255,255,255,.12); }.mall-benefit-products img { width:100%; height:115px; object-fit:cover; border-radius:10px; }.mall-benefit-products strong { margin-top:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }.mall-benefit-products span { margin-top:5px; color:#ffd8a4; font-size:12px; font-weight:700; }
.mall-live-orders { display:flex; align-items:center; gap:20px; overflow:hidden; margin-top:25px; padding:12px 18px; border-radius:12px; background:#fff; }.mall-live-orders > strong { display:flex; align-items:center; gap:7px; flex:none; font-size:13px; }.mall-live-orders i { width:7px; height:7px; border-radius:50%; background:#20c46b; box-shadow:0 0 0 4px #dff8ea; }.mall-order-ticker { display:flex; gap:30px; overflow:auto; scrollbar-width:none; color:#777; font-size:12px; white-space:nowrap; }.mall-order-ticker b { color:#444; }
.mall-category-hero { position:relative; min-height:170px; display:flex; align-items:center; overflow:hidden; padding:28px 48px; color:#fff; border-radius:17px; background:linear-gradient(120deg,#ff6a00,#ff1e56); }.mall-category-hero.type-exchange { background:linear-gradient(120deg,#643c83,#9a62c7); }.mall-category-hero.type-lottery { background:linear-gradient(120deg,#d41f68,#ff6a88); }.mall-category-hero::after { content:"PET"; position:absolute; right:25px; bottom:-38px; color:rgba(255,255,255,.12); font-size:150px; font-weight:900; line-height:1; }.mall-category-hero span { font-size:11px; letter-spacing:3px; }.mall-category-hero h1 { margin:7px 0; font-size:32px; }.mall-category-hero p { max-width:560px; margin:0; color:rgba(255,255,255,.86); font-size:13px; }.mall-filter-bar { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:14px 0; padding:12px 18px; border-radius:12px; background:#fff; }.mall-filter-bar nav,.mall-sort { display:flex; align-items:center; gap:5px; }.mall-filter-bar a { padding:7px 13px; color:#666; font-size:13px; border-radius:15px; }.mall-filter-bar a.active,.mall-filter-bar a:hover { color:#fff; background:var(--mall-orange); }.mall-sort > span { color:#999; font-size:12px; }
.mall-empty { padding:80px 20px; text-align:center; border-radius:16px; background:#fff; }.mall-empty > span { font-size:52px; }.mall-empty h2 { margin:14px 0 7px; font-size:20px; }.mall-empty p { color:#999; }.mall-empty a { display:inline-block; margin-top:10px; padding:10px 25px; color:#fff; border-radius:20px; background:var(--mall-orange); }
.mall-detail-main { display:grid; grid-template-columns:520px minmax(0,1fr); gap:38px; padding:26px; border-radius:18px; background:#fff; box-shadow:0 4px 20px rgba(40,30,20,.05); }.mall-gallery { display:grid; grid-template-columns:68px 1fr; gap:12px; }.mall-gallery-main { grid-column:2; grid-row:1; aspect-ratio:1/1; overflow:hidden; display:grid; place-items:center; color:#ff8a50; font-size:70px; font-weight:900; border-radius:15px; background:#f8f8f8; }.mall-gallery-main img { width:100%; height:100%; object-fit:cover; }.mall-gallery-thumbs { grid-column:1; grid-row:1; display:flex; flex-direction:column; gap:10px; }.mall-gallery-thumbs button { aspect-ratio:1/1; overflow:hidden; padding:3px; color:#888; border:1px solid #ddd; border-radius:9px; background:#fff; }.mall-gallery-thumbs button.active { border:2px solid var(--mall-orange); }.mall-gallery-thumbs img { width:100%; height:100%; object-fit:cover; border-radius:6px; }.mall-gallery-thumbs span { font-size:11px; font-weight:700; }
.mall-detail-info { min-width:0; padding:6px 4px; }.mall-detail-tag { display:inline-block; padding:4px 8px; color:#fff; font-size:11px; border-radius:4px; background:var(--mall-red); }.mall-detail-info h1 { margin:12px 0 7px; font-size:24px; line-height:1.4; }.mall-detail-subtitle { margin:0 0 14px; color:#888; font-size:13px; line-height:1.7; }.mall-price-panel { padding:15px 18px; background:linear-gradient(90deg,#fff1e9,#fff7f2); }.mall-price-panel > div { display:flex; align-items:baseline; gap:12px; }.mall-price-panel div > span { color:#777; font-size:12px; }.mall-price-panel strong { color:var(--mall-red); font-size:31px; }.mall-price-panel strong small { font-size:16px; }.mall-price-panel del { color:#aaa; font-size:12px; }.mall-price-panel p { margin:10px 0 0; color:#8c5740; font-size:12px; }.mall-price-panel p b { margin-right:8px; padding:3px 7px; color:#fff; border-radius:3px; background:var(--mall-red); }.mall-detail-stats { display:grid; grid-template-columns:repeat(3,1fr); margin:12px 0; padding:10px 0; color:#999; font-size:12px; text-align:center; border-top:1px dashed #eee; border-bottom:1px dashed #eee; }.mall-detail-stats span+span { border-left:1px solid #eee; }.mall-detail-stats b { color:var(--mall-orange); }.mall-delivery,.mall-quantity { display:flex; align-items:flex-start; gap:20px; padding:11px 5px; font-size:13px; }.mall-delivery > span,.mall-quantity > span { width:38px; flex:none; color:#999; }.mall-delivery p { margin:0; }.mall-delivery small { display:inline-block; margin-top:4px; color:#999; }.mall-stepper { height:32px; display:inline-flex; border:1px solid #ddd; border-radius:5px; overflow:hidden; background:#fff; }.mall-stepper button { width:31px; border:0; color:#555; background:#f7f7f7; cursor:pointer; }.mall-stepper input { width:45px; padding:0; border:0; border-left:1px solid #ddd; border-right:1px solid #ddd; outline:0; text-align:center; -moz-appearance:textfield; }.mall-stepper input::-webkit-inner-spin-button { display:none; }.mall-buy-actions { display:flex; gap:12px; margin:16px 0; }.mall-buy-actions > a,.mall-buy-actions button { min-width:150px; height:47px; display:grid; place-items:center; padding:0 25px; font-size:16px; font-weight:700; border-radius:4px; cursor:pointer; }.mall-buy-now { color:var(--mall-red); border:1px solid var(--mall-red); background:#fff2f5; }.mall-add-cart { color:#fff; border:1px solid var(--mall-red); background:linear-gradient(90deg,var(--mall-red),var(--mall-orange)); }.mall-add-cart:disabled { opacity:.5; }.mall-detail-services { display:flex; flex-wrap:wrap; gap:13px; color:#777; font-size:11px; }.mall-detail-services span::first-letter { color:var(--mall-orange); }
.mall-detail-content { margin-top:18px; border-radius:16px; background:#fff; }.mall-detail-content nav { display:flex; border-bottom:1px solid #eee; }.mall-detail-content nav a { padding:17px 28px; color:#555; font-size:14px; }.mall-detail-content nav a.active { color:var(--mall-orange); font-weight:700; border-bottom:2px solid var(--mall-orange); }.mall-detail-description { padding:34px; }.mall-detail-description h2 { margin:0 0 12px; }.mall-detail-description > p { color:#666; line-height:1.9; }.mall-detail-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:25px; }.mall-detail-feature-grid > div { position:relative; overflow:hidden; padding:22px; border-radius:12px; background:#fff7f1; }.mall-detail-feature-grid b { position:absolute; right:10px; top:-12px; color:rgba(255,80,0,.08); font-size:62px; }.mall-detail-feature-grid strong,.mall-detail-feature-grid span { display:block; }.mall-detail-feature-grid strong { font-size:16px; }.mall-detail-feature-grid span { margin-top:6px; color:#999; font-size:12px; }.mall-mobile-buybar { display:none; }
.mall-flow-steps { display:flex; align-items:center; justify-self:end; gap:8px; color:#aaa; font-size:12px; }.mall-flow-steps span.active { color:var(--mall-orange); font-weight:700; }.mall-flow-steps i { width:55px; height:1px; background:#ddd; }
.mall-cart-head,.mall-orders-head { display:flex; align-items:end; justify-content:space-between; margin:10px 0 14px; }.mall-cart-head h1,.mall-orders-head h1 { margin:0; font-size:26px; }.mall-cart-head p,.mall-orders-head p { margin:5px 0 0; color:#999; font-size:12px; }.mall-cart-head a { color:var(--mall-orange); font-size:13px; }.mall-cart-table { overflow:hidden; border-radius:14px; background:#fff; }.mall-cart-row { display:grid; grid-template-columns:42px minmax(300px,1fr) 110px 120px 120px 60px; align-items:center; gap:12px; padding:18px; border-top:1px solid #f1f1f1; }.mall-cart-header { min-height:48px; padding-top:10px; padding-bottom:10px; color:#777; font-size:12px; border:0; background:#fafafa; }.mall-cart-header label { grid-column:1/3; }.mall-cart-product { display:flex; align-items:center; gap:14px; min-width:0; }.mall-cart-image,.mall-order-image { width:84px; height:84px; display:grid; place-items:center; flex:none; overflow:hidden; color:#ff8a50; font-size:25px; font-weight:900; border-radius:10px; background:#f6f6f6; }.mall-cart-image img,.mall-order-image img { width:100%; height:100%; object-fit:cover; }.mall-cart-product > div { min-width:0; }.mall-cart-product h3 { margin:0 0 6px; font-size:14px; }.mall-cart-product h3 a { color:#333; }.mall-cart-product p { margin:0 0 7px; overflow:hidden; color:#999; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.mall-cart-product small { color:#ff6c36; font-size:10px; }.mall-cart-unit { font-size:14px; }.mall-cart-subtotal { color:var(--mall-red); font-size:16px; }.mall-cart-remove { padding:0; color:#888; font-size:12px; border:0; background:none; cursor:pointer; }.mall-cart-remove:hover { color:var(--mall-red); }.mall-cart-settlement { position:sticky; bottom:68px; z-index:5; min-height:62px; display:flex; align-items:center; gap:20px; margin-top:15px; padding-left:20px; overflow:hidden; border-radius:12px; background:#fff; box-shadow:0 5px 20px rgba(0,0,0,.08); }.mall-cart-settlement > button:not(.mall-settle-btn) { color:#777; border:0; background:none; }.mall-cart-spacer { flex:1; }.mall-cart-settlement p { color:#777; font-size:13px; }.mall-cart-settlement p b { color:var(--mall-red); }.mall-cart-settlement > div { font-size:13px; }.mall-cart-settlement > div strong { color:var(--mall-red); font-size:22px; }.mall-settle-btn { align-self:stretch; min-width:130px; color:#fff; font-size:17px; font-weight:700; border:0; background:linear-gradient(90deg,var(--mall-red),var(--mall-orange)); cursor:pointer; }
.mall-checkout-form { display:flex; flex-direction:column; gap:15px; }.mall-checkout-card { padding:24px; border-radius:14px; background:#fff; }.mall-checkout-card > header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }.mall-checkout-card > header > span { width:32px; height:32px; display:grid; place-items:center; color:#fff; font-weight:800; border-radius:50%; background:var(--mall-orange); }.mall-checkout-card header h2 { margin:0; font-size:18px; }.mall-checkout-card header p { margin:3px 0 0; color:#999; font-size:11px; }.mall-address-card { padding:20px; border:2px solid #ffdbc9; border-radius:12px; background:#fffaf7; }.mall-address-fields { display:grid; grid-template-columns:1fr 1fr; gap:15px; }.mall-address-fields label { display:grid; grid-template-columns:78px 1fr; align-items:center; }.mall-address-fields label.wide { grid-column:1/-1; align-items:start; }.mall-address-fields label > span { color:#777; font-size:13px; }.mall-address-fields input,.mall-address-fields textarea { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:6px; outline:0; background:#fff; }.mall-address-fields textarea { min-height:70px; resize:vertical; }.mall-address-fields input:focus,.mall-address-fields textarea:focus { border-color:var(--mall-orange); box-shadow:0 0 0 3px rgba(255,80,0,.08); }.mall-address-hint { margin:12px 0 0 78px; color:#c26b3e; font-size:11px; }.mall-checkout-product-head,.mall-checkout-product-row { display:grid; grid-template-columns:minmax(320px,1fr) 100px 80px 110px; align-items:center; gap:12px; }.mall-checkout-product-head { padding:10px 14px; color:#888; font-size:12px; background:#fafafa; }.mall-checkout-product-row { padding:14px; border-bottom:1px solid #eee; }.mall-checkout-product-row > div { display:flex; align-items:center; gap:12px; min-width:0; }.mall-checkout-product-row img { width:70px; height:70px; object-fit:cover; border-radius:8px; }.mall-checkout-product-row p { min-width:0; margin:0; }.mall-checkout-product-row p strong,.mall-checkout-product-row p small { display:block; }.mall-checkout-product-row p strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }.mall-checkout-product-row p small { margin-top:6px; color:#999; font-size:10px; }.mall-checkout-product-row > span { font-size:13px; }.mall-checkout-product-row > strong { color:var(--mall-red); }.mall-order-note { display:flex; justify-content:space-between; gap:20px; margin-top:16px; padding:14px; color:#777; font-size:12px; background:#fafafa; }.mall-order-note input { width:330px; margin-left:9px; padding:8px; border:1px solid #ddd; }.mall-checkout-total { align-self:flex-end; width:430px; padding:22px; text-align:right; border:1px solid #ffcab0; background:#fff; }.mall-checkout-total dl { margin:0; }.mall-checkout-total dl > div { display:flex; justify-content:flex-end; gap:45px; margin:8px 0; font-size:13px; }.mall-checkout-total dt { color:#777; }.mall-checkout-total dd { min-width:90px; margin:0; }.mall-checkout-total .discount { color:#2ca66f; }.mall-checkout-total p { margin:18px 0 6px; }.mall-checkout-total p strong { color:var(--mall-red); font-size:27px; }.mall-checkout-total small { color:#999; }.mall-checkout-submit { display:flex; justify-content:flex-end; align-items:center; gap:20px; }.mall-checkout-submit a { color:#777; }.mall-checkout-submit button { min-width:155px; height:48px; color:#fff; font-size:17px; font-weight:700; border:0; border-radius:5px; background:linear-gradient(90deg,var(--mall-red),var(--mall-orange)); }
.mall-order-tabs { display:flex; gap:6px; margin-bottom:15px; padding:0 16px; border-radius:12px; background:#fff; }.mall-order-tabs a { position:relative; padding:16px 24px; color:#555; font-size:14px; }.mall-order-tabs a.active { color:var(--mall-orange); font-weight:700; }.mall-order-tabs a.active::after { content:""; position:absolute; left:22px; right:22px; bottom:0; height:3px; border-radius:3px; background:var(--mall-orange); }.mall-order-tabs b { min-width:17px; height:17px; display:inline-grid; place-items:center; margin-left:5px; color:#fff; font-size:9px; border-radius:9px; background:var(--mall-red); }.mall-order-list { display:flex; flex-direction:column; gap:13px; }.mall-order-card { overflow:hidden; border-radius:13px; background:#fff; }.mall-order-card > header { display:flex; gap:24px; padding:11px 16px; color:#888; font-size:11px; background:#fafafa; }.mall-order-card header strong { margin-left:auto; }.mall-order-card header .status-pending { color:var(--mall-red); }.mall-order-card header .status-paid,.mall-order-card header .status-shipping { color:#e98400; }.mall-order-card header .status-done { color:#2b9b62; }.mall-order-body { display:grid; grid-template-columns:84px minmax(250px,1fr) 140px 120px; align-items:center; gap:15px; padding:17px; }.mall-order-product h3 { margin:0 0 7px; font-size:14px; }.mall-order-product h3 a { color:#333; }.mall-order-product p,.mall-order-product small { margin:0; color:#999; font-size:11px; }.mall-order-product small { display:block; margin-top:5px; }.mall-order-amount { text-align:center; }.mall-order-amount small,.mall-order-amount strong { display:block; }.mall-order-amount small { color:#999; font-size:11px; }.mall-order-amount strong { margin-top:5px; color:#333; }.mall-order-actions { display:flex; flex-direction:column; align-items:stretch; gap:7px; text-align:center; }.mall-order-actions a,.mall-order-actions button { width:100%; padding:7px 12px; color:#666; font-size:11px; border:1px solid #ddd; border-radius:4px; background:#fff; }.mall-order-actions .primary { color:#fff; border-color:var(--mall-red); background:var(--mall-red); }
.mall-order-state { display:grid; grid-template-columns:300px 1fr; min-height:190px; overflow:hidden; color:#fff; border-radius:16px; background:linear-gradient(120deg,#ff5c19,#ff174b); }.mall-order-state > div:first-child { display:flex; flex-direction:column; justify-content:center; padding:28px; background:rgba(120,0,20,.12); }.mall-order-state > div:first-child span { font-size:12px; }.mall-order-state h1 { margin:8px 0; font-size:21px; }.mall-order-state p { color:rgba(255,255,255,.75); font-size:11px; }.mall-order-state button { align-self:flex-start; margin-top:5px; padding:8px 18px; color:var(--mall-red); border:0; border-radius:16px; background:#fff; }.mall-order-progress { display:grid; grid-template-columns:repeat(5,1fr); align-items:center; padding:30px; }.mall-order-progress > div { position:relative; display:flex; flex-direction:column; align-items:center; gap:10px; color:rgba(255,255,255,.55); font-size:11px; }.mall-order-progress > div:not(:last-child)::after { content:""; position:absolute; z-index:0; left:60%; right:-40%; top:14px; height:2px; background:rgba(255,255,255,.26); }.mall-order-progress b { position:relative; z-index:1; width:30px; height:30px; display:grid; place-items:center; border:2px solid rgba(255,255,255,.45); border-radius:50%; }.mall-order-progress .active { color:#fff; }.mall-order-progress .active b { color:var(--mall-red); border-color:#fff; background:#fff; }.mall-order-progress .active::after { background:#fff!important; }.mall-order-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }.mall-order-info-card { padding:22px; border-radius:13px; background:#fff; }.mall-order-info-card h2 { margin:0 0 14px; font-size:16px; }.mall-order-info-card dl { margin:0; }.mall-order-info-card dl div { display:grid; grid-template-columns:78px 1fr; gap:10px; padding:6px 0; font-size:12px; }.mall-order-info-card dt { color:#999; }.mall-order-info-card dd { margin:0; color:#444; }.mall-order-goods { margin-top:14px; border-radius:13px; background:#fff; }.mall-order-goods > header,.mall-order-goods > div { display:grid; grid-template-columns:minmax(320px,1fr) 110px 80px 120px; align-items:center; gap:12px; padding:13px 20px; }.mall-order-goods > header { color:#888; font-size:11px; background:#fafafa; }.mall-order-goods > div { grid-template-columns:84px minmax(220px,1fr) 110px 80px 120px; }.mall-order-goods p { margin:0; }.mall-order-goods p strong,.mall-order-goods p small { display:block; }.mall-order-goods p small { margin-top:6px; color:#999; }.mall-order-goods > div > strong { color:var(--mall-red); }.mall-pay-panel { margin-top:14px; padding:24px; border-radius:13px; background:#fff; }.mall-pay-panel > header h2 { margin:0; }.mall-pay-panel > header p { color:#999; font-size:11px; }.mall-pay-methods { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:18px 0; }.mall-pay-methods label { position:relative; display:flex; align-items:center; gap:12px; padding:15px; border:2px solid #eee; border-radius:10px; cursor:pointer; }.mall-pay-methods label.active { border-color:var(--mall-orange); background:#fffaf7; }.mall-pay-methods input { position:absolute; opacity:0; }.mall-pay-methods label > span { width:40px; height:40px; display:grid; place-items:center; color:#fff; font-size:20px; font-weight:900; border-radius:9px; }.mall-pay-methods .alipay { background:#1677ff; }.mall-pay-methods .wechat { background:#07c160; }.mall-pay-methods p { margin:0; }.mall-pay-methods p strong,.mall-pay-methods p small { display:block; }.mall-pay-methods p small { margin-top:4px; color:#999; }.mall-pay-methods label > b { display:none; margin-left:auto; color:var(--mall-orange); }.mall-pay-methods label.active > b { display:block; }.mall-pay-total { display:flex; justify-content:flex-end; align-items:center; gap:25px; }.mall-pay-total strong { color:var(--mall-red); font-size:24px; }.mall-pay-total button { min-width:130px; height:44px; color:#fff; font-weight:700; border:0; border-radius:5px; background:linear-gradient(90deg,var(--mall-red),var(--mall-orange)); }.mall-pay-modal[hidden] { display:none; }.mall-pay-modal { position:fixed; z-index:9999; inset:0; display:grid; place-items:center; }.mall-pay-mask { position:absolute; inset:0; background:rgba(0,0,0,.55); }.mall-pay-dialog { position:relative; z-index:1; width:360px; padding:28px; text-align:center; border-radius:16px; background:#fff; box-shadow:0 22px 70px rgba(0,0,0,.3); }.mall-pay-close { position:absolute; right:12px; top:8px; color:#888; font-size:26px; border:0; background:none; }.mall-pay-logo { width:48px; height:48px; display:grid; place-items:center; margin:auto; color:#fff; font-size:24px; font-weight:900; border-radius:13px; background:var(--mall-orange); }.mall-pay-dialog h2 { margin:12px 0 5px; }.mall-pay-dialog p { color:#777; }.mall-pay-dialog p strong { color:var(--mall-red); font-size:21px; }.mall-pay-dialog img { width:240px; height:240px; display:block; margin:16px auto; object-fit:contain; border:1px solid #eee; border-radius:12px; background:#fff; padding:8px; }.mall-pay-dialog small { display:block; color:#999; }.mall-pay-dialog #payCompleteBtn { width:100%; height:42px; margin-top:18px; color:#fff; border:0; border-radius:5px; background:var(--mall-orange); }

@media (max-width:1100px) {
  .mall-topbar { grid-template-columns:220px minmax(260px,1fr) auto; gap:18px; }
  .mall-hero { grid-template-columns:190px 1fr; }.mall-service-card { display:none; }
  .mall-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }.mall-product-grid-compact { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .mall-detail-main { grid-template-columns:420px minmax(0,1fr); gap:25px; }
}
@media (max-width:768px) {
  .page-shop .main-content { padding-top:8px; padding-bottom:82px; }.page-shop .main-content > .container { width:100%; padding:0 10px; }
  .mall-page { padding-bottom:12px; }.mall-topbar { min-height:auto; display:flex; flex-wrap:wrap; gap:10px; padding:12px; border-radius:12px; }.mall-brand { order:1; }.mall-brand span { width:34px; height:34px; font-size:18px; }.mall-brand strong { font-size:19px; }.mall-brand em { display:none; }.mall-search { order:3; width:100%; height:40px; }.mall-search button { width:72px; }.mall-user-actions,.mall-topbar > .mall-cart-link { order:2; margin-left:auto; }.mall-user-actions > a:not(.mall-cart-link) { display:none; }.mall-flow-steps { order:2; margin-left:auto; font-size:10px; }.mall-flow-steps i { width:18px; }.mall-flow-steps span { max-width:48px; text-align:center; }
  .mall-hero { display:block; min-height:0; }.mall-category-nav { display:flex; gap:5px; overflow-x:auto; margin-bottom:10px; padding:8px; border-radius:12px; }.mall-category-nav h2 { display:none; }.mall-category-nav a { min-width:78px; align-items:center; padding:8px; text-align:center; border-radius:9px; background:#fff6f0; }.mall-category-nav a strong { font-size:12px; }.mall-category-nav a span { font-size:9px; }.mall-category-nav a b { display:none; }.mall-hero-banner { min-height:240px; grid-template-columns:62% 38%; padding:24px 18px; border-radius:14px; }.mall-hero-copy h1 { margin-top:12px; font-size:24px; }.mall-hero-copy > p { min-height:0; font-size:11px; line-height:1.55; }.mall-hero-price { margin-bottom:12px; }.mall-hero-price strong { font-size:21px; }.mall-hero-btn { min-width:100px; height:36px; font-size:13px; }.mall-hero-visual img { max-height:160px; border-radius:18px 18px 45px 18px; }.mall-promo-stamp { width:45px; height:45px; font-size:11px; }
  .mall-promo-strip { grid-template-columns:120px repeat(4,110px); overflow-x:auto; padding:10px; }.mall-promo-strip > a { padding:2px 9px; }.mall-promo-strip img { width:42px; height:42px; }
  .mall-section { margin-top:22px; }.mall-section-head { align-items:center; }.mall-section-head > div { display:block; }.mall-section-head span { display:inline-block; margin-bottom:4px; padding:3px 6px; }.mall-section-head h2 { font-size:21px; }.mall-section-head p { display:none; }.mall-product-grid,.mall-product-grid-compact { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.mall-product-body { padding:10px; }.mall-product-body h3 { font-size:13px; }.mall-product-desc { display:none; }.mall-product-price strong { font-size:18px; }.mall-benefit-zone { display:block; }.mall-benefit-copy { padding:25px 20px 15px; }.mall-benefit-copy h2 { font-size:22px; }.mall-benefit-products { padding:12px; gap:7px; }.mall-benefit-products img { height:80px; }.mall-benefit-products strong { font-size:11px; }.mall-live-orders { display:none; }
  .mall-category-hero { min-height:135px; padding:22px; }.mall-category-hero h1 { font-size:26px; }.mall-category-hero p { font-size:11px; }.mall-category-hero::after { font-size:100px; }.mall-filter-bar { display:block; overflow:hidden; padding:9px; }.mall-filter-bar nav,.mall-sort { overflow-x:auto; }.mall-filter-bar a { flex:none; padding:7px 10px; }.mall-sort { margin-top:8px; padding-top:8px; border-top:1px solid #eee; }
  .mall-detail-main { display:block; padding:12px; }.mall-gallery { grid-template-columns:1fr; }.mall-gallery-main { grid-column:1; aspect-ratio:1/1; }.mall-gallery-thumbs { grid-column:1; grid-row:2; flex-direction:row; }.mall-gallery-thumbs button { width:52px; }.mall-detail-info { padding-top:16px; }.mall-detail-info h1 { font-size:20px; }.mall-detail-subtitle { font-size:12px; }.mall-buy-actions { display:none; }.mall-detail-services { padding-bottom:8px; }.mall-detail-content nav { overflow-x:auto; }.mall-detail-content nav a { flex:none; padding:14px 20px; }.mall-detail-description { padding:20px 15px; }.mall-detail-feature-grid { grid-template-columns:1fr; }.mall-mobile-buybar { position:fixed; z-index:50; left:0; right:0; bottom:0; height:62px; display:grid; grid-template-columns:58px 78px 1fr 1fr; align-items:stretch; padding:6px 8px calc(6px + env(safe-area-inset-bottom)); background:#fff; box-shadow:0 -5px 20px rgba(0,0,0,.1); }.mall-mobile-buybar a,.mall-mobile-buybar button { display:grid; place-items:center; padding:0 5px; font-size:11px; border:0; }.mall-mobile-buybar > a:nth-child(-n+2) { color:#666; background:#fff; }.mall-mobile-buybar > button { color:#fff; border-radius:20px 0 0 20px; background:#ff8a00; }.mall-mobile-buybar > a:last-child { color:#fff; border-radius:0 20px 20px 0; background:var(--mall-red); }
  .mall-cart-head,.mall-orders-head { margin:8px 3px 12px; }.mall-cart-head h1,.mall-orders-head h1 { font-size:22px; }.mall-cart-table { background:transparent; }.mall-cart-header { display:none; }.mall-cart-row:not(.mall-cart-header) { position:relative; grid-template-columns:25px 1fr; gap:8px; margin-bottom:9px; padding:12px; border:0; border-radius:12px; background:#fff; }.mall-cart-check { grid-row:1/4; align-self:start; padding-top:32px; }.mall-cart-product { grid-column:2; }.mall-cart-image { width:78px; height:78px; }.mall-cart-product h3 { font-size:13px; }.mall-cart-unit { display:none; }.mall-cart-row .mall-stepper { grid-column:2; justify-self:start; margin-left:92px; margin-top:-31px; }.mall-cart-subtotal { position:absolute; right:13px; bottom:17px; }.mall-cart-remove { position:absolute; right:12px; top:12px; }.mall-cart-settlement { position:fixed; z-index:49; left:0; right:0; bottom:62px; min-height:54px; gap:8px; margin:0; padding-left:10px; border-radius:0; }.mall-cart-settlement > button:not(.mall-settle-btn),.mall-cart-settlement > p { display:none; }.mall-cart-settlement > div { margin-left:auto; font-size:11px; }.mall-cart-settlement > div strong { display:block; font-size:17px; }.mall-settle-btn { min-width:100px; }.mall-cart-empty { min-height:420px; padding-top:90px; }
  .mall-checkout-card { padding:14px; }.mall-address-card { padding:13px; }.mall-address-fields { grid-template-columns:1fr; }.mall-address-fields label,.mall-address-fields label.wide { grid-column:auto; grid-template-columns:1fr; gap:5px; }.mall-address-hint { margin-left:0; }.mall-checkout-product-head { display:none; }.mall-checkout-product-row { position:relative; display:grid; grid-template-columns:1fr auto; gap:6px; padding:12px 0; }.mall-checkout-product-row > div { grid-column:1/-1; }.mall-checkout-product-row img { width:60px; height:60px; }.mall-checkout-product-row > span:nth-of-type(1) { color:#777; }.mall-checkout-product-row > span:nth-of-type(2) { position:absolute; right:0; top:18px; }.mall-checkout-product-row > strong { justify-self:end; }.mall-order-note { display:block; }.mall-order-note label { display:block; }.mall-order-note input { width:100%; margin:8px 0; }.mall-checkout-total { width:100%; }.mall-checkout-submit { position:sticky; bottom:62px; z-index:10; padding:8px; background:#fff; }.mall-checkout-submit button { min-width:135px; }
  .mall-order-tabs { overflow-x:auto; padding:0; }.mall-order-tabs a { flex:none; padding:14px 16px; }.mall-order-body { grid-template-columns:72px minmax(0,1fr); padding:12px; }.mall-order-image { width:72px; height:72px; }.mall-order-amount { grid-column:2; text-align:left; }.mall-order-actions { grid-column:1/-1; flex-direction:row; justify-content:flex-end; }.mall-order-actions a,.mall-order-actions form { width:auto; }.mall-order-card > header { gap:8px; flex-wrap:wrap; }.mall-order-card > header span:nth-child(2) { width:100%; }.mall-order-state { grid-template-columns:1fr; }.mall-order-state > div:first-child { align-items:center; text-align:center; }.mall-order-progress { padding:18px 8px; }.mall-order-progress span { font-size:9px; text-align:center; }.mall-order-progress > div:not(:last-child)::after { left:63%; right:-37%; }.mall-order-detail-grid { grid-template-columns:1fr; }.mall-order-goods > header { display:none; }.mall-order-goods > div { grid-template-columns:72px 1fr; padding:12px; }.mall-order-goods > div > span,.mall-order-goods > div > strong { grid-column:2; }.mall-pay-methods { grid-template-columns:1fr; }.mall-pay-total { flex-direction:column; align-items:stretch; }.mall-pay-total button { width:100%; }.mall-pay-dialog { width:calc(100% - 30px); }
}
.mall-toast { position:fixed; z-index:10000; left:50%; top:90px; max-width:calc(100% - 30px); padding:11px 20px; color:#fff; font-size:13px; border-radius:22px; background:#222; box-shadow:0 8px 25px rgba(0,0,0,.2); opacity:0; transform:translate(-50%,-12px); transition:.22s ease; }
.mall-toast.success { background:#1f9d62; }.mall-toast.error { background:#d9363e; }.mall-toast.show { opacity:1; transform:translate(-50%,0); }
.square-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.circle-square-switch { display:inline-flex; align-items:center; justify-content:center; min-width:116px; height:36px; padding:0 15px; color:var(--primary); font-size:13px; border:1px solid var(--primary); border-radius:18px; background:#fff; }
.circle-square-switch:hover { color:#fff; background:var(--primary); }
.circle-card-square { position:relative; }
.circle-card-square::before { content:"圈子"; position:absolute; right:13px; top:13px; padding:2px 7px; color:var(--primary); font-size:10px; border-radius:9px; background:var(--primary-light); }
@media(max-width:768px){.square-head{align-items:flex-start}.circle-square-switch{min-width:auto;height:32px;padding:0 10px;font-size:11px}.circle-tabs{gap:0}.circle-tab{padding:11px 9px!important;font-size:12px!important}}
@media (max-width:768px){.mall-detail-page{padding-bottom:72px}.mall-mobile-buybar{bottom:62px!important;z-index:80!important}}

/* ==================== 2026-07 商城支付 / 内容目录 / H5 导航修正 ==================== */
@keyframes ri-spin { to { transform: rotate(360deg); } }
.ri-spin { display:inline-block; animation:ri-spin .8s linear infinite; }

.payment-brand-icon {
    width: 42px !important;
    height: 42px !important;
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 10px;
    color: #fff;
    font-size: 27px !important;
    font-style: normal;
}
.payment-brand-icon.alipay { background:#1677ff; }
.payment-brand-icon.wechat { background:#07c160; }
.mall-pay-methods label > .payment-brand-icon { color:#fff; }
.mall-pay-methods label > b i { font-size:18px; }
.mall-pay-main-icon {
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    margin:0 auto;
    color:#fff;
    font-size:34px;
    border-radius:14px;
    background:var(--mall-orange);
}
.mall-pay-main-icon.alipay { background:#1677ff; }
.mall-pay-main-icon.wechat { background:#07c160; }
.mall-checkout-payment { border:1px solid #f1eee9; }
.mall-checkout-submit button i,
.mall-pay-total button i { margin-right:5px; }

.mobile-bottom-nav .bottom-nav-create { color:var(--primary); }
.mobile-bottom-nav .bottom-nav-plus {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    margin-top:-15px;
    color:#fff;
    font-size:28px;
    border-radius:14px;
    background:linear-gradient(135deg,#25a5ff,#1677e8);
    box-shadow:0 6px 16px rgba(22,119,232,.3);
}
.mobile-bottom-nav .bottom-nav-plus i { line-height:1; }

.article-directory-page { min-width:0; }
.article-category-hero {
    position:relative;
    min-height:156px;
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    align-items:center;
    gap:20px;
    overflow:hidden;
    padding:26px 32px;
    color:#fff;
    border-radius:18px;
    background:linear-gradient(120deg,#1aa57a,#39c89b);
    box-shadow:0 14px 34px rgba(16,137,99,.16);
}
.article-category-chongwuweiyang { background:linear-gradient(120deg,#ff8b35,#ffb24d); box-shadow:0 14px 34px rgba(220,119,30,.17); }
.article-category-chongwumeirong { background:linear-gradient(120deg,#8a63e8,#c16ee4); box-shadow:0 14px 34px rgba(114,69,190,.17); }
.article-category-hero::after { content:""; position:absolute; width:210px; height:210px; right:-70px; top:-95px; border:35px solid rgba(255,255,255,.1); border-radius:50%; }
.article-category-hero-icon { width:68px; height:68px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.28); border-radius:20px; background:rgba(255,255,255,.15); backdrop-filter:blur(8px); }
.article-category-hero-icon i { font-size:34px; }
.article-category-hero > div:nth-child(2) { position:relative; z-index:1; }
.article-category-hero span { font-size:11px; letter-spacing:3px; opacity:.82; }
.article-category-hero h1 { margin:5px 0 6px; color:#fff; font-size:30px; line-height:1.2; }
.article-category-hero p { margin:0; color:rgba(255,255,255,.85); font-size:13px; }
.article-category-hero > strong { position:relative; z-index:1; min-width:78px; color:#fff; font-size:30px; text-align:center; }
.article-category-hero > strong small { display:block; margin-top:2px; font-size:11px; font-weight:400; opacity:.8; }
.page-articles .page-section-header { margin-top:12px; }
.page-articles .article-h-card { min-height:154px; border:1px solid #edf0f2; box-shadow:0 5px 18px rgba(28,45,60,.045); }
.page-articles .article-h-card > .card-thumb { flex:0 0 220px; width:220px; height:154px; min-height:154px; max-height:154px; padding-top:0 !important; align-self:flex-start; }
.page-articles .article-h-card > .card-body { min-height:154px; padding:18px 22px; }
.page-articles .article-h-card .card-title { -webkit-line-clamp:2; margin-bottom:7px; }
.page-articles .article-h-card .card-excerpt { -webkit-line-clamp:2; margin-bottom:8px; }
.page-articles .list-toolbar { border:1px solid #edf0f2; box-shadow:none; }
.page-articles .filter-scroll { padding:2px 1px 8px; }

@media (max-width: 768px) {
    .mobile-bottom-nav { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
    .page-circle .mobile-bottom-nav { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
    .page-home .mobile-bottom-nav .bottom-nav-item { flex-basis:20%; }
    .page-circle .bottom-nav-plus { margin-top:-14px; }
    .page-shop .back-to-top { display:none !important; }
    .mall-mobile-buybar { width:100vw; max-width:100vw; grid-template-columns:52px 66px minmax(0,1fr) minmax(0,1fr); overflow:hidden; bottom:calc(60px + env(safe-area-inset-bottom)) !important; z-index:120 !important; }
    .mall-mobile-buybar a,.mall-mobile-buybar button { min-width:0; white-space:nowrap; font-size:12px; }
    .mall-checkout-submit { bottom:calc(60px + env(safe-area-inset-bottom)); z-index:120; box-shadow:0 -5px 16px rgba(0,0,0,.06); }
    .article-category-hero { min-height:132px; grid-template-columns:54px minmax(0,1fr); gap:14px; padding:20px 17px; border-radius:14px; }
    .article-category-hero-icon { width:52px; height:52px; border-radius:15px; }
    .article-category-hero-icon i { font-size:27px; }
    .article-category-hero h1 { font-size:23px; }
    .article-category-hero p { font-size:12px; line-height:1.55; }
    .article-category-hero > strong { display:none; }
    .page-articles .page-section-header { margin:12px 0; }
    .page-articles .list-toolbar { padding:11px; }
    .page-articles .list-toolbar form { display:grid; grid-template-columns:minmax(0,1fr) auto; }
    .page-articles .list-toolbar .form-control { min-width:0; }
    .page-articles .list-toolbar select { grid-column:1/-1; width:100%; }
    .page-articles .article-h-card { display:grid; grid-template-columns:112px minmax(0,1fr); min-height:118px; border-radius:12px; }
    .page-articles .article-h-card > .card-thumb { grid-column:1; width:112px; height:118px; min-height:118px; max-height:118px; padding-top:0 !important; }
    .page-articles .article-h-card > .card-body { grid-column:2; min-height:118px; padding:11px 12px; }
    .page-articles .article-h-card .card-title { margin-bottom:5px; font-size:14px; line-height:1.45; }
    .page-articles .article-h-card .card-excerpt { -webkit-line-clamp:2; margin:0; font-size:11px; line-height:1.55; }
    .page-articles .article-h-card .card-meta { margin-top:7px; gap:9px; font-size:10px; }
    .page-articles .article-h-card .card-meta span:nth-child(n+3) { display:none; }
    .page-articles .article-h-card .card-badge { top:7px; left:7px; padding:2px 6px; font-size:10px; }
}
