/* 本地化样式文件 - 拷贝漫画阅读平台 */

/* 基础样式 */
:root {
    --primary-purple: #8B5CF6;
    --primary-blue: #06B6D4;
    --accent-pink: #EC4899;
    --accent-yellow: #F59E0B;
    --dark-bg: #1A1A2E;
    --card-bg: #16213E;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0F172A 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* 漫画风格装饰 */
.manga-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
}

.manga-bubble {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 20px;
    padding: 10px 20px;
    position: relative;
    display: inline-block;
}

.manga-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-purple);
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* 卡片悬停效果 */
.manga-card {
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--card-bg), #1E293B);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.manga-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

/* 按钮样式 */
.download-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 9999px;
    font-weight: 600;
}

.download-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;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* 分类标签 */
.category-tag {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-yellow));
    transition: all 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-bg-1 {
    background-image: url('1.png');
    position: relative;
}

.category-bg-1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.4), rgba(22, 33, 62, 0.3));
    border-radius: 1rem;
    z-index: -1;
}

.category-bg-2 {
    background-image: url('2.png');
    position: relative;
}

.category-bg-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.4), rgba(22, 33, 62, 0.3));
    border-radius: 1rem;
    z-index: -1;
}

.category-bg-3 {
    background-image: url('3.png');
    position: relative;
}

.category-bg-3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.4), rgba(22, 33, 62, 0.3));
    border-radius: 1rem;
    z-index: -1;
}

.category-bg-4 {
    background-image: url('4.png');
    position: relative;
}

.category-bg-4::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.4), rgba(22, 33, 62, 0.3));
    border-radius: 1rem;
    z-index: -1;
}

.category-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.navbar-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.5rem;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #A78BFA;
}

.navbar-toggle {
    display: block;
    color: #D1D5DB;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.navbar-toggle:hover {
    color: #A78BFA;
}

/* 主要内容区域 */
.main-content {
    padding-top: 4rem;
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('background.png') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.9) 50%, 
        rgba(15, 23, 42, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 0 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #F1F5F9, #E2E8F0, #CBD5E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(241, 245, 249, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-features {
    display: inline-block;
    margin-bottom: 0;
}

.hero-download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.hero-download-btn span {
    margin-right: 0.5rem;
}

/* 特色功能区域 */
.features-section {
    padding: 5rem 1rem;
}

.features-container {
    max-width: 80rem;
    margin: 0 auto;
}

.features-layout {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.features-header {
    flex: 1;
    text-align: left;
    margin-bottom: 0;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-subtitle {
    font-size: 1.25rem;
    color: #D1D5DB;
    max-width: 100%;
    margin: 0;
}

.features-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: #D1D5DB;
}

/* 分类展示区域 */
.categories-section {
    padding: 5rem 1rem;
    background: linear-gradient(to right, rgba(88, 28, 135, 0.2), rgba(30, 58, 138, 0.2));
}

.categories-container {
    max-width: 80rem;
    margin: 0 auto;
}

.categories-header {
    text-align: center;
    margin-bottom: 4rem;
}

.categories-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-item {
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.category-item span {
    display: block;
    margin-bottom: 0.5rem;
}

.category-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* 下载区域 */
.download-section {
    padding: 5rem 1rem;
}

.download-container {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.download-card {
    padding: 3rem;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.download-card::before,
.download-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.download-card::before {
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.2));
    transform: translate(-4rem, -4rem);
}

.download-card::after {
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(to bottom right, rgba(236, 72, 153, 0.2), rgba(245, 158, 11, 0.2));
    transform: translate(3rem, 3rem);
}

.download-content {
    position: relative;
    z-index: 10;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-subtitle {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.download-btn-large {
    display: inline-flex;
    align-items: center;
    padding: 1.5rem 3rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.download-btn-large span {
    margin-right: 0.75rem;
}

.download-note {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-top: 1rem;
}

.download-features {
    font-size: 0.875rem;
    color: #A78BFA;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 3rem;
    width: 3rem;
    border-radius: 0.5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #D1D5DB;
    max-width: 28rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-info-item span:first-child {
    color: #A78BFA;
}

.footer-info-item span:nth-child(2) {
    color: #D1D5DB;
}

.footer-info-item a {
    color: #A78BFA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info-item a:hover {
    color: #C4B5FD;
}

.footer-bottom {
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #9CA3AF;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
    
    .navbar-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

@media (max-width: 1023px) {
    .features-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .features-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .features-subtitle {
        max-width: 42rem;
        margin: 0 auto;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-yellow));
}

/* 工具类 */
.text-gradient {
    background: linear-gradient(to right, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
}

.bg-gradient-pink {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-yellow));
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--primary-blue), #10B981);
}

/* 动画类 */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}



/* 文字颜色类 */
.text-purple-400 { color: #A78BFA; }
.text-pink-400 { color: #EC4899; }
.text-blue-400 { color: #22D3EE; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }

/* 字体大小类 */
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* 字体粗细类 */
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* 布局类 */
.min-h-screen { min-height: 100vh; } 