/* 模板5 - 渐变清新风（紫蓝渐变主题） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f8f7fc; color: #444; }
a { text-decoration: none; color: #667eea; }
a:hover { color: #5a67d8; }
.con { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Head Wrap */
.head-wrap { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: rgba(255,255,255,0.8); padding: 8px 0; font-size: 13px; }
.head-wrap .con { display: flex; justify-content: space-between; }
.head-top-link a { color: rgba(255,255,255,0.7); margin-left: 15px; font-size: 12px; }
.head-top-link a:hover { color: #fff; }

/* Nav */
.nav-wrap { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid rgba(102,126,234,0.1); position: sticky; top: 0; z-index: 100; }
.nav-wrap .con { display: flex; align-items: center; gap: 35px; }
.nav-logo { font-size: 24px; font-weight: 800; }
.nav-logo a { background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu { display: flex; gap: 2px; }
.nav-menu a { color: #666; padding: 8px 18px; border-radius: 20px; font-size: 14px; transition: all 0.2s; }
.nav-menu a:hover { background: rgba(102,126,234,0.08); color: #667eea; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%); padding: 50px 0; }
.hero-box { text-align: center; color: #fff; }
.hero-box h1 { font-size: 32px; margin-bottom: 8px; font-weight: 700; }
.hero-box p { opacity: 0.85; margin-bottom: 20px; font-size: 15px; }
.hero-search { display: flex; max-width: 450px; margin: 0 auto; border-radius: 30px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.hero-search input { flex: 1; border: none; padding: 14px 22px; outline: none; font-size: 14px; }
.hero-search button { background: #5a67d8; color: #fff; border: none; padding: 14px 30px; font-weight: bold; cursor: pointer; font-size: 14px; }
.hero-search button:hover { background: #4c51bf; }

/* Category Strip */
.cat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; }
.cat-pill { display: flex; align-items: center; gap: 6px; background: #fff; padding: 10px 20px; border-radius: 25px; border: 1px solid #edeaf5; transition: all 0.2s; }
.cat-pill:hover { border-color: #667eea; box-shadow: 0 2px 12px rgba(102,126,234,0.12); transform: translateY(-2px); }
.cp-dot { width: 8px; height: 8px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 50%; }
.cat-pill span:last-child { font-size: 13px; color: #555; }

/* Section Label */
.section-label { display: flex; align-items: center; gap: 12px; margin: 25px 0 18px; }
.sl-bar { width: 4px; height: 22px; background: linear-gradient(180deg, #667eea, #764ba2); border-radius: 2px; }
.section-label h2 { font-size: 19px; color: #333; }
.sl-meta { font-size: 12px; color: #aaa; margin-left: auto; }

/* Resource Grid */
.res-grid { display: grid; gap: 15px; margin-bottom: 25px; }
.res-card { background: #fff; border-radius: 16px; padding: 18px; display: flex; gap: 18px; box-shadow: 0 2px 12px rgba(102,126,234,0.06); transition: all 0.3s; border: 1px solid #f0edf8; }
.res-card:hover { box-shadow: 0 6px 25px rgba(102,126,234,0.1); border-color: #d5cef0; }
.rc-img { width: 72px; height: 72px; background: linear-gradient(135deg, #f0edf8, #e4def5); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-img img { max-width: 54px; max-height: 54px; border-radius: 8px; }
.rc-body { flex: 1; min-width: 0; }
.rc-body h3 { font-size: 16px; margin-bottom: 6px; }
.rc-body h3 a { color: #333; }
.rc-body h3 a:hover { color: #667eea; }
.rc-tags { display: flex; gap: 8px; margin-bottom: 6px; }
.rc-tags span { font-size: 11px; padding: 2px 10px; border-radius: 10px; }
.rc-tags span:first-child { background: #f0edf8; color: #667eea; }
.rc-tags span:last-child { background: #f8f7fc; color: #999; }
.rc-body p { color: #aaa; font-size: 13px; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rc-foot { display: flex; align-items: center; gap: 12px; }
.rc-foot span { color: #bbb; font-size: 11px; margin-right: auto; }
.rc-dl { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 5px 22px; border-radius: 20px; font-size: 13px; transition: all 0.3s; }
.rc-dl:hover { transform: scale(1.05); box-shadow: 0 3px 12px rgba(102,126,234,0.3); color: #fff; }

/* Featured */
.featured-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.featured-card { background: #fff; border-radius: 16px; padding: 25px; text-align: center; box-shadow: 0 2px 12px rgba(102,126,234,0.06); border: 1px solid #f0edf8; transition: all 0.3s; }
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(102,126,234,0.12); }
.fc-img { width: 64px; height: 64px; margin: 0 auto 12px; background: linear-gradient(135deg, #f0edf8, #e4def5); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.fc-img img { max-width: 48px; max-height: 48px; border-radius: 8px; }
.featured-card h3 { font-size: 15px; margin-bottom: 8px; }
.featured-card h3 a { color: #333; }
.featured-card h3 a:hover { color: #667eea; }
.fc-tag { font-size: 11px; background: #f0edf8; color: #667eea; padding: 3px 12px; border-radius: 10px; }

/* Two Col */
.two-col { display: flex; gap: 25px; margin-bottom: 25px; }
.col-main { flex: 1; min-width: 0; }
.col-side { width: 280px; flex-shrink: 0; }

.breadcrumb { padding: 12px 0; font-size: 13px; color: #aaa; }
.bc-dot { margin: 0 8px; color: #ccc; }
.breadcrumb a { color: #667eea; }
.breadcrumb span { color: #666; }

.col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.col-head h1 { font-size: 20px; color: #333; }
.col-count { color: #aaa; font-size: 12px; }

.paging { text-align: center; margin: 20px 0; }
.paging a, .paging span { display: inline-block; padding: 8px 16px; margin: 0 3px; border-radius: 20px; font-size: 13px; }
.paging a { background: #fff; color: #667eea; border: 1px solid #edeaf5; }
.paging a:hover { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-color: transparent; }
.paging span { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }

.side-panel { background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(102,126,234,0.04); }
.side-panel h3 { font-size: 15px; color: #333; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #f0edf8; }
.side-cats { list-style: none; }
.side-cats li { padding: 7px 0; border-bottom: 1px dashed #f5f3fa; }
.side-cats li:last-child { border-bottom: none; }
.side-cats a { color: #666; font-size: 13px; display: block; }
.side-cats a:hover { color: #667eea; padding-left: 4px; }
.side-item { padding: 7px 0; border-bottom: 1px dashed #f5f3fa; }
.side-item:last-child { border-bottom: none; }
.side-item a { color: #666; font-size: 13px; }
.side-item a:hover { color: #667eea; }
.side-flinks a { display: inline-block; margin: 2px 6px 2px 0; color: #aaa; font-size: 12px; }
.side-flinks a:hover { color: #667eea; }

/* Detail Box */
.detail-box { background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 2px 12px rgba(102,126,234,0.06); }
.db-head { text-align: center; margin-bottom: 20px; }
.db-icon { width: 88px; height: 88px; margin: 0 auto 12px; background: linear-gradient(135deg, #f0edf8, #e4def5); border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.db-icon img { max-width: 64px; max-height: 64px; border-radius: 10px; }
.db-head h1 { font-size: 22px; color: #333; margin-bottom: 12px; }
.db-info { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #999; margin-bottom: 18px; }
.db-btn { display: inline-block; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 14px 50px; border-radius: 30px; font-size: 16px; font-weight: bold; transition: all 0.3s; }
.db-btn:hover { transform: scale(1.04); box-shadow: 0 6px 25px rgba(102,126,234,0.35); color: #fff; }
.db-body { text-align: left; }
.db-body h3 { color: #333; font-size: 17px; margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #f0edf8; }
.db-body p { line-height: 1.8; color: #666; margin-bottom: 10px; font-size: 14px; }
.db-feats { list-style: none; padding: 8px 0; }
.db-feats li { padding: 6px 0; color: #555; font-size: 14px; }

/* Foot */
.foot { background: #2d2b4e; color: rgba(255,255,255,0.5); padding: 25px 0; margin-top: 30px; text-align: center; font-size: 13px; }
.foot-links { margin-bottom: 10px; }
.foot-links a { color: rgba(255,255,255,0.4); margin: 0 8px; font-size: 12px; }
.foot-links a:hover { color: #a78bfa; }

@media (max-width: 768px) {
    .nav-wrap .con { flex-wrap: wrap; }
    .nav-menu { width: 100%; justify-content: center; margin-top: 8px; }
    .two-col { flex-direction: column; }
    .col-side { width: 100%; }
    .featured-row { grid-template-columns: 1fr; }
    .res-card { flex-direction: column; align-items: center; text-align: center; }
    .rc-foot { justify-content: center; }
}
