/* 羞羞漫画官网 - 统一主样式 */

/* 性能优化 */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
}

/* CSS 变量 */
:root {
    --primary: #ff6b9d;
    --secondary: #4ecdc4;
    --accent: #45b7d1;
    --dark: #2c3e50;
    --light: #ffffff;
    --gray: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, #ff6b9d 0%, #4ecdc4 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    font-size: 14px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 网站容器 */
.site-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部导航 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo-link {
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slogan {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 导航菜单 */
.primary-nav .nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.nav-item {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary);
}

.nav-item.cta-btn {
    background: var(--gradient);
    color: var(--light);
    font-weight: 600;
}

.nav-item.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding-top: 70px;
}

/* 页面头部 */
.page-hero {
    background: var(--gradient);
    color: var(--light);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
}

/* 英雄区域 */
.hero-section {
    width: 100%;
    background: var(--gradient);
    color: var(--light);
    padding: 80px 0;
    position: relative;
    box-sizing: border-box;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-text {
    padding-right: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 500;
}

.brand-name {
    color: #ffd700;
}

.highlight {
    color: #ffd700;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 统计数据 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
    width: 100%;
    max-width: 100%;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    min-width: 0;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-note {
    font-size: 12px;
    opacity: 0.8;
}

/* 按钮 */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #ffd700;
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 英雄图片 */
.hero-visual {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
}

.float-item[data-delay="0"] {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.float-item[data-delay="1"] {
    top: 60%;
    left: 5%;
    animation-delay: 1.5s;
}

.float-item[data-delay="2"] {
    bottom: 25%;
    right: 15%;
    animation-delay: 3s;
}

.item-emoji {
    font-size: 18px;
}

/* 服务区域 */
.services-section {
    width: 100%;
    padding: 80px 0;
    background: var(--light);
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.service-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    padding: 6px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.service-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* 评价区域 */
.reviews-section {
    width: 100%;
    padding: 80px 0;
    background: var(--gray);
    box-sizing: border-box;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.review-card {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-badge {
    font-size: 12px;
    color: #666;
}

.review-rating {
    font-size: 18px;
    margin-bottom: 15px;
}

.review-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.user-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--gray);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
}

/* 功能区域 */
.features-section {
    width: 100%;
    padding: 80px 0;
    background: var(--light);
    box-sizing: border-box;
}

/* 内容展示区域 */
.showcase-section {
    width: 100%;
    padding: 80px 0;
    background: var(--gray);
    box-sizing: border-box;
}

/* 新闻区域 */
.news-section {
    width: 100%;
    padding: 80px 0;
    background: var(--light);
    box-sizing: border-box;
}

/* 页脚 */
.main-footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-desc {
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 8px;
    color: #bbb;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
        height: auto;
        min-height: 70px;
    }
    
    .main-header {
        height: auto;
        position: relative;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section,
    .page-hero {
        padding: 40px 0;
    }
    
    .services-section {
        padding: 40px 0;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .float-item {
        display: none;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
}

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

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a8a;
}

/* 通用卡片样式 */
.card {
    background: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* 通用表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

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

/* 通用标签样式 */
.tag {
    display: inline-block;
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 通用徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: var(--dark);
}

.badge-info {
    background: var(--accent);
    color: white;
}