/* 蓝图娱乐 - AI漫剧平台 自适应样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif; background: #ffffff; color: #333333; line-height: 1.8; min-height: 100vh; }
a { color: #1a73e8; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0d5bc4; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-header { background: #ffffff; border-bottom: 1px solid #e8e8e8; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { font-size: 22px; font-weight: 700; color: #1a73e8; letter-spacing: 1px; }
.site-logo span { color: #333333; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: #333333; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: #333333; cursor: pointer; padding: 4px 8px; }

/* 横幅 */
.hero-section { background: linear-gradient(135deg, #e8f0fe 0%, #f5f8ff 50%, #ffffff 100%); padding: 60px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: start; }
.hero-left, .hero-right { background: #ffffff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.hero-center { text-align: center; padding: 20px; }
.hero-center h1 { font-size: 32px; color: #1a3a6b; margin-bottom: 16px; line-height: 1.4; }
.hero-center p { font-size: 16px; color: #555555; margin-bottom: 24px; line-height: 1.8; }
.hero-search { display: flex; max-width: 520px; margin: 0 auto 20px; }
.hero-search input { flex: 1; height: 44px; border: 2px solid #1a73e8; border-right: none; border-radius: 22px 0 0 22px; padding: 0 18px; font-size: 15px; outline: none; }
.hero-search input:focus { border-color: #0d5bc4; }
.hero-search button { height: 44px; padding: 0 28px; background: #1a73e8; color: #ffffff; border: none; border-radius: 0 22px 22px 0; font-size: 15px; cursor: pointer; transition: background 0.2s; }
.hero-search button:hover { background: #0d5bc4; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-tags a { display: inline-block; padding: 4px 14px; background: #f0f4ff; color: #1a73e8; border-radius: 14px; font-size: 13px; transition: all 0.2s; }
.hero-tags a:hover { background: #1a73e8; color: #ffffff; }
.side-title { font-size: 15px; font-weight: 700; color: #1a3a6b; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #1a73e8; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed #eeeeee; }
.side-list li:last-child { border-bottom: none; }
.side-list a { color: #444444; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list a:hover { color: #1a73e8; }
.side-list .rank { display: inline-block; width: 18px; height: 18px; background: #cccccc; color: #ffffff; text-align: center; line-height: 18px; border-radius: 3px; font-size: 11px; margin-right: 6px; }
.side-list li:nth-child(1) .rank { background: #ff4444; }
.side-list li:nth-child(2) .rank { background: #ff7744; }
.side-list li:nth-child(3) .rank { background: #ffaa44; }

/* 分类区 */
.section { padding: 40px 0; }
.section:nth-child(even) { background: #f8fafd; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 22px; color: #1a3a6b; font-weight: 700; position: relative; padding-left: 14px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: #1a73e8; border-radius: 2px; }
.section-more { color: #1a73e8; font-size: 14px; }
.section-more:hover { color: #0d5bc4; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-item { background: #ffffff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.card-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.card-thumb { position: relative; padding-top: 133%; background: #f0f4ff; overflow: hidden; }
.card-thumb-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #1a73e8; background: linear-gradient(135deg, #e8f0fe, #d4e4fc); }
.card-badge { position: absolute; top: 8px; left: 8px; padding: 2px 10px; background: #1a73e8; color: #ffffff; font-size: 12px; border-radius: 10px; }
.card-info { padding: 12px 14px; }
.card-info h3 { font-size: 15px; color: #333333; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-info p { font-size: 13px; color: #888888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 内容区 */
.content-area { padding: 30px 0; }
.content-main { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.article-box { background: #ffffff; border-radius: 10px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.article-box h2 { font-size: 20px; color: #1a3a6b; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eeeeee; }
.article-box h3 { font-size: 17px; color: #1a3a6b; margin: 20px 0 10px; }
.article-box p { font-size: 15px; color: #444444; line-height: 2; margin-bottom: 14px; text-indent: 2em; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: #999999; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.sidebar-box { background: #ffffff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 20px; }
.sidebar-box h3 { font-size: 16px; color: #1a3a6b; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #1a73e8; }

/* 面包屑 */
.breadcrumb { padding: 14px 0; font-size: 14px; color: #888888; }
.breadcrumb a { color: #666666; }
.breadcrumb a:hover { color: #1a73e8; }
.breadcrumb span { margin: 0 6px; color: #cccccc; }

/* 分类列表 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { background: #ffffff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s; text-align: center; }
.cat-card:hover { transform: translateY(-3px); }
.cat-icon { font-size: 42px; margin-bottom: 12px; }
.cat-card h3 { font-size: 17px; color: #1a3a6b; margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: #777777; margin-bottom: 12px; }
.cat-count { font-size: 13px; color: #1a73e8; }

/* 页脚 */
.site-footer { background: #1a2a44; color: #cccccc; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #ffffff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; color: #aaaaaa; font-size: 14px; padding: 3px 0; }
.footer-col a:hover { color: #ffffff; }
.footer-col p { font-size: 14px; color: #aaaaaa; line-height: 1.8; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #2a3a54; font-size: 13px; color: #888888; }

/* 浮动按钮 - 左上角 外部链接 */
.site-float { position: fixed; top: 80px; left: 12px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.site-float a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #1a73e8; color: #ffffff; border-radius: 50%; font-size: 12px; box-shadow: 0 2px 8px rgba(26,115,232,0.3); transition: transform 0.2s; text-align: center; line-height: 1.2; }
.site-float a:hover { transform: scale(1.1); color: #ffffff; }

/* 浮动按钮 - 左上角下方 内部链接 */
.promo-float { position: fixed; top: 200px; left: 12px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.promo-float a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #ff6b35; color: #ffffff; border-radius: 50%; font-size: 12px; box-shadow: 0 2px 8px rgba(255,107,53,0.3); transition: transform 0.2s; text-align: center; line-height: 1.2; }
.promo-float a:hover { transform: scale(1.1); color: #ffffff; }

/* 浮动按钮 - 右上角 白色圆圈 */
.util-float { position: fixed; top: 80px; right: 12px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.util-float a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #ffffff; color: #333333; border-radius: 50%; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: transform 0.2s; border: 1px solid #e8e8e8; }
.util-float a:hover { transform: scale(1.1); color: #1a73e8; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 30px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #dddddd; border-radius: 6px; font-size: 14px; color: #555555; transition: all 0.2s; }
.pagination a:hover { border-color: #1a73e8; color: #1a73e8; }
.pagination .current { background: #1a73e8; color: #ffffff; border-color: #1a73e8; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-block; padding: 4px 14px; background: #f5f5f5; color: #555555; border-radius: 14px; font-size: 13px; transition: all 0.2s; }
.tag-cloud a:hover { background: #1a73e8; color: #ffffff; }

/* 友情链接 */
.friend-links { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid #eeeeee; }
.friend-links a { font-size: 14px; color: #666666; }
.friend-links a:hover { color: #1a73e8; }

/* 红色醒目按钮 */
.cta-float { position: fixed; top: 330px; left: 12px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.cta-float a { display: flex; align-items: center; justify-content: center; width: 136px; height: 48px; background: #e53935; color: #ffffff; border-radius: 24px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(229,57,53,0.45); transition: transform 0.2s, box-shadow 0.2s; text-align: center; letter-spacing: 1px; }
.cta-float a:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(229,57,53,0.55); color: #ffffff; background: #c62828; }

/* 响应式 - 平板 */
@media screen and (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-left, .hero-right { display: none; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .content-main { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 响应式 - 手机 */
@media screen and (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #ffffff; flex-direction: column; padding: 16px; gap: 0; border-bottom: 1px solid #e8e8e8; box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
    .nav-toggle { display: block; }
    .hero-section { padding: 30px 0; }
    .hero-center h1 { font-size: 24px; }
    .hero-center p { font-size: 14px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-grid { grid-template-columns: 1fr; }
    .section { padding: 24px 0; }
    .section-title { font-size: 18px; }
    .article-box { padding: 16px; }
    .article-box p { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-float, .promo-float { left: 6px; }
    .site-float a, .promo-float a { width: 38px; height: 38px; font-size: 11px; }
    .cta-float { top: 280px; left: 6px; }
    .cta-float a { width: 110px; height: 40px; font-size: 12px; }
    .util-float { right: 6px; }
    .util-float a { width: 38px; height: 38px; font-size: 14px; }
}

@media screen and (max-width: 480px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-info { padding: 8px 10px; }
    .card-info h3 { font-size: 13px; }
    .hero-search { flex-direction: column; gap: 8px; }
    .hero-search input { border-radius: 22px; border-right: 2px solid #1a73e8; }
    .hero-search button { border-radius: 22px; height: 40px; }
}
