/* Global Styles */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f5f5f5; color: #333; }
.container-custom { max-width: 1400px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }

/* Responsive adjustments */
@media (max-width: 640px) {
    .container-custom { padding-left: 0.75rem; padding-right: 0.75rem; }
    .hero-bg .container-custom { padding-top: 1rem; padding-bottom: 2rem; }
}

.gradient-text { background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-image: linear-gradient(to right, #2563eb, #9333ea); }
.hover-up { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-up:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-vip { background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%); color: white; }
.badge-new { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.nav-item { position: relative; }
.nav-item::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #2563eb; transition: width 0.3s; }
.nav-item:hover::after { width: 100%; }
.header-nav-item { position: relative; }
.header-nav-item::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #2563eb; transition: width 0.3s; }
.header-nav-item:hover::after { width: 100%; }

/* Hero Pattern */
.hero-bg { background-image: radial-gradient(#e5e7eb 1px, transparent 1px); background-size: 20px 20px; }

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.1); border-radius: 4px; }
.custom-scrollbar:hover::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); }

/* Admin Sidebar Active Item Glow */
.admin-nav-active {
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.15);
}

/* User Profile */
.user-cover {
    background: linear-gradient(to right, #4f46e5, #06b6d4);
    height: 160px;
}
@media (max-width: 640px) {
    .user-cover { height: 120px; }
}

.nav-item.active {
    background-color: #eff6ff;
    color: #3b82f6;
    border-right: 3px solid #3b82f6;
}
/* 隐藏滚动条但保持功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Login/Register */
.auth-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* VIP Card */
.vip-card { transition: all 0.3s; }
.vip-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }
.check-list li { margin-bottom: 0.5rem; display: flex; items-center; gap: 0.5rem; }
.check-list li i { color: #10b981; }

/* Prose Defaults */
.prose :where(img):not(:where([class~="not-prose"] *)) { border-radius: 0.75rem; border: 1px solid #eee; }
.prose :where(h1,h2,h3,h4,h5) { color: #111827; }
.prose :where(p,li) { color: #4b5563; }
.prose a { color: #2563eb; }

/* Mobile Menu Animations */
.mobile-menu-enter { transform: translateX(100%); }
.mobile-menu-enter-active { transform: translateX(0); transition: transform 0.3s ease-out; }
.mobile-menu-exit { transform: translateX(0); }
.mobile-menu-exit-active { transform: translateX(100%); transition: transform 0.3s ease-in; }

/* Mobile Grid Adjustments */
@media (max-width: 640px) {
    .grid-cols-2-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aspect-mobile-video { aspect-ratio: 16 / 9; }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-fade-in-down { animation: fadeInDown 0.3s ease-out forwards; }

@keyframes gradientX {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-gradient-x { animation: gradientX 3s ease infinite; }

/* Logo Effects */
/* Scan/Sweep Effect - Applied to container of image */
.logo-scan {
    position: relative;
    overflow: hidden;
}
/* Ensure image is BELOW the scan effect so the shine is visible */
.logo-scan img {
    position: relative;
    z-index: 10;
}
.logo-scan::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: scan 3s infinite linear;
    pointer-events: none;
    z-index: 20;
}
@keyframes scan {
    0% { left: -100%; }
    30% { left: 200%; }
    100% { left: 200%; }
}

/* Color Change Effect - Applied to image itself */
.logo-color {
    animation: hueRotate 5s infinite linear;
    animation-play-state: paused;
}
.logo-color:hover {
    animation-play-state: running;
}
@keyframes hueRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Shortcodes */
.shortcode-box {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    border-left-width: 4px;
    font-size: 0.95rem;
}
.shortcode-info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}
.shortcode-success {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}
.shortcode-warning {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}
.shortcode-error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}
.shortcode-download {
    background-color: #f3f4f6;
    border: 1px dashed #9ca3af;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Additional Shortcodes */
.shortcode-note {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #4b5563;
}
.shortcode-tip {
    background-color: #f3e8ff;
    border-color: #9333ea;
    color: #6b21a8;
}
.shortcode-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0.25rem 0;
}
.shortcode-btn-blue { background-color: #2563eb; color: white; }
.shortcode-btn-blue:hover { background-color: #1d4ed8; color: white; }
.shortcode-btn-red { background-color: #dc2626; color: white; }
.shortcode-btn-red:hover { background-color: #b91c1c; color: white; }
.shortcode-btn-green { background-color: #10b981; color: white; }
.shortcode-btn-green:hover { background-color: #047857; color: white; }
.shortcode-btn-yellow { background-color: #f59e0b; color: white; }
.shortcode-btn-yellow:hover { background-color: #d97706; color: white; }
.shortcode-btn-outline { background-color: transparent; border: 1px solid #d1d5db; color: #4b5563; }
.shortcode-btn-outline:hover { background-color: #f3f4f6; color: #1f2937; }

.shortcode-collapse {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1rem 0;
}
.shortcode-collapse summary {
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shortcode-collapse summary::-webkit-details-marker { display: none; }
.shortcode-collapse summary::after {
    content: '+';
    font-weight: bold;
    font-size: 1.25rem;
}
.shortcode-collapse[open] summary::after { content: '-'; }
.shortcode-collapse-content {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.shortcode-timeline {
    border-left: 2px solid #e5e7eb;
    margin-left: 1rem;
    padding-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.shortcode-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.shortcode-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.9rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #3b82f6;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #e5e7eb;
}
.shortcode-timeline-title { font-weight: bold; color: #111827; margin-bottom: 0.25rem; }

.shortcode-hide-box {
    background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #ffffff 10px, #ffffff 20px);
    border: 1px dashed #d1d5db;
    padding: 2rem;
    text-align: center;
    border-radius: 0.5rem;
    color: #6b7280;
    margin: 1rem 0;
}
.shortcode-login-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    color: #1e40af;
    margin: 1rem 0;
}
