:root, body {
    --bs-primary: #a72126 !important;
    --bs-primary-rgb: 167, 33, 38;
    --bs-secondary: #cda85f;
    --bs-danger: #e63946;
    --bs-body-bg: #f5f5f7;
    --bs-body-bg-rgb: 245, 245, 247;
    --text-main: #2c3e50;
    --text-muted: #8e9eab;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background-color: var(--bs-body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .serif-text {
    font-family: "Noto Serif SC", "Songti SC", STSong, "Microsoft YaHei", serif;
    font-weight: 700;
    color: #1a1a1a !important;
    letter-spacing: 0.5px;
}

.weui-tabbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05), 0 -4px 16px rgba(0, 0, 0, 0.03) !important;
    border-top: none !important;
    padding-bottom: env(safe-area-inset-bottom);
}

.weui-tabbar__item {
    transition: all 0.3s ease;
}
.weui-tabbar__item.active {
    color: var(--bs-primary) !important;
    transform: translateY(-2px);
}
.weui-tabbar__item .weui-tabbar__icon {
    width: unset;
    height: unset;
    color: inherit !important;
    transition: all 0.3s ease;
}
.weui-tabbar__item .weui-tabbar__label {
    color: inherit;
    font-weight: 500;
}

.vip {
    background: linear-gradient(135deg, #dfbc74 0%, #fef1b5 50%, #d4af37 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.card {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    background: #ffffff !important;
    overflow: hidden;
}
.card:active {
    transform: scale(0.98) !important;
}
@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    }
}

.card-ele {
    box-sizing: border-box;
    flex-grow: 1;
    padding: 1em !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 8px 24px rgba(167, 33, 38, 0.04) !important;
    border: 1px solid rgba(167, 33, 38, 0.04) !important;
    background: #ffffff !important;
}
@media (hover: hover) {
    .card-ele:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 16px 40px rgba(167, 33, 38, 0.08) !important;
    }
}

.page-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #8a1520 100%);
    color: white;
    padding: 2rem 1.5rem 3rem 1.5rem;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(167, 33, 38, 0.2);
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 150px;
    height: 150px;
    background: url('/imgs/book-bg.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    border-radius: 50%;
}
.page-header h2 {
    color: white !important;
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.page-header p {
    color: rgba(255,255,255,0.8) !important;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.content-overlap {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}
