/* 洛璃社 - 蓝色青色现代社区风格样式 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #111827;
    overflow-x: hidden;
    font-size: 16px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 主要动画效果 */
.hero-animation {
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.pulse-animation {
    animation: pulseBlue 2s ease-in-out infinite;
}

@keyframes pulseBlue {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.sparkle-animation {
    animation: sparkleBlue 2.5s ease-in-out infinite;
}

@keyframes sparkleBlue {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 5px currentColor);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        filter: brightness(1.4) drop-shadow(0 0 15px currentColor);
    }
}

.float-animation {
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.bounce-animation {
    animation: bounceBlue 2s ease-in-out infinite;
}

@keyframes bounceBlue {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(-12px);
    }
}

.glow-animation {
    animation: glowBlue 2.5s ease-in-out infinite;
}

@keyframes glowBlue {
    0%, 100% {
        filter: drop-shadow(0 0 8px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 20px currentColor);
    }
}

.wave-animation {
    animation: waveBlue 3s ease-in-out infinite;
}

@keyframes waveBlue {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(5deg) scale(1.05);
    }
    50% {
        transform: rotate(0deg) scale(1.1);
    }
    75% {
        transform: rotate(-5deg) scale(1.05);
    }
}

/* 卡片悬停效果 */
.group:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

/* 选项卡样式 */
.topic-tab, .help-tab {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-tab::before, .help-tab::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.5s;
}

.topic-tab:hover::before, .help-tab:hover::before {
    left: 100%;
}

.topic-tab.active, .help-tab.active {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

/* 页面过渡动画 */
.page-transition {
    animation: pageSlideIn 1s ease-out;
}

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

/* 淡入动画 */
.animate-fade-in {
    animation: fadeIn 1.2s ease-out;
}

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

/* 返回顶部按钮 */
#back-to-top {
    transition: all 0.4s ease;
}

#back-to-top.show {
    transform: translateY(0);
    opacity: 1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #06b6d4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #0891b2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    .flex.items-center.space-x-8 {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .flex.items-center.space-x-8 > * {
        margin-bottom: 1rem;
    }
}

/* 加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(59, 130, 246, 0.3);
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文本渐变效果 */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 互动效果 */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

/* 背景装饰 */
.decoration {
    position: relative;
}

.decoration::after {
    content: '✨';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    opacity: 0.3;
    animation: floatUp 3.5s ease-in-out infinite;
}

/* 心跳效果 */
.heartbeat-animation {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.05);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(1);
    }
}

/* 光晕效果 */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #06b6d4, #8b5cf6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.3;
}

/* 柔和过渡 */
.soft-transition {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 渐变文字动画 */
.gradient-text-animation {
    background: linear-gradient(-45deg, #3b82f6, #06b6d4, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3.5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 悬浮阴影效果 */
.floating-shadow {
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.15),
        0 15px 50px rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
}

.floating-shadow:hover {
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.2),
        0 25px 70px rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #3b82f6;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blinkCaret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: #3b82f6; }
}

/* 能量波效果 */
.energy-wave {
    position: relative;
    overflow: hidden;
}

.energy-wave::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: energyWave 2s infinite;
}

@keyframes energyWave {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 多层阴影效果 */
.multi-shadow {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24),
        0 8px 20px rgba(59, 130, 246, 0.1),
        0 15px 40px rgba(6, 182, 212, 0.08);
}

/* 自定义容器 */
.container-blue {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 特殊效果组合 */
.blue-magic-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 6px 15px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.blue-magic-card:hover {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 
        0 12px 25px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.01);
}

/* 动态背景 */
.dynamic-bg {
    background: linear-gradient(-45deg, #3b82f6, #06b6d4, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: dynamicBg 5s ease infinite;
}

@keyframes dynamicBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 蓝色光束效果 */
.blue-beam {
    position: relative;
    overflow: hidden;
}

.blue-beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.3), 
        rgba(6, 182, 212, 0.3), 
        transparent);
    animation: blueBeamEffect 2.5s infinite;
}

@keyframes blueBeamEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 蓝色边框动画 */
.blue-border {
    border: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(45deg, #3b82f6, #06b6d4) border-box;
    animation: blueBorder 3s ease-in-out infinite;
}

@keyframes blueBorder {
    0%, 100% { 
        background: linear-gradient(#ffffff, #ffffff) padding-box,
                    linear-gradient(45deg, #3b82f6, #06b6d4) border-box;
    }
    50% { 
        background: linear-gradient(#ffffff, #ffffff) padding-box,
                    linear-gradient(45deg, #06b6d4, #8b5cf6) border-box;
    }
}

/* 蓝色渐变背景 */
.blue-gradient-bg {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(6, 182, 212, 0.08) 50%, 
        rgba(139, 92, 246, 0.08) 100%);
}

/* 蓝色光效 */
.blue-glow {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 0 15px rgba(59, 130, 246, 0.12);
}

/* 蓝色能量动画 */
.blue-energy-animation {
    animation: blueEnergyAnimation 2s ease-in-out infinite alternate;
}

@keyframes blueEnergyAnimation {
    from {
        transform: translateY(0px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }
    to {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    }
}

/* 特殊动画效果 */
.blue-special-effect {
    position: relative;
    overflow: hidden;
}

.blue-special-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    animation: blueRotate 4.5s linear infinite;
}

@keyframes blueRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文字效果 */
.blue-text-effect {
    background: linear-gradient(45deg, #3b82f6, #06b6d4, #8b5cf6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: blueTextShimmer 2.5s ease-in-out infinite;
}

@keyframes blueTextShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* 表单样式增强 */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

/* 按钮悬停效果 */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* 无障碍支持 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .hero-animation,
    .pulse-animation,
    .sparkle-animation,
    .float-animation,
    .bounce-animation,
    .glow-animation,
    .wave-animation {
        animation: none;
        transition: none;
    }
}

/* 焦点可见性 */
.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .text-gradient {
        background: #000000;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .group:hover {
        transform: none;
        box-shadow: none;
    }
    
    .interactive-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* 全局动画样式 */
.animate-fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.paused * {
    animation-play-state: paused !important;
}

.keyboard-navigation *:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* 计数器动画 */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 现代社区风格增强 */
.community-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.community-card:hover {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

/* 现代图标样式 */
.modern-icon {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modern-icon:hover {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* 现代级动画效果 */
.modern-animation {
    animation: modernFloat 3s ease-in-out infinite;
}

@keyframes modernFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 现代渐变效果 */
.modern-gradient {
    background: linear-gradient(135deg, 
        #f0f9ff 0%, 
        #ffffff 25%, 
        #e0f2fe 50%, 
        #ffffff 75%, 
        #f0f9ff 100%);
}

/* 现代级阴影 */
.modern-shadow {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 15px rgba(59, 130, 246, 0.1),
        0 20px 25px rgba(6, 182, 212, 0.05);
}

/* 现代按钮样式 */
.modern-button {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modern-button:hover::before {
    left: 100%;
}

.modern-button:hover {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* 现代级表单样式 */
.modern-form input,
.modern-form textarea,
.modern-form select {
    background: #f0f9ff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modern-form input:focus,
.modern-form textarea:focus,
.modern-form select:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* 现代导航样式 */
.modern-nav {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

/* 现代级卡片网格 */
.modern-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 现代时间线样式 */
.modern-timeline {
    position: relative;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6, #06b6d4, #8b5cf6);
    transform: translateX(-50%);
}

/* 现代级响应式 */
@media (max-width: 1024px) {
    .modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modern-timeline::before {
        left: 20px;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 现代级动画性能优化 */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* 现代级加载状态 */
.modern-loading {
    position: relative;
    overflow: hidden;
}

.modern-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.1), 
        transparent);
    animation: modernLoading 1.5s infinite;
}

@keyframes modernLoading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 现代主题色彩 */
.theme-blue-primary {
    color: #3b82f6;
}

.theme-cyan-primary {
    color: #06b6d4;
}

.theme-blue-bg {
    background-color: #3b82f6;
}

.theme-cyan-bg {
    background-color: #06b6d4;
}

.theme-gradient-bg {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* 现代互动元素 */
.like-button {
    transition: all 0.3s ease;
}

.like-button:hover {
    color: #06b6d4;
    transform: scale(1.1);
}

.like-button.liked {
    color: #06b6d4;
    animation: likeAnimation 0.6s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 现代标签样式 */
.modern-tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-tag:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    transform: translateY(-1px);
}

/* 现代通知样式 */
.modern-notification {
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* 现代进度条 */
.modern-progress {
    background: #e0f2fe;
    border-radius: 10px;
    overflow: hidden;
}

.modern-progress-bar {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    height: 8px;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* 现代徽章样式 */
.modern-badge {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 现代搜索框增强 */
.modern-search {
    position: relative;
}

.modern-search input {
    background: #f0f9ff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    transition: all 0.3s ease;
}

.modern-search input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
}

/* 现代头像样式 */
.modern-avatar {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3b82f6, #06b6d4) border-box;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modern-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* 现代统计卡片 */
.modern-stat-card {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.modern-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.modern-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 现代面包屑导航 */
.modern-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.modern-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-breadcrumb a:hover {
    color: #2563eb;
}

.modern-breadcrumb .separator {
    color: #d1d5db;
}

/* 现代工具提示 */
.modern-tooltip {
    position: relative;
    display: inline-block;
}

.modern-tooltip .tooltip-text {
    visibility: hidden;
    background: #1f2937;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.modern-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 现代模态框 */
.modern-modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 现代下拉菜单 */
.modern-dropdown {
    position: relative;
    display: inline-block;
}

.modern-dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 1000;
    border: 1px solid rgba(59, 130, 246, 0.1);
    overflow: hidden;
}

.modern-dropdown:hover .modern-dropdown-content {
    display: block;
    animation: dropdownSlideIn 0.3s ease;
}

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

.modern-dropdown-item {
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.modern-dropdown-item:hover {
    background: #f0f9ff;
    color: #3b82f6;
}

/* 现代切换开关 */
.modern-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7eb;
    transition: 0.3s;
    border-radius: 24px;
}

.modern-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.modern-switch input:checked + .modern-switch-slider {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.modern-switch input:checked + .modern-switch-slider:before {
    transform: translateX(26px);
}

/* 现代分页样式 */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
}

.modern-pagination button {
    background: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 40px;
}

.modern-pagination button:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.modern-pagination button.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: transparent;
    color: white;
}

/* 现代加载骨架屏 */
.modern-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
}

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

/* 现代空状态 */
.modern-empty-state {
    text-align: center;
    padding: 64px 32px;
    color: #6b7280;
}

.modern-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #3b82f6;
    font-size: 32px;
}

/* 现代成功/错误状态 */
.modern-alert {
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-alert.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #166534;
}

.modern-alert.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.modern-alert.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* 现代代码块样式 */
.modern-code {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 现代引用样式 */
.modern-quote {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
}

/* 现代表格样式 */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-table th {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.modern-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.modern-table tr:hover {
    background: #f0f9ff;
}

/* 现代时间轴样式 */
.modern-timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 32px;
}

.modern-timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #3b82f6;
}

.modern-timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: calc(100% + 12px);
    background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.3));
}

.modern-timeline-item:last-child::after {
    display: none;
}

/* 现代评分星级 */
.modern-rating {
    display: flex;
    gap: 4px;
}

.modern-star {
    color: #d1d5db;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modern-star.filled {
    color: #fbbf24;
}

.modern-star:hover {
    color: #f59e0b;
}

/* 现代进度环 */
.modern-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.modern-progress-ring svg {
    transform: rotate(-90deg);
}

.modern-progress-ring circle {
    fill: none;
    stroke-width: 8;
}

.modern-progress-ring .bg {
    stroke: #e0f2fe;
}

.modern-progress-ring .progress {
    stroke: url(#gradient);
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

/* 现代卡片堆叠效果 */
.modern-card-stack {
    position: relative;
}

.modern-card-stack::before,
.modern-card-stack::after {
    content: '';
    position: absolute;
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    z-index: -1;
}

.modern-card-stack::before {
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    opacity: 0.7;
}

.modern-card-stack::after {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    opacity: 0.4;
}

/* 现代悬浮操作按钮 */
.modern-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.modern-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* 现代响应式网格 */
.modern-responsive-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 640px) {
    .modern-responsive-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 现代滚动指示器 */
.modern-scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.1);
    z-index: 1000;
}

.modern-scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.1s ease;
}

/* 现代粘性元素 */
.modern-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* 现代视差效果 */
.modern-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 现代文本选择样式 */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* 现代自定义滚动条 */
.modern-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modern-scrollbar::-webkit-scrollbar-track {
    background: #e0f2fe;
    border-radius: 4px;
}

.modern-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 4px;
}

.modern-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

/* 现代最终优化 */
.modern-optimized {
    contain: layout style paint;
    will-change: transform;
}

.modern-gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 现代无障碍增强 */
.modern-focus-visible:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

.modern-screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 现代高对比度支持 */
@media (prefers-contrast: high) {
    .community-card {
        border: 2px solid #000;
    }
    
    .modern-button {
        border: 2px solid #000;
    }
}

/* 现代减少动画支持 */
@media (prefers-reduced-motion: reduce) {
    .modern-animation,
    .modern-loading,
    .hero-animation,
    .pulse-animation,
    .sparkle-animation,
    .float-animation,
    .bounce-animation,
    .glow-animation,
    .wave-animation {
        animation: none !important;
        transition: none !important;
    }
}

/* 现代暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .community-card {
        background: #1f2937;
        color: #f9fafb;
        border-color: rgba(59, 130, 246, 0.3);
    }
    
    .modern-text {
        color: #f9fafb;
    }
}

/* 现代打印优化 */
@media print {
    .modern-no-print {
        display: none !important;
    }
    
    .community-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .modern-button {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}