/* 妖精漫画网站样式 */
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #ff6b9d;
    --primary-dark: #e55a8c;
    --secondary: #4ecdc4;
    --accent: #ff9f1c;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #2ecc71;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-logo svg {
    width: 36px;
    height: 36px;
    transition: transform 0.3s;
}

.nav-logo:hover svg {
    transform: rotate(10deg);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 157, 0.85), rgba(78, 205, 196, 0.85));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-image {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image svg {
    max-width: 90%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    margin: 10px;
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.btn-full {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* 特色功能区域 */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #ff8ab0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: rotate(15deg) scale(1.1);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* 热门漫画区域 */
.comics {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f0f4f8, #e2e8f0);
}

.comics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.comic-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.comic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.comic-cover {
    height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comic-cover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.comic-cover-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.comic-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.comic-info {
    padding: 20px;
}

.comic-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.comic-info p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    min-height: 60px;
}

.comic-stats {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
}

.comic-rating {
    color: var(--accent);
    font-weight: 600;
}

.comic-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

/* 登录区域 */
.login {
    padding: 100px 0;
    background: white;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.login h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.login p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.login-footer {
    color: var(--gray);
    font-size: 1rem;
}

.register-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.register-link:hover {
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-logo svg {
    width: 36px;
    height: 36px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

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

@keyframes fadeIn {
    from {
		opacity: 0;
    }
    to {
		opacity: 1;
    }
}

@keyframes float {
    0% {
		transform: translateY(0px);
    }
    50% {
		transform: translateY(-20px);
    }
    100% {
		transform: translateY(0px);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
		font-size: 2.8rem;
    }
    
    .hero p {
		font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
		position: fixed;
		top: 80px;
		right: -100%;
		flex-direction: column;
		background: white;
		width: 280px;
		height: calc(100vh - 80px);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		padding: 40px 30px;
		transition: all 0.3s ease;
		gap: 25px;
    }
    
    .nav-menu.active {
		right: 0;
    }
    
    .nav-toggle {
		display: flex;
    }
    
    .hero h1 {
		font-size: 2.3rem;
    }
    
    .hero p {
		font-size: 1.1rem;
    }
    
    .section-title h2 {
		font-size: 2rem;
    }
    
    .login-container {
		padding: 30px;
    }
    
    .feature-card {
		padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
		flex-direction: column;
    }
    
    .btn {
		width: 100%;
		margin: 8px 0;
    }
    
    .hero h1 {
		font-size: 2rem;
    }
    
    .section-title h2 {
		font-size: 1.8rem;
    }
    
    .comic-cover {
		height: 320px;
    }
}