/*
Theme Name: 锐见灯塔 - 绝美首版回归
Description: 极简卡片风，自带呼吸感，高颜值资源库
*/

:root {
    --primary-color: #0052D9;
    --vip-color: #FFB300;
    --bg-color: #F4F6F8;
    --text-main: #333333;
    --text-sub: #777777;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); }
a { text-decoration: none; color: inherit; }

/* 顶部导航栏 - 极致简洁 */
.header { background: #fff; padding: 0 50px; height: 70px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }
.logo::before { content: '🗼'; font-size: 28px; }
.nav-links { display: flex; gap: 30px; font-size: 16px; font-weight: 500; }
.nav-links a:hover { color: var(--primary-color); }
.user-actions { display: flex; align-items: center; gap: 20px; }
.btn-vip { background: linear-gradient(135deg, #FFD000, #FF9900); color: #fff; padding: 8px 20px; border-radius: 20px; font-weight: bold; transition: 0.3s; box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3); }

/* 核心搜索区 (Hero Section) - 网站的门面 */
.hero { background: linear-gradient(to bottom, #fff, var(--bg-color)); padding: 80px 20px; text-align: center; }
.hero h1 { font-size: 42px; margin-bottom: 20px; letter-spacing: 2px; font-weight: 800; color: #1a2b4c; }
.hero p { color: var(--text-sub); margin-bottom: 40px; font-size: 18px; }
.search-box { max-width: 650px; margin: 0 auto; display: flex; background: #fff; border-radius: 35px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.07); border: 2px solid transparent; transition: 0.3s; }
.search-box:focus-within { border-color: var(--primary-color); transform: scale(1.02); }
.search-box input { flex: 1; border: none; padding: 18px 30px; outline: none; font-size: 16px; }
.search-box button { background: var(--primary-color); color: #fff; border: none; padding: 0 35px; font-size: 16px; cursor: pointer; font-weight: bold; }

/* 资源展示网格 */
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px 80px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

/* 资源卡片 - 即使没图也要美 */
.card { background: #fff; border-radius: 16px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; position: relative; border: 1px solid rgba(0,0,0,0.03); }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* 自动占位图特效：如果没有图，会显示漂亮的渐变 */
.card-img { height: 180px; width: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background-size: cover; background-position: center; }
.card:nth-child(2n) .card-img { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card:nth-child(3n) .card-img { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.card:nth-child(4n) .card-img { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

.badge-vip { position: absolute; top: 12px; right: 12px; background: var(--vip-color); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 6px; font-weight: bold; }
.card-content { padding: 20px; }
.card-title { font-size: 18px; margin-bottom: 12px; font-weight: 600; line-height: 1.5; height: 54px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-sub); font-size: 13px; margin-top: 15px; border-top: 1px solid #f9f9f9; padding-top: 15px; }
.price-tag { color: var(--primary-color); font-weight: bold; font-size: 15px; }

/* 页脚 */
.footer { text-align: center; padding: 60px 20px; background: #fff; color: var(--text-sub); margin-top: 40px; border-top: 1px solid #eee; }
