/* 半糖次元主样式文件 - 二次元风格设计 */
:root {
    --btcy-primary: #ec4899;
    --btcy-secondary: #8b5cf6;
    --btcy-accent: #3b82f6;
    --btcy-pink: #f472b6;
    --btcy-purple: #a855f7;
    --btcy-indigo: #6366f1;
    --btcy-white: #ffffff;
    --btcy-bg-dark: rgba(0, 0, 0, 0.8);
    --btcy-border: rgba(244, 114, 182, 0.3);
    --btcy-text-light: #fce7f3;
    --btcy-shadow: rgba(236, 72, 153, 0.3);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 背景特效系统 */
.btcy-bg-wrapper {
    pointer-events: none;
}

.btcy-gradient-base {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    }
    25% {
        background: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #6366f1 100%);
    }
    50% {
        background: linear-gradient(135deg, #db2777 0%, #7c3aed 50%, #2563eb 100%);
    }
    75% {
        background: linear-gradient(135deg, #be185d 0%, #6d28d9 50%, #1d4ed8 100%);
    }
}

/* 樱花特效系统 */
.btcy-sakura-system::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(244, 114, 182, 0.6), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(99, 102, 241, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(244, 114, 182, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(168, 85, 247, 0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sakuraFall 20s linear infinite;
    opacity: 0.7;
}

@keyframes sakuraFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 浮动元素系统 */
.btcy-floating-elements::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(244, 114, 182, 0.1) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: floatingPulse 8s ease-in-out infinite;
}

@keyframes floatingPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* 星光效果系统 */
.btcy-starlight-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 25px 5px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 50px 25px, rgba(244, 114, 182, 0.8), transparent),
        radial-gradient(1px 1px at 125px 20px, rgba(168, 85, 247, 0.8), transparent),
        radial-gradient(1px 1px at 150px 75px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 175px 15px, rgba(99, 102, 241, 0.8), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starTwinkle 5s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.8;
    }
}

/* 导航栏样式 */
.btcy-main-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btcy-brand-link {
    transition: all 0.3s ease;
}

.btcy-brand-link:hover {
    transform: translateY(-2px);
}

.btcy-logo-main {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btcy-logo-main::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;
}

.btcy-brand-link:hover .btcy-logo-main::before {
    left: 100%;
}

.btcy-nav-menu a {
    position: relative;
    transition: all 0.3s ease;
}

.btcy-nav-menu a:hover {
    transform: translateY(-1px);
}

.btcy-nav-active {
    color: var(--btcy-pink) !important;
}

/* 按钮样式 */
.btcy-search-btn,
.btcy-login-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btcy-search-btn::before,
.btcy-login-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;
}

.btcy-search-btn:hover::before,
.btcy-login-btn:hover::before {
    left: 100%;
}

/* 英雄区域样式 */
.btcy-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btcy-hero-title {
    text-shadow: 0 4px 20px rgba(244, 114, 182, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 4px 20px rgba(244, 114, 182, 0.5);
    }
    100% {
        text-shadow: 0 4px 30px rgba(244, 114, 182, 0.8), 0 0 40px rgba(168, 85, 247, 0.5);
    }
}

.btcy-hero-desc {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out 0.5s both;
}

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

/* 按钮动画 */
.btcy-btn-primary,
.btcy-btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    animation: slideInUp 1s ease-out 0.8s both;
}

.btcy-btn-primary::before,
.btcy-btn-secondary::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.6s;
}

.btcy-btn-primary:hover::before,
.btcy-btn-secondary:hover::before {
    left: 100%;
}

.btcy-btn-primary:hover,
.btcy-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.4);
}

/* 统计面板样式 */
.btcy-stats-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideInUp 1s ease-out 1.1s both;
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.btcy-stat-item {
    transition: all 0.3s ease;
}

.btcy-stat-item:hover {
    transform: translateY(-5px);
}

.btcy-stat-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    text-shadow: 0 2px 10px currentColor;
}

/* 特色功能区域样式 */
.btcy-features-section {
    position: relative;
    z-index: 2;
}

.btcy-section-title {
    text-shadow: 0 2px 15px rgba(244, 114, 182, 0.5);
    animation: sectionTitleFade 1s ease-out;
}

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

/* 功能卡片样式 */
.btcy-feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcy-card-wrapper {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcy-feature-card:hover .btcy-card-wrapper {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(244, 114, 182, 0.2),
        0 0 0 1px rgba(244, 114, 182, 0.1);
}

.btcy-card-image {
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.btcy-feature-card:hover .btcy-card-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btcy-card-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(244, 114, 182, 0);
    }
}

.btcy-card-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcy-card-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.6s;
}

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

/* 漫画卡片样式 */
.btcy-manga-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcy-manga-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(244, 114, 182, 0.2);
}

.btcy-manga-cover {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.btcy-manga-cover img {
    transition: all 0.4s ease;
}

.btcy-manga-card:hover .btcy-manga-cover img {
    transform: scale(1.1);
}

.btcy-read-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btcy-manga-status,
.btcy-manga-rating {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btcy-manga-tags span {
    transition: all 0.2s ease;
}

.btcy-manga-tags span:hover {
    transform: scale(1.1);
}

/* 用户评价区域样式 */
.btcy-review-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcy-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.2);
}

.btcy-reviewer-avatar {
    transition: all 0.3s ease;
}

.btcy-review-card:hover .btcy-reviewer-avatar {
    transform: scale(1.1) rotate(5deg);
}

.btcy-rating i {
    transition: all 0.2s ease;
}

.btcy-rating:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 10px currentColor;
}

.btcy-satisfaction-summary {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 页脚样式 */
.btcy-main-footer {
    position: relative;
    z-index: 2;
}

.btcy-footer-divider {
    animation: dividerGlow 3s ease-in-out infinite alternate;
}

@keyframes dividerGlow {
    0% {
        box-shadow: 0 0 10px rgba(244, 114, 182, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(244, 114, 182, 0.6);
    }
}

.btcy-footer-link {
    transition: all 0.3s ease;
}

.btcy-footer-link:hover {
    transform: translateX(5px);
}

/* 回到顶部按钮 */
.btcy-scroll-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcy-scroll-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .btcy-hero-title {
        font-size: 2.5rem;
    }
    
    .btcy-hero-desc {
        font-size: 1rem;
    }
    
    .btcy-nav-menu {
        display: none;
    }
    
    .btcy-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btcy-hero-buttons button {
        width: 100%;
        max-width: 300px;
    }
    
    .btcy-stats-panel {
        padding: 1.5rem;
    }
    
    .btcy-card-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .btcy-hero-title {
        font-size: 2rem;
    }
    
    .btcy-section-title {
        font-size: 1.8rem;
    }
    
    .btcy-card-title {
        font-size: 1.5rem;
    }
    
    .btcy-manga-title {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btcy-card-interactive {
    animation: fadeInUp 0.6s ease-out;
}

.btcy-card-interactive:nth-child(1) { animation-delay: 0.1s; }
.btcy-card-interactive:nth-child(2) { animation-delay: 0.2s; }
.btcy-card-interactive:nth-child(3) { animation-delay: 0.3s; }

/* 特殊效果 */
.btcy-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1.5rem;
    pointer-events: none;
}

.btcy-feature-card:hover::before {
    opacity: 1;
}

/* 文字选择样式 */
::selection {
    background-color: rgba(244, 114, 182, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(244, 114, 182, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: rgba(244, 114, 182, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #db2777, #7c3aed);
}