/* 首页样式 */

/* Banner 轮播 */
.banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide:nth-child(1) {
  background: linear-gradient(135deg, #1a73e8 0%, #6c5ce7 100%);
}

.banner-slide:nth-child(2) {
  background: linear-gradient(135deg, #00b894 0%, #1a73e8 100%);
}

.banner-slide:nth-child(3) {
  background: linear-gradient(135deg, #ff6b00 0%, #e17055 100%);
}

.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.banner-text {
  color: #fff;
  max-width: 600px;
}

.banner-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.banner-text p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
}

.banner-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

/* 快捷入口 */
.quick-entry {
  padding: 40px 0;
  background: var(--bg);
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 16px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 20px;
}

.quick-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.quick-item:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.quick-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--bg-section);
}

.quick-item:nth-child(1) .quick-icon { background: #e8f0fe; }
.quick-item:nth-child(2) .quick-icon { background: #e8f5e9; }
.quick-item:nth-child(3) .quick-icon { background: #fff3e0; }
.quick-item:nth-child(4) .quick-icon { background: #fce4ec; }
.quick-item:nth-child(5) .quick-icon { background: #e3f2fd; }
.quick-item:nth-child(6) .quick-icon { background: #f3e5f5; }
.quick-item:nth-child(7) .quick-icon { background: #e0f7fa; }
.quick-item:nth-child(8) .quick-icon { background: #fff8e1; }
.quick-item:nth-child(9) .quick-icon { background: #efebe9; }

.quick-item span {
  font-size: 13px;
  color: var(--text);
  display: block;
}

/* 双栏区块 */
.dual-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-panel,
.hot-panel {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.panel-body {
  padding: 8px 0;
}

.news-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  transition: var(--transition);
}

.news-list-item:hover {
  background: var(--bg-section);
}

.news-list-item .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.news-list-item a {
  color: var(--text);
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list-item a:hover {
  color: var(--primary);
}

.news-list-item .date {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

.hot-model-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  transition: var(--transition);
}

.hot-model-item:hover {
  background: var(--bg-section);
}

.hot-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-section);
  flex-shrink: 0;
}

.hot-rank.top3 {
  background: var(--accent);
  color: #fff;
}

.hot-model-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hot-model-info {
  flex: 1;
  min-width: 0;
}

.hot-model-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hot-model-info h4 a {
  color: var(--text);
}

.hot-model-info h4 a:hover {
  color: var(--primary);
}

.hot-model-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.hot-score {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.tool-card {
  padding: 20px;
  text-align: center;
}

.tool-card .tool-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-section);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.tool-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.tool-card h4 a {
  color: var(--text);
}

.tool-card h4 a:hover {
  color: var(--primary);
}

.tool-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
  margin-bottom: 10px;
}

.tool-card .tags {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.tutorial-card {
  overflow: hidden;
}

.tutorial-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-light), #e8eaf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.tutorial-body {
  padding: 16px;
}

.tutorial-body h4 {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tutorial-body h4 a {
  color: var(--text);
}

.tutorial-body h4 a:hover {
  color: var(--primary);
}

.tutorial-body .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.forum-hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.forum-hot-item:last-child {
  border-bottom: none;
}

.forum-hot-item:hover {
  background: var(--bg-section);
}

.forum-hot-item .title {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-hot-item .title a {
  color: var(--text);
}

.forum-hot-item .title a:hover {
  color: var(--primary);
}

.forum-hot-item .stats {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.forum-hot-item .stats span {
  margin-left: 10px;
}
