/* 东方遗韵·数智非遗非遗 - 全局主题样式 (美化加强?? */

:root {
    --ink-black: #1a1a1a;
    --paper-white: #fdfaf5;
    --vermilion: #c04851;
    --celadon: #45b787;
    --gold: #d4b106;
    --stone-gray: #7d7d7d;
    --border-ink: rgba(26, 26, 26, 0.08);
    --animate-duration-fast: 0.2s;
    --animate-duration-normal: 0.4s;
    --animate-duration-slow: 0.6s;
    --animate-duration-slower: 1s;
}

body {
    background-color: var(--paper-white);
    color: var(--ink-black);
    font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", serif;
    background-image: linear-gradient(to bottom, rgba(253, 250, 245, 0.95), rgba(248, 245, 240, 0.95));
    overflow-x: hidden;
}

body.admin-login-page {
    background-color: #1a1a1a !important;
    background-image: none !important;
}

/* 页面入场动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes inkSpread {
    0% { filter: blur(25px); opacity: 0; transform: scale(0.75); }
    50% { filter: blur(10px); opacity: 0.7; }
    100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes rotateIn {
    from { transform: rotate(-10deg); opacity: 0; }
    to { transform: rotate(0); opacity: 1; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--vermilion); }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-down {
    animation: fadeInDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-left {
    animation: fadeInLeft 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-right {
    animation: fadeInRight 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-scale {
    animation: fadeInScale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ink-spread {
    animation: inkSpread 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

.rotate-in {
    animation: rotateIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* 渐变背景 */
.bg-ink-gradient {
    background: linear-gradient(180deg, #fdfaf5 0%, #f5eee0 100%);
}

/* 按钮样式强化 */
.btn-primary {
    background-color: var(--vermilion);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(192, 72, 81, 0.35);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    width: 200px;
    height: 200px;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 15px rgba(192, 72, 81, 0.3);
}

.btn-secondary {
    border: 1px solid var(--ink-black);
    color: var(--ink-black);
    border-radius: 2px;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: var(--ink-black);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--stone-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost:hover {
    background: rgba(192, 72, 81, 0.08);
    color: var(--vermilion);
    border-color: rgba(192, 72, 81, 0.2);
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--vermilion);
    color: var(--vermilion);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background: var(--vermilion);
    color: white;
    box-shadow: 0 10px 25px rgba(192, 72, 81, 0.3);
    transform: translateY(-2px);
}

/* 极简卡片美化 */
.card {
    background: white;
    border: 1px solid var(--border-ink);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--vermilion), var(--celadon), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: left;
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 35px 60px rgba(0,0,0,0.1);
    border-color: rgba(192, 72, 81, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-zoom {
    overflow: hidden;
}

.card-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-zoom:hover img {
    transform: scale(1.1);
}

.card-hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hover-lift:hover {
    transform: translateY(-8px) rotate(1deg);
}

/* 标题装饰加强 */
.section-title {
    position: relative;
    padding-bottom: 1.5rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background-color: var(--vermilion);
}

/* 侧边诗词美学 */
.poetic-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.8em;
    font-size: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.5s;
}

.poetic-text:hover {
    opacity: 1;
}

/* 图片遮罩增强 */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    background-size: 200% 200%;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.img-overlay:hover::before {
    opacity: 0.9;
}

.img-overlay:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite;
}

.img-overlay img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-overlay:hover img {
    transform: scale(1.08);
}

.img-hover-grayscale {
    filter: grayscale(0);
    transition: filter 0.5s ease;
}

.img-hover-grayscale:hover {
    filter: grayscale(100%);
}

.img-hover-blur {
    filter: blur(0);
    transition: filter 0.5s ease;
}

.img-hover-blur:hover {
    filter: blur(2px);
}

/* 骨架屏美??*/
.skeleton {
    background: #eeebe3;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    animation: skeleton-shimmer 1.8s infinite;
}

@keyframes skeleton-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton-pulse {
    animation: skeleton-pulse 2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 隐藏滚动??*/
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 详情页排版美??*/
.prose {
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose p { margin-bottom: 2rem; }

/* 地区小徽??*/
.badge-region {
    padding: 2px 8px;
    background: rgba(192, 72, 81, 0.1);
    color: var(--vermilion);
    font-size: 11px;
    border-radius: 100px;
    font-weight: bold;
}

.home-page {
    background: linear-gradient(180deg, #fcf8f1 0%, #f6eee1 36%, #f4ede3 100%);
}

.home-section {
    position: relative;
}

.home-section-soft {
    backdrop-filter: blur(14px);
}

.home-section-featured {
    isolation: isolate;
}

.home-section-featured-articles {
    color: var(--ink-black);
}

.home-section-featured-backdrop {
    background: radial-gradient(circle at top right, rgba(69, 183, 135, 0.12), transparent 32%), radial-gradient(circle at bottom left, rgba(192, 72, 81, 0.1), transparent 28%), linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(253, 250, 245, 0.94) 52%, rgba(244, 237, 227, 0.98) 100%);
}

.home-section-featured-desc {
    color: rgba(26, 26, 26, 0.64);
}

.site-header {
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

body.dark-mode {
    background-color: #0a0d12;
    color: #f8f4ee;
    background-image: radial-gradient(circle at top, rgba(69, 183, 135, 0.05), transparent 32%), linear-gradient(180deg, #0f1419 0%, #0a0d12 100%);
}

body.dark-mode * {
    color-scheme: dark;
}

/* === Global Dark Mode Text Styles === */

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff !important;
}

body.dark-mode p,
body.dark-mode div,
body.dark-mode span,
body.dark-mode li,
body.dark-mode label {
    color: #f5f0e8 !important;
}

body.dark-mode small {
    color: #ccc8c0 !important;
}

body.dark-mode svg,
body.dark-mode i,
body.dark-mode [data-lucide] {
    color: inherit !important;
}

body.dark-mode .icon,
body.dark-mode .lucide-icon {
    color: #f8f4ee !important;
}

body.dark-mode .text-gray-300 {
    color: #e8e4dc !important;
}

body.dark-mode .text-gray-500 {
    color: #ccc8c0 !important;
}

body.dark-mode .text-ink-black {
    color: #ffffff !important;
}

body.dark-mode .text-vermilion {
    color: #ff8a94 !important;
}

body.dark-mode .text-celadon {
    color: #7ee8c2 !important;
}

body.dark-mode .text-gold {
    color: #ffe066 !important;
}

body.dark-mode .text-black {
    color: #ffffff !important;
}

body.dark-mode .text-gray-100 {
    color: #faf7f2 !important;
}

body.dark-mode .text-gray-200 {
    color: #f5f0e8 !important;
}

body.dark-mode .text-gray-400 {
    color: #dedad2 !important;
}

body.dark-mode .text-gray-600 {
    color: #ccc8c0 !important;
}

body.dark-mode .text-stone-gray {
    color: #d4d0c8 !important;
}

body.dark-mode .text-red-500 {
    color: #ff7a85 !important;
}

body.dark-mode .text-green-500 {
    color: #6ee7b7 !important;
}

body.dark-mode .text-blue-500 {
    color: #60a5fa !important;
}

body.dark-mode .text-yellow-500 {
    color: #ffd766 !important;
}

body.dark-mode .text-orange-500 {
    color: #fb923c !important;
}

/* === [data-theme="dark"] Support === */

[data-theme="dark"] {
    background-color: #0a0d12;
    color: #f8f4ee;
    background-image: radial-gradient(circle at top, rgba(69, 183, 135, 0.05), transparent 32%), linear-gradient(180deg, #0f1419 0%, #0a0d12 100%);
}

[data-theme="dark"] * {
    color-scheme: dark;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-theme="dark"] p,
[data-theme="dark"] div,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] label {
    color: #f5f0e8 !important;
}

[data-theme="dark"] small {
    color: #ccc8c0 !important;
}

[data-theme="dark"] svg,
[data-theme="dark"] i,
[data-theme="dark"] [data-lucide] {
    color: inherit !important;
}

[data-theme="dark"] .icon,
[data-theme="dark"] .lucide-icon {
    color: #f8f4ee !important;
}

[data-theme="dark"] .text-gray-300 {
    color: #e8e4dc !important;
}

[data-theme="dark"] .text-gray-500 {
    color: #ccc8c0 !important;
}

[data-theme="dark"] .text-ink-black {
    color: #ffffff !important;
}

[data-theme="dark"] .text-vermilion {
    color: #ff8a94 !important;
}

[data-theme="dark"] .text-celadon {
    color: #7ee8c2 !important;
}

[data-theme="dark"] .text-gold {
    color: #ffe066 !important;
}

[data-theme="dark"] .text-black {
    color: #ffffff !important;
}

[data-theme="dark"] .text-gray-100 {
    color: #faf7f2 !important;
}

[data-theme="dark"] .text-gray-200 {
    color: #f5f0e8 !important;
}

[data-theme="dark"] .text-gray-400 {
    color: #dedad2 !important;
}

[data-theme="dark"] .text-gray-600 {
    color: #ccc8c0 !important;
}

[data-theme="dark"] .text-stone-gray {
    color: #d4d0c8 !important;
}

[data-theme="dark"] .text-red-500 {
    color: #ff7a85 !important;
}

[data-theme="dark"] .text-green-500 {
    color: #6ee7b7 !important;
}

[data-theme="dark"] .text-blue-500 {
    color: #60a5fa !important;
}

[data-theme="dark"] .text-yellow-500 {
    color: #ffd766 !important;
}

[data-theme="dark"] .text-orange-500 {
    color: #fb923c !important;
}

body.dark-mode .text-purple-500 {
    color: #c084fc !important;
}

body.dark-mode a:not([class*="text-"]) {
    color: #ff7a85 !important;
}

body.dark-mode a:not([class*="text-"]):hover {
    color: #ff949d !important;
}

body.dark-mode button:not([class*="btn-"]) {
    color: #f5f0e8 !important;
}

body.dark-mode .nav-link,
body.dark-mode .nav-item {
    color: #f5f0e8 !important;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-item:hover {
    color: #ffffff !important;
}

body.dark-mode .nav-link.active,
body.dark-mode .nav-item.active {
    color: #ff7a85 !important;
}

body.dark-mode .list-group-item {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #e8e4dc !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .list-group-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8f4ee !important;
}

body.dark-mode .list-group-item.active {
    background: rgba(192, 72, 81, 0.15) !important;
    color: #f8f4ee !important;
    border-color: rgba(192, 72, 81, 0.3) !important;
}

body.dark-mode .pagination a,
body.dark-mode .pagination button {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e8e4dc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .pagination a:hover,
body.dark-mode .pagination button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f8f4ee !important;
}

body.dark-mode .pagination .active a,
body.dark-mode .pagination .active button {
    background: rgba(192, 72, 81, 0.2) !important;
    color: #ffd8db !important;
}

body.dark-mode .breadcrumb a {
    color: #ff7a85 !important;
}

body.dark-mode .breadcrumb .active {
    color: #e8e4dc !important;
}

body.dark-mode .alert {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e8e4dc !important;
}

body.dark-mode .alert-success {
    background: rgba(69, 183, 135, 0.1) !important;
    border-color: rgba(69, 183, 135, 0.3) !important;
    color: #6ee7b7 !important;
}

body.dark-mode .alert-warning {
    background: rgba(212, 177, 6, 0.1) !important;
    border-color: rgba(212, 177, 6, 0.3) !important;
    color: #ffd766 !important;
}

body.dark-mode .alert-danger {
    background: rgba(192, 72, 81, 0.1) !important;
    border-color: rgba(192, 72, 81, 0.3) !important;
    color: #ff7a85 !important;
}

body.dark-mode .alert-info {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

body.dark-mode .badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f5f0e8 !important;
}

body.dark-mode .badge.bg-primary {
    background: rgba(192, 72, 81, 0.2) !important;
    color: #ffd8db !important;
}

body.dark-mode .badge.bg-success {
    background: rgba(69, 183, 135, 0.2) !important;
    color: #7ee8c2 !important;
}

body.dark-mode .badge.bg-warning {
    background: rgba(212, 177, 6, 0.2) !important;
    color: #ffe066 !important;
}

body.dark-mode .badge.bg-danger {
    background: rgba(192, 72, 81, 0.2) !important;
    color: #ff8a94 !important;
}

body.dark-mode .badge.bg-info {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}

body.dark-mode .close {
    color: #f5f0e8 !important;
}

body.dark-mode .close:hover {
    color: #ffffff !important;
}

body.dark-mode .modal-content {
    background: rgba(17, 22, 28, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .modal-header {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .modal-title {
    color: #ffffff !important;
}

body.dark-mode .modal-body {
    color: #f5f0e8 !important;
}

body.dark-mode .modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .form-label {
    color: rgba(232, 225, 214, 0.95) !important;
}

body.dark-mode .form-check-label {
    color: #e8e4dc !important;
}

body.dark-mode .form-control {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8f4ee !important;
}

body.dark-mode .form-control:focus {
    border-color: rgba(192, 72, 81, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(192, 72, 81, 0.1) !important;
}

body.dark-mode .form-select {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8f4ee !important;
}

body.dark-mode .custom-file-label {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e8e4dc !important;
}

body.dark-mode .table {
    color: #e8e4dc !important;
}

body.dark-mode .table thead th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(232, 225, 214, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .table tbody td {
    border-color: rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02) !important;
}

body.dark-mode .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .table-dark {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .table-dark th,
body.dark-mode .table-dark td {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .accordion-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .accordion-header {
    color: #f5f0e8 !important;
}

body.dark-mode .accordion-button {
    background: transparent !important;
    color: #f5f0e8 !important;
}

body.dark-mode .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

body.dark-mode .accordion-body {
    color: #f5f0e8 !important;
}

body.dark-mode .card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .card-footer {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .dropdown-menu {
    background: rgba(17, 22, 28, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .dropdown-item {
    color: #f5f0e8 !important;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8f4ee !important;
}

body.dark-mode .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .toast {
    background: rgba(17, 22, 28, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .toast-header {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .toast-body {
    color: #e8e4dc !important;
}

body.dark-mode .carousel-control-prev-icon,
body.dark-mode .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode .carousel-indicators button.active {
    background-color: #f8f4ee !important;
}

body.dark-mode .nav-tabs .nav-link {
    color: #f5f0e8 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .nav-tabs .nav-link:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border-color: rgba(192, 72, 81, 0.5) rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .nav-pills .nav-link {
    color: #f5f0e8 !important;
}

body.dark-mode .nav-pills .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .nav-pills .nav-link.active {
    background: rgba(192, 72, 81, 0.2) !important;
    color: #ffffff !important;
}

body.dark-mode .progress {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .progress-bar {
    background: linear-gradient(90deg, #c04851, #ff7a85) !important;
}

body.dark-mode .tooltip {
    background: rgba(17, 22, 28, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .tooltip .tooltip-inner {
    color: #f8f4ee !important;
}

body.dark-mode .popover {
    background: rgba(17, 22, 28, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .popover-header {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .popover-body {
    color: #f5f0e8 !important;
}

body.dark-mode .timeline-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .timeline-dot {
    background: rgba(192, 72, 81, 0.3) !important;
    border-color: rgba(192, 72, 81, 0.5) !important;
}

body.dark-mode .timeline-dot.active {
    background: #c04851 !important;
    border-color: #ff7a85 !important;
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

body.dark-mode.bg-ink-gradient,
body.dark-mode.home-page {
    background: linear-gradient(180deg, #151b22 0%, #0f1419 50%, #0d1217 100%);
}

body.dark-mode .site-header {
    background: rgba(17, 22, 28, 0.82) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

body.dark-mode .site-header nav a,
body.dark-mode .site-header .text-gray-600,
body.dark-mode .site-header .text-gray-700 {
    color: #f5f0e8 !important;
}

body.dark-mode .site-header .text-stone-gray,
body.dark-mode .site-header .text-gray-400 {
    color: #ccc8c0 !important;
}

body.dark-mode .site-header input {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8f4ee !important;
}

body.dark-mode .site-header input::placeholder {
    color: #ccc8c0 !important;
}

body.dark-mode .home-hero-section .bg-gradient-to-r {
    background: linear-gradient(90deg, rgba(15, 20, 25, 0.9) 0%, rgba(15, 20, 25, 0.36) 45%, rgba(15, 20, 25, 0.04) 100%) !important;
}

body.dark-mode .home-hero-section .text-ink-black,
body.dark-mode.home-page .text-ink-black {
    color: #f5f0e8 !important;
}

body.dark-mode.home-page .text-stone-gray {
    color: #d4d0c8 !important;
}

body.dark-mode.home-page .home-section:not(.home-section-featured) {
    background: transparent !important;
}

body.dark-mode.home-page .bg-white,
body.dark-mode.home-page .bg-white\/70,
body.dark-mode.home-page .bg-white\/80,
body.dark-mode.home-page .bg-white\/30 {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode.home-page .border-ink-black\/5,
body.dark-mode.home-page .border-gray-100,
body.dark-mode.home-page .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode.home-page .home-section-soft {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode.home-page .home-section-featured-articles {
    color: #f8f4ee;
}

body.dark-mode.home-page .home-section-featured-backdrop {
    background: radial-gradient(circle at top right, rgba(69, 183, 135, 0.18), transparent 32%), radial-gradient(circle at bottom left, rgba(192, 72, 81, 0.18), transparent 28%), linear-gradient(135deg, #18222a 0%, #11161c 52%, #0f1419 100%);
}

body.dark-mode.home-page .home-section-featured-desc {
    color: #d4d0c8;
}

body.dark-mode .card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

body.dark-mode .card:hover {
    border-color: rgba(192, 72, 81, 0.9);
    box-shadow: 0 24px 38px rgba(0, 0, 0, 0.32);
}

body.dark-mode .badge-region {
    background: rgba(192, 72, 81, 0.2);
    color: #ffd8db;
}

body.dark-mode .btn-secondary {
    border-color: rgba(255, 255, 255, 0.18);
    color: #f5f0e8;
}

body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark-mode .skeleton {
    background: #1a2028;
}

body.dark-mode .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

body.dark-mode .bg-gray-50 {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .bg-gray-100 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .bg-gray-200 {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .border-gray-300 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .text-gray-600 {
    color: #ccc8c0 !important;
}

body.dark-mode .text-gray-700 {
    color: #e8e4dc !important;
}

body.dark-mode .text-gray-800 {
    color: #f5f0e8 !important;
}

body.dark-mode .text-gray-900 {
    color: #ffffff !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f5f0e8 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #aaa6a0 !important;
}

body.dark-mode .hover\:bg-gray-100:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .hover\:bg-gray-50:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .hover\:text-gray-700:hover {
    color: #f5f0e8 !important;
}

body.dark-mode .hover\:text-gray-900:hover {
    color: #ffffff !important;
}

body.dark-mode .lang-option-container {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .lang-option {
    color: #ccc8c0 !important;
}

body.dark-mode .lang-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

body.dark-mode .lang-option.active,
body.dark-mode .lang-option.bg-white {
    background: rgba(192, 72, 81, 0.2) !important;
    color: #f8f4ee !important;
}

body.dark-mode .comment-section {
    background: rgba(255, 255, 255, 0.02) !important;
}

body.dark-mode .comment-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8f4ee !important;
}

body.dark-mode .comment-input::placeholder {
    color: rgba(232, 225, 214, 0.9) !important;
}

body.dark-mode .comment-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(192, 72, 81, 0.4) !important;
}

body.dark-mode .comment-list {
    background: transparent !important;
}

body.dark-mode .comment-item {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .comment-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .comment-author {
    color: #f8f4ee !important;
}

body.dark-mode .comment-time {
    color: rgba(232, 225, 214, 0.95) !important;
}

body.dark-mode .comment-content {
    color: #e8e4dc !important;
}

body.dark-mode .comment-actions {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .comment-actions button,
body.dark-mode .comment-actions a {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .comment-actions button:hover,
body.dark-mode .comment-actions a:hover {
    color: #ff7a85 !important;
}

body.dark-mode .comment-like-btn {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .comment-like-btn:hover {
    color: #ff7a85 !important;
    background: rgba(192, 72, 81, 0.1) !important;
}

body.dark-mode .comment-like-btn.liked {
    color: #ff7a85 !important;
}

body.dark-mode .comment-reply-btn {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .comment-reply-btn:hover {
    color: #60a5fa !important;
}

body.dark-mode .comment-reply-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .comment-reply-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8f4ee !important;
}

body.dark-mode .comment-reply-input::placeholder {
    color: rgba(232, 225, 214, 0.9) !important;
}

body.dark-mode .comment-no-data {
    color: rgba(232, 225, 214, 0.95) !important;
}

body.dark-mode .comment-count {
    color: rgba(232, 225, 214, 0.9) !important;
}

body.dark-mode .video-description {
    color: #e8e4dc !important;
}

body.dark-mode .author-info {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .author-name {
    color: #f8f4ee !important;
}

body.dark-mode .action-btn-container {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .action-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e8e4dc !important;
}

body.dark-mode .action-btn:hover {
    color: white !important;
}

body.dark-mode .action-btn.like-btn:hover {
    background: rgba(192, 72, 81, 0.6) !important;
}

body.dark-mode .action-btn.favorite-btn:hover {
    background: rgba(212, 177, 6, 0.6) !important;
}

body.dark-mode .action-btn.share-btn:hover {
    background: rgba(69, 183, 135, 0.6) !important;
}

body.dark-mode .video-tags {
    color: rgba(232, 225, 214, 0.9) !important;
}

body.dark-mode .video-tags .tag {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e8e4dc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .action-btn-text {
    color: rgba(232, 225, 214, 0.9) !important;
}

body.dark-mode .action-btn-text.group-hover\:text-vermilion:hover {
    color: #ff7a85 !important;
}

body.dark-mode .action-btn-text.group-hover\:text-gold:hover {
    color: #ffd766 !important;
}

body.dark-mode .action-btn-text.group-hover\:text-celadon:hover {
    color: #6ee7b7 !important;
}

body.dark-mode .preference-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .preference-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #user-menu-panel {
    background: rgba(17, 22, 28, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode #user-menu-panel a,
body.dark-mode #user-menu-panel button {
    color: #e8e4dc !important;
}

body.dark-mode #user-menu-panel a:hover,
body.dark-mode #user-menu-panel button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8f4ee !important;
}

body.dark-mode #user-menu-panel hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #user-menu-panel button.text-red-500:hover {
    background: rgba(192, 72, 81, 0.15) !important;
}

body.dark-mode .card-text-muted {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .card-title {
    color: #f8f4ee !important;
}

body.dark-mode .bg-[#f8fafc] {
    background-color: #0f1419 !important;
}

body.dark-mode .bg-[#f1f2f3] {
    background-color: #0d1217 !important;
}

body.dark-mode .bg-white\/50 {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .text-gray-400 {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .text-gray-500 {
    color: rgba(232, 225, 214, 0.95) !important;
}

body.dark-mode .hover\:text-vermilion:hover {
    color: #ff7a85 !important;
}

body.dark-mode .hover\:text-gold:hover {
    color: #ffd766 !important;
}

body.dark-mode .hover\:text-celadon:hover {
    color: #6ee7b7 !important;
}

body.dark-mode .btn-primary:hover {
    background-color: #d15660 !important;
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

body.dark-mode .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

body.dark-mode .prose {
    color: #e7decf !important;
}

body.dark-mode .prose p {
    color: rgba(232, 225, 214, 0.9) !important;
}

body.dark-mode .prose h1,
body.dark-mode .prose h2,
body.dark-mode .prose h3,
body.dark-mode .prose h4 {
    color: #f8f4ee !important;
}

body.dark-mode .prose a {
    color: #ff7a85 !important;
}

body.dark-mode .prose blockquote {
    border-color: rgba(192, 72, 81, 0.5);
    color: rgba(232, 225, 214, 0.95);
}

body.dark-mode .article-detail .bg-white {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .heritage-detail .bg-white {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .video-detail .bg-white {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .notification-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .notification-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .notification-unread {
    background: rgba(192, 72, 81, 0.12) !important;
    border-color: rgba(192, 72, 81, 0.3) !important;
}

body.dark-mode .like-btn:hover,
body.dark-mode .favorite-btn:hover {
    background: rgba(192, 72, 81, 0.15) !important;
}

body.dark-mode .text-stone-gray {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .bg-ink-black {
    background-color: #0f1419 !important;
}

body.dark-mode .border-ink-black {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .hover\:bg-gray-800:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .hover\:bg-gray-700:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .admin-layout {
    background-color: #0d1217 !important;
}

body.dark-mode .admin-sidebar {
    background: linear-gradient(180deg, #11161c 0%, #0f1419 100%) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .admin-sidebar nav a {
    color: rgba(232, 225, 214, 0.9) !important;
}

body.dark-mode .admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8f4ee !important;
}

body.dark-mode .admin-sidebar nav a.bg-white\/10 {
    background: rgba(192, 72, 81, 0.15) !important;
    color: #f8f4ee !important;
}

body.dark-mode .admin-sidebar nav a.bg-white\/10:hover {
    background: rgba(192, 72, 81, 0.2) !important;
}

body.dark-mode .admin-header {
    background: rgba(17, 22, 28, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .admin-header h2 {
    color: #f8f4ee !important;
}

body.dark-mode .admin-header .text-gray-400 {
    color: rgba(232, 225, 214, 0.85) !important;
}

body.dark-mode .admin-header .text-gray-700 {
    color: #e8e4dc !important;
}

body.dark-mode .admin-content {
    background: #0f1419 !important;
}

body.dark-mode .admin-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .admin-card h3 {
    color: #f8f4ee !important;
}

body.dark-mode .admin-table {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .admin-table thead th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(232, 225, 214, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .admin-table tbody td {
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: #e8e4dc !important;
}

body.dark-mode .admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .admin-btn-primary {
    background-color: #c04851 !important;
    color: white !important;
}

body.dark-mode .admin-btn-primary:hover {
    background-color: #d15660 !important;
}

body.dark-mode .admin-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e8e4dc !important;
}

body.dark-mode .admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f8f4ee !important;
}

body.dark-mode .admin-modal {
    background: rgba(17, 22, 28, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .admin-modal h3 {
    color: #f8f4ee !important;
}

body.dark-mode .admin-form-label {
    color: rgba(232, 225, 214, 0.95) !important;
}

body.dark-mode .admin-pagination button {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e8e4dc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .admin-pagination button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .admin-pagination button.active {
    background: rgba(192, 72, 81, 0.2) !important;
    color: #ffd8db !important;
}

body.dark-mode .admin-badge {
    background: rgba(192, 72, 81, 0.15) !important;
    color: #ffd8db !important;
}

body.dark-mode .admin-badge-success {
    background: rgba(69, 183, 135, 0.15) !important;
    color: #6ee7b7 !important;
}

body.dark-mode .admin-badge-warning {
    background: rgba(212, 177, 6, 0.15) !important;
    color: #ffd766 !important;
}

body.dark-mode .admin-badge-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

body.dark-mode .scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.04);
}

/* 导航菜单动画 */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--vermilion);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--vermilion);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: var(--vermilion);
}

.nav-link.active::after {
    width: 100%;
}

/* 下拉菜单动画 */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--vermilion);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* 列表项动??*/
.list-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.list-item::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 4px; height: 4px;
    background: var(--vermilion);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
}

.list-item:hover {
    transform: translateX(8px);
    color: var(--vermilion);
}

.list-item:hover::before {
    transform: translateY(-50%) scale(1);
}

/* 标签动画 */
.tag {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    right: -2px; bottom: -2px;
    border: 1px solid var(--vermilion);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
    background: var(--vermilion) !important;
    color: white !important;
}

.tag:hover::before {
    opacity: 0;
}

/* 进度条动??*/
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 数字计数动画 */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-up {
    animation: countUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 图标悬停动画 */
.icon-hover {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--vermilion);
}

/* 徽章脉冲动画 */
.badge-pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 模态框动画 */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 加载状态动??*/
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === HIGH CONTRAST DARK MODE - LAST OVERRIDE === */
/* Force all text to have maximum contrast in dark mode */
body.dark-mode,
[data-theme="dark"] {
    color: white !important;
}

/* Force all text elements to be light in dark mode */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
[data-theme="dark"] h1, [data-theme="dark"] h2, 
[data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: white !important;
}

body.dark-mode p, body.dark-mode div, body.dark-mode span, 
body.dark-mode li, body.dark-mode label,
[data-theme="dark"] p, [data-theme="dark"] div, 
[data-theme="dark"] span, [data-theme="dark"] li, [data-theme="dark"] label {
    color: #f3f4f6 !important;
}

/* Cards and containers */
body.dark-mode .card, [data-theme="dark"] .card {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* Buttons */
body.dark-mode button, [data-theme="dark"] button {
    color: #f3f4f6 !important;
}

/* Links */
body.dark-mode a:not(.btn-primary), [data-theme="dark"] a:not(.btn-primary) {
    color: #60a5fa !important;
}

body.dark-mode a:hover:not(.btn-primary), [data-theme="dark"] a:hover:not(.btn-primary) {
    color: #93c5fd !important;
}

/* Inputs */
body.dark-mode input, body.dark-mode textarea, body.dark-mode select,
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
    background: rgba(55,65,81) !important;
    border-color: rgba(75,85,99) !important;
    color: white !important;
}

body.dark-mode input::placeholder, 
body.dark-mode textarea::placeholder,
[data-theme="dark"] input::placeholder, 
[data-theme="dark"] textarea::placeholder {
    color: rgba(209,213,219) !important;
}

/* Headers and sections */
body.dark-mode .site-header, [data-theme="dark"] .site-header {
    background-color: rgba(17,24,39) !important;
}

/* Sidebar */
body.dark-mode .lang-selector-dropdown, [data-theme="dark"] .lang-selector-dropdown {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .lang-option, [data-theme="dark"] .lang-option {
    color: white !important;
}

/* Make sure theme toggle is visible */
body.dark-mode #theme-toggle, [data-theme="dark"] #theme-toggle {
    background-color: rgba(55, 65, 81) !important;
    color: #fbbf24 !important;
}

/* SVG icons */
body.dark-mode svg, [data-theme="dark"] svg {
    color: inherit !important;
}

/* Make borders and dividers */
body.dark-mode [class*="border-"], [data-theme="dark"] [class*="border-"] {
    border-color: rgba(75,85,99) !important;
}

/* Grays */
body.dark-mode .text-gray-500,
body.dark-mode .text-gray-400,
body.dark-mode .text-gray-600,
[data-theme="dark"] .text-gray-500,
[data-theme="dark"] .text-gray-400,
[data-theme="dark"] .text-gray-600 {
    color: #e5e7eb !important;
}

body.dark-mode .text-gray-700,
body.dark-mode .text-gray-800,
[data-theme="dark"] .text-gray-700,
[data-theme="dark"] .text-gray-800 {
    color: #f3f4f6 !important;
}

/* All dark mode last override */
body.dark-mode *,
[data-theme="dark"] * {
    color-scheme: dark !important;
}

/* === Header Dark Mode Styles === */

body.dark-mode .site-header,
[data-theme="dark"] .site-header {
    background-color: rgba(31, 41, 55, 0.8) !important;
    border-bottom-color: rgba(75, 85, 99, 0.3) !important;
}

body.dark-mode .site-header .text-ink-black,
[data-theme="dark"] .site-header .text-ink-black {
    color: #f3f4f6 !important;
}

body.dark-mode .site-header nav a,
body.dark-mode .site-header nav a.text-gray-600,
[data-theme="dark"] .site-header nav a,
[data-theme="dark"] .site-header nav a.text-gray-600 {
    color: #d1d5db !important;
}

body.dark-mode .site-header nav a:hover,
body.dark-mode .site-header nav a.text-vermilion:hover,
[data-theme="dark"] .site-header nav a:hover,
[data-theme="dark"] .site-header nav a.text-vermilion:hover {
    color: #c04851 !important;
}

body.dark-mode .site-header nav a.text-vermilion,
[data-theme="dark"] .site-header nav a.text-vermilion {
    color: #c04851 !important;
}

body.dark-mode #lang-selector-trigger,
[data-theme="dark"] #lang-selector-trigger {
    background-color: rgba(55, 65, 81, 0.7) !important;
    border-color: rgba(75, 85, 99, 0.5) !important;
    color: #f3f4f6 !important;
}

body.dark-mode #lang-selector-trigger:hover,
[data-theme="dark"] #lang-selector-trigger:hover {
    background-color: rgba(75, 85, 99, 0.9) !important;
}

body.dark-mode #lang-selector-dropdown,
[data-theme="dark"] #lang-selector-dropdown {
    background-color: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(75, 85, 99, 0.5) !important;
}

body.dark-mode #lang-selector-dropdown button,
[data-theme="dark"] #lang-selector-dropdown button {
    color: #e5e7eb !important;
}

body.dark-mode #lang-selector-dropdown button:hover,
[data-theme="dark"] #lang-selector-dropdown button:hover {
    background-color: rgba(55, 65, 81, 0.8) !important;
}

body.dark-mode #header-search-input,
[data-theme="dark"] #header-search-input {
    background-color: rgba(55, 65, 81, 0.7) !important;
    border-color: rgba(75, 85, 99, 0.5) !important;
    color: #f3f4f6 !important;
}

body.dark-mode #header-search-input:focus,
[data-theme="dark"] #header-search-input:focus {
    background-color: rgba(55, 65, 81, 0.9) !important;
}

body.dark-mode #header-search-input::placeholder,
[data-theme="dark"] #header-search-input::placeholder {
    color: #9ca3af !important;
}

body.dark-mode #theme-toggle,
[data-theme="dark"] #theme-toggle {
    background-color: rgba(55, 65, 81, 0.7) !important;
    border-color: rgba(75, 85, 99, 0.5) !important;
    color: #fbbf24 !important;
}

body.dark-mode #theme-toggle:hover,
[data-theme="dark"] #theme-toggle:hover {
    background-color: rgba(75, 85, 99, 0.9) !important;
}

body.dark-mode #user-login-area .btn-primary,
[data-theme="dark"] #user-login-area .btn-primary {
    background-color: #c04851 !important;
    color: #ffffff !important;
}

body.dark-mode #user-login-area .btn-primary:hover,
[data-theme="dark"] #user-login-area .btn-primary:hover {
    background-color: #a13d42 !important;
}

/* 消息提示动画 */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.toast-enter {
    animation: slideDown 0.3s ease-out forwards;
}

.toast-leave {
    animation: slideUp 0.3s ease-out forwards;
}

/* 表单输入聚焦动画 */
.form-input {
    position: relative;
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 72, 81, 0.15);
}

.form-input::placeholder {
    transition: opacity 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0.5;
}

/* 复选框/单选框动画 */
.checkbox-custom,
.radio-custom {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-custom:hover,
.radio-custom:hover {
    transform: scale(1.1);
}

.checkbox-custom.checked,
.radio-custom.checked {
    transform: scale(1.05);
}

/* 滑块动画 */
.range-slider::-webkit-slider-thumb {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* 卡片翻转动画 */
.card-flip {
    perspective: 1000px;
}

.card-flip-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
    backface-visibility: hidden;
}

.card-flip-back {
    transform: rotateY(180deg);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--vermilion);
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--vermilion); }
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 淡入上移动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 闪烁动画 */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 更多动画关键帧定义 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

/* 响应式断点 - 确保1570px以下显示汉堡菜单 */
@media (max-width: 1570px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .site-header nav {
        display: none !important;
    }
    
    .site-header nav.open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        padding: 100px 2rem 2rem !important;
        box-shadow: 4px 0 40px rgba(0,0,0,0.1) !important;
        z-index: 1000 !important;
    }
    
    .site-header nav.open a {
        width: 100% !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        font-size: 1.1rem !important;
    }
    
    .lang-switcher {
        display: none !important;
    }
    
    #theme-toggle {
        display: none !important;
    }
    
    .mobile-lang-switcher {
        display: block !important;
    }
}

/* 俄语和法语在更大尺寸就显示汉堡菜单 */
@media (max-width: 1750px) {
    html[lang="ru"] .mobile-menu-btn,
    html[lang="fr"] .mobile-menu-btn {
        display: flex !important;
    }
    
    html[lang="ru"] .site-header nav,
    html[lang="fr"] .site-header nav {
        display: none !important;
    }
    
    html[lang="ru"] .site-header nav.open,
    html[lang="fr"] .site-header nav.open {
        display: flex !important;
    }
    
    html[lang="ru"] .lang-switcher,
    html[lang="fr"] .lang-switcher {
        display: none !important;
    }
    
    html[lang="ru"] .mobile-lang-switcher,
    html[lang="fr"] .mobile-lang-switcher {
        display: block !important;
    }
}


