/* ===== RiPro风格 付费下载模板 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: all 0.2s; }
a:hover { color: #ff6b35; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== 顶部导航 ===== */
.site-header { background: #1a1f2e; color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.header-inner { display: flex; align-items: center; height: 60px; }
.site-logo { font-size: 22px; font-weight: 700; color: #fff; margin-right: 40px; display: flex; align-items: center; gap: 8px; }
.site-logo i { color: #ff6b35; font-size: 26px; }
.site-logo img { height: 36px; }
.main-nav { display: flex; gap: 5px; flex: 1; }
.main-nav a { padding: 8px 16px; border-radius: 6px; color: #c0c6d4; font-size: 14px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,107,53,0.15); color: #ff6b35; }
.header-right { display: flex; align-items: center; gap: 15px; }
.header-right a { color: #c0c6d4; font-size: 14px; }
.header-right a:hover { color: #ff6b35; }
.btn-vip { background: linear-gradient(135deg, #ff6b35, #ff8c42); color: #fff !important; padding: 6px 18px; border-radius: 20px; font-weight: 600; font-size: 13px; }
.btn-vip:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,53,0.4); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2d3548; display: flex; align-items: center; justify-content: center; color: #ff6b35; font-weight: 600; }

/* ===== Hero搜索区 ===== */
.hero-section { background: linear-gradient(135deg, #1a1f2e 0%, #2d3548 50%, #1a1f2e 100%); padding: 60px 0 50px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(255,107,53,0.08) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(66,133,244,0.08) 0%, transparent 50%); animation: float 20s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-2%,2%); } }
.hero-content { position: relative; text-align: center; max-width: 700px; margin: 0 auto; }
.hero-title { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.hero-title span { color: #ff6b35; }
.hero-subtitle { font-size: 15px; color: #8b95a8; margin-bottom: 30px; }
.search-box { display: flex; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.2); max-width: 600px; margin: 0 auto; }
.search-box select { border: none; padding: 0 15px; font-size: 14px; color: #666; background: #f5f7fa; border-right: 1px solid #eee; outline: none; cursor: pointer; }
.search-box input { flex: 1; border: none; padding: 14px 20px; font-size: 15px; outline: none; }
.search-box button { background: linear-gradient(135deg, #ff6b35, #ff8c42); color: #fff; border: none; padding: 0 30px; font-size: 15px; cursor: pointer; font-weight: 600; }
.search-box button:hover { opacity: 0.9; }
.hot-tags { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hot-tags a { padding: 4px 14px; background: rgba(255,255,255,0.08); border-radius: 15px; font-size: 12px; color: #8b95a8; }
.hot-tags a:hover { background: rgba(255,107,53,0.2); color: #ff6b35; }

/* ===== 公告条 ===== */
.notice-bar { background: #fff; border-bottom: 1px solid #eee; padding: 10px 0; }
.notice-inner { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.notice-inner i { color: #ff6b35; }
.notice-inner a { color: #666; }
.notice-inner a:hover { color: #ff6b35; }

/* ===== 主内容区 ===== */
.main-content { padding: 30px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 700; color: #1a1f2e; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 20px; background: linear-gradient(180deg, #ff6b35, #ff8c42); border-radius: 2px; }
.section-more { color: #999; font-size: 13px; }
.section-more:hover { color: #ff6b35; }
.section-cats { display: flex; align-items: center; gap: 8px; flex: 1; margin-left: 20px; }
.section-cats .cat-link { color: #666; font-size: 13px; padding: 4px 12px; border-radius: 14px; transition: all 0.2s; }
.section-cats .cat-link:hover { color: #ff6b35; background: #fff5f0; }
.section-cats .cat-link.active { color: #fff; background: linear-gradient(135deg, #ff6b35, #ff8c42); }

/* ===== 资源卡片网格 ===== */
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.resource-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s; cursor: pointer; }
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.card-thumb { position: relative; width: 100%; padding-top: 60%; background: #f0f2f5; overflow: hidden; }
.card-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.resource-card:hover .card-thumb img { transform: scale(1.05); }
.card-price { position: absolute; top: 10px; right: 10px; background: linear-gradient(135deg, #ff6b35, #ff8c42); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.card-price.free { background: linear-gradient(135deg, #52c41a, #73d13d); }
.card-price.vip { background: linear-gradient(135deg, #faad14, #ffc53d); }
.card-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.card-body { padding: 14px; }
.card-title { font-size: 14px; font-weight: 600; color: #1a1f2e; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #999; }
.card-meta-left { display: flex; gap: 12px; }
.card-meta-left span { display: flex; align-items: center; gap: 3px; }

/* ===== 分类筛选 ===== */
.filter-bar { background: #fff; border-radius: 10px; padding: 15px 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.filter-row { display: flex; align-items: flex-start; gap: 15px; padding: 8px 0; border-bottom: 1px dashed #eee; }
.filter-row:last-child { border-bottom: none; }
.filter-label { width: 70px; color: #999; font-size: 13px; flex-shrink: 0; padding-top: 4px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-options a { padding: 4px 14px; border-radius: 15px; font-size: 13px; color: #666; background: #f5f7fa; }
.filter-options a:hover, .filter-options a.active { background: #ff6b35; color: #fff; }

/* ===== 资源详情页 ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 25px; }
.detail-main { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.detail-title { font-size: 24px; font-weight: 700; color: #1a1f2e; margin-bottom: 15px; line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 20px; padding: 15px 0; border-bottom: 1px solid #eee; margin-bottom: 20px; font-size: 13px; color: #999; }
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-content { font-size: 15px; line-height: 1.8; color: #444; }
.detail-content img { max-width: 100%; border-radius: 8px; margin: 15px 0; }
.detail-content h2, .detail-content h3 { margin: 25px 0 15px; color: #1a1f2e; }
.detail-content p { margin-bottom: 15px; }
.detail-content pre { background: #f5f7fa; padding: 15px; border-radius: 8px; overflow-x: auto; font-size: 13px; }

/* 详情侧边栏 */
.detail-sidebar { position: sticky; top: 80px; align-self: start; }
.download-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.download-card-header { background: linear-gradient(135deg, #1a1f2e, #2d3548); color: #fff; padding: 20px; text-align: center; }
.download-card-header .price { font-size: 32px; font-weight: 700; color: #ff6b35; }
.download-card-header .price.free { color: #52c41a; }
.download-card-header .price-label { font-size: 12px; color: #8b95a8; margin-top: 5px; }
.download-card-body { padding: 20px; }
.download-info { font-size: 13px; color: #666; margin-bottom: 15px; }
.download-info li { padding: 6px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; }
.download-info li:last-child { border-bottom: none; }
.btn-download { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, #ff6b35, #ff8c42); color: #fff; text-align: center; border-radius: 8px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); color: #fff; }
.btn-buy { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, #ff6b35, #ff8c42); color: #fff; text-align: center; border-radius: 8px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; margin-bottom: 10px; }
.btn-buy:hover { opacity: 0.9; color: #fff; }
.btn-vip-buy { display: block; width: 100%; padding: 12px; background: linear-gradient(135deg, #faad14, #ffc53d); color: #fff; text-align: center; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.btn-vip-buy:hover { opacity: 0.9; color: #fff; }
.download-tips { margin-top: 15px; padding: 12px; background: #fff7e6; border-radius: 8px; font-size: 12px; color: #d48806; line-height: 1.6; }
.demo-url { margin-top: 10px; }
.demo-url a { display: block; padding: 10px; background: #f0f5ff; color: #2f54eb; border-radius: 6px; text-align: center; font-size: 13px; }
.demo-url a:hover { background: #e6f0ff; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 6px; background: #fff; color: #666; font-size: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.pagination a:hover { background: #ff6b35; color: #fff; }
.pagination .current { background: #ff6b35; color: #fff; font-weight: 600; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }

/* ===== 底部 ===== */
.site-footer { background: #1a1f2e; color: #8b95a8; padding: 40px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-about h4 { color: #fff; font-size: 16px; margin-bottom: 15px; }
.footer-about p { font-size: 13px; line-height: 1.8; }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 15px; }
.footer-col a { display: block; padding: 4px 0; font-size: 13px; color: #8b95a8; }
.footer-col a:hover { color: #ff6b35; }
.footer-bottom { border-top: 1px solid #2d3548; padding-top: 20px; text-align: center; font-size: 12px; }
.footer-bottom a { color: #8b95a8; }

/* ===== VIP页面 ===== */
.vip-hero { background: linear-gradient(135deg, #1a1f2e, #2d3548); padding: 50px 0; text-align: center; color: #fff; }
.vip-hero h1 { font-size: 32px; margin-bottom: 10px; }
.vip-hero h1 span { color: #faad14; }
.vip-hero p { color: #8b95a8; font-size: 15px; }
.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 900px; margin: -30px auto 0; position: relative; z-index: 10; }
.vip-plan { background: #fff; border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,0.1); transition: all 0.3s; }
.vip-plan:hover { transform: translateY(-5px); }
.vip-plan.featured { border: 2px solid #faad14; position: relative; }
.vip-plan.featured::before { content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #faad14, #ffc53d); color: #fff; padding: 4px 20px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.vip-plan h3 { font-size: 20px; color: #1a1f2e; margin-bottom: 10px; }
.vip-plan .price { font-size: 36px; font-weight: 700; color: #faad14; margin: 15px 0; }
.vip-plan .price span { font-size: 14px; color: #999; font-weight: normal; }
.vip-plan ul { text-align: left; margin: 20px 0; }
.vip-plan li { padding: 8px 0; font-size: 14px; color: #666; display: flex; align-items: center; gap: 8px; }
.vip-plan li i { color: #52c41a; }
.vip-plan .btn { display: block; width: 100%; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; }
.vip-plan .btn-primary { background: linear-gradient(135deg, #faad14, #ffc53d); color: #fff; }
.vip-plan .btn-outline { background: #fff; color: #faad14; border: 2px solid #faad14; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .resource-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .vip-plans { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 768px) {
    .resource-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .main-nav { display: none; }
    .hero-title { font-size: 24px; }
    .search-box { flex-direction: column; border-radius: 12px; }
    .search-box select { padding: 10px; border-right: none; border-bottom: 1px solid #eee; }
    .search-box button { padding: 12px; }
    .detail-main { padding: 20px; }
    .detail-title { font-size: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .resource-grid { grid-template-columns: 1fr; }
}
