/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #ff6b81;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff4757;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ff6b81;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #ff4757;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #ff6b81;
    border: 2px solid #ff6b81;
}

.btn-secondary:hover {
    background-color: #ff6b81;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #ff6b81;
    border: 2px solid #ff6b81;
}

.btn-outline:hover {
    background-color: #ff6b81;
    color: #fff;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin-right: 10px;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
}

.btn-download:hover {
    background-color: #000;
    color: #fff;
}

.btn-download i {
    margin-right: 8px;
}

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b81;
}

.site-logo {
    display: block;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #333;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #ff6b81;
    background-color: rgba(255, 107, 129, 0.1);
}

/* 横幅样式 */
.hero-banner {
    /* background-image: url('/template/fan/12aaaa/static/picture/c13.jpg'); */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 通用部分样式 */
.section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.section-header p {
    color: #666;
    font-size: 18px;
}

/* 卡片网格样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.read-more::after {
    content: "→";
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.read-more:hover::after {
    margin-left: 10px;
}

/* 新闻部分样式 */
.news-section {
    background-color: #f0f2f5;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 280px 1fr;
}

.news-image {
    height: 100%;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 漫画部分样式 */
.manga-section {
    background-color: #fff;
}

.manga-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.manga-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.manga-card:hover {
    transform: translateY(-5px);
}

.manga-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 107, 129, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.manga-info {
    padding: 15px;
    text-align: center;
}

.manga-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-author, .manga-tags {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 动画部分样式 */
.anime-section {
    background-color: #f0f2f5;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.anime-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.anime-card:hover {
    transform: translateY(-5px);
}

.anime-cover {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.anime-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anime-episode {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.anime-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 107, 129, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anime-card:hover .anime-play-btn {
    opacity: 1;
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.anime-info {
    padding: 15px;
}

.anime-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-meta {
    color: #888;
    font-size: 14px;
}

/* 社区部分样式 */
.community-section {
    background-color: #fff;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.community-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.community-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ff6b81;
    padding-bottom: 10px;
}

.topic-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.topic-list li:last-child {
    border-bottom: none;
}

.topic-list a {
    display: flex;
    flex-direction: column;
    color: #333;
}

.topic-list a:hover .topic-title {
    color: #ff6b81;
}

.topic-title {
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.topic-meta {
    font-size: 12px;
    color: #888;
}

.cosplay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cosplay-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.cosplay-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cosplay-item:hover img {
    transform: scale(1.05);
}

.cosplay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    font-size: 12px;
}

/* APP下载部分样式 */
.app-section {
    background-color: #f0f2f5;
    background-image: linear-gradient(135deg, #ff6b81 0%, #ff8e9e 100%);
    color: #fff;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.app-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.app-slogan {
    font-size: 20px;
    margin-bottom: 25px;
}

.app-features {
    margin-bottom: 30px;
}

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 10px;
}

.app-download {
    display: flex;
    margin-bottom: 20px;
}

.app-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-qrcode img {
    width: 120px;
    height: 120px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
}

.app-qrcode p {
    margin-top: 10px;
    font-size: 14px;
}

.app-preview {
    position: relative;
}

.app-screenshot {
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 商城部分样式 */
.shop-section {
    background-color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b81;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    color: #ff6b81;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.shop-more {
    text-align: center;
}

/* 页脚样式 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b81;
    display: inline-block;
}

.footer-column p {
    margin-bottom: 15px;
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
}

.footer-column ul li a:hover {
    color: #ff6b81;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.contact-info li i {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    background-color: #ff6b81;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #ff6b81;
}

.footer-middle {
    margin-bottom: 40px;
}

.footer-middle h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b81;
    display: inline-block;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.friend-links li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.friend-links a {
    color: #bdc3c7;
    font-size: 14px;
    padding: 5px 10px;
    background-color: #34495e;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.friend-links a:hover {
    background-color: #ff6b81;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 200px;
    }
    
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .app-preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 15px;
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        width: max-content;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .community-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .manga-slider {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 自定义图标样式 */
.icon-email:before {
    content: "✉";
}

.icon-phone:before {
    content: "☎";
}

.icon-address:before {
    content: "⌂";
}

.icon-weibo:before {
    content: "W";
}

.icon-wechat:before {
    content: "C";
}

.icon-bilibili:before {
    content: "B";
}

.icon-douyin:before {
    content: "D";
}

/* 背景透明轮播效果 */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,107,129,0.3) 0%, rgba(255,107,129,0) 70%);
    z-index: 1;
    animation: gradientMove 10s infinite alternate;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* 卡片悬停效果增强 */
.card, .manga-card, .anime-card, .product-card {
    position: relative;
    overflow: hidden;
}

.card:after, .manga-card:after, .anime-card:after, .product-card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 80%, rgba(255,107,129,0.1) 100%);
    pointer-events: none;
}

/* 导航栏悬停效果增强 */
.main-nav a {
    position: relative;
}

.main-nav a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff6b81;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover:after {
    width: 80%;
}

/* Android和iOS图标 */
.android-icon:before {
    content: "A";
    font-weight: bold;
}

.ios-icon:before {
    content: "i";
    font-weight: bold;
}

