/* ComicLove现代化增强样式 */

/* 1. 全局变量定义 - 现代配色方案 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 16px 48px rgba(0, 0, 0, 0.18);
    
    --border-radius: 16px;
    --border-radius-small: 12px;
    --border-radius-large: 24px;
}

/* 2. 现代化背景 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.08"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.06"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}

/* 3. 现代化容器 */
.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

/* 4. 现代化Logo区域 */
.logo-container {
    position: relative;
    padding: 20px 0 30px;
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.logo {
    border: 3px solid transparent;
    background: var(--primary-gradient) padding-box, var(--primary-gradient) border-box;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(3deg);
}

.logo-container h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: none;
}

/* 5. 现代化按钮 */
button, .btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before, .btn::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;
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* 特殊按钮样式 */
button[style*="background-color: #e74c3c"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

button[style*="background-color: #9b59b6"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
}

button[style*="background-color: #27ae60"] {
    background: var(--warning-gradient) !important;
}

button[style*="background-color: #f39c12"] {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important;
}

/* 6. 现代化卡片 */
.rank-item, .bounty-card, .guest-card, .social-item-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.rank-item:hover, .bounty-card:hover, .guest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 1);
}

/* 7. 现代化输入框 */
input[type="text"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* 8. 现代化标签页 */
.tabs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 4px;
    margin-bottom: 30px;
}

.tab-button {
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-light);
    transform: translateY(-1px);
}

/* 9. 现代化加载动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 10. 页面入场动画 */
.container {
    animation: slideInUp 0.6s ease-out;
}

.actions > button {
    animation: slideInUp 0.6s ease-out;
}

.actions > button:nth-child(1) { animation-delay: 0.1s; }
.actions > button:nth-child(2) { animation-delay: 0.2s; }
.actions > button:nth-child(3) { animation-delay: 0.3s; }
.actions > button:nth-child(4) { animation-delay: 0.4s; }

/* 11. 现代化消息提示 */
.message {
    border-radius: var(--border-radius);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-left: 4px solid #ff6b6b;
    box-shadow: var(--shadow-light);
}

.message.success-message {
    border-left-color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
}

/* 12. 次元币特效 */
.coins-highlight {
    background: linear-gradient(45deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
    animation: coinGlow 2s ease-in-out infinite alternate;
}

@keyframes coinGlow {
    from { filter: drop-shadow(0 0 5px rgba(246, 211, 101, 0.5)); }
    to { filter: drop-shadow(0 0 15px rgba(246, 211, 101, 0.8)); }
}

/* 13. 响应式优化 */
@media (max-width: 480px) {
    .container {
        margin: 10px;
        border-radius: var(--border-radius);
    }
    
    button {
        min-height: 44px; /* 更好的触摸体验 */
    }
}

/* 14. 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .container {
        background: rgba(40, 44, 52, 0.95);
        color: #e4e6ea;
    }
    
    input, select, textarea {
        background: rgba(60, 63, 68, 0.9);
        color: #e4e6ea;
        border-color: rgba(255, 255, 255, 0.1);
    }
}
