/* 每日大赛品牌官网 - 全局样式表 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 头部导航 */
header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #0066cc;
  font-size: 18px;
}

.logo img {
  height: 50px;
  width: auto;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: #333;
  font-size: 14px;
  transition: color 0.3s;
}

nav a:hover {
  color: #0066cc;
  text-decoration: none;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 20px;
  padding: 8px 15px;
  width: 200px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 16px;
}

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

/* 首屏 Hero 区域 */
.hero {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero .btn-primary {
  display: inline-block;
  background-color: #ff6b35;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
}

.hero .btn-primary:hover {
  background-color: #e55a2b;
  text-decoration: none;
}

/* 模块区域 */
.module {
  background-color: white;
  margin: 40px 0;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.module-header {
  margin-bottom: 30px;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 15px;
}

.module-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.module-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.module-description {
  font-size: 14px;
  color: #999;
}

/* 内容列表 */
.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.content-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.content-card-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0066cc;
  opacity: 0;
  transition: opacity 0.3s;
}

.content-card-image:hover .video-play-btn {
  opacity: 1;
}

.content-card-body {
  padding: 15px;
}

.content-card-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.content-card-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #666;
}

.content-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tag {
  display: inline-block;
  background-color: #e8f0ff;
  color: #0066cc;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
}

/* 更多按钮 */
.more-link {
  text-align: center;
  margin-top: 20px;
}

.more-link a {
  display: inline-block;
  color: #0066cc;
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid #0066cc;
  border-radius: 5px;
  transition: all 0.3s;
}

.more-link a:hover {
  background-color: #0066cc;
  color: white;
  text-decoration: none;
}

/* 作者卡片 */
.author-card {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  transition: transform 0.3s;
}

.author-card:hover {
  transform: translateY(-3px);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: #ddd;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

.author-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.author-followers {
  font-size: 12px;
  color: #0066cc;
  font-weight: bold;
}

/* FAQ 区域 */
.faq-list {
  list-style: none;
}

.faq-item {
  margin-bottom: 15px;
  border-left: 4px solid #0066cc;
  padding-left: 15px;
}

.faq-question {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #0066cc;
}

.faq-answer {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 用户评论 */
.comment-list {
  list-style: none;
}

.comment-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ddd;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-username {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

.comment-text {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* 社交分享 */
.social-share {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: #0066cc;
}

.social-icon img {
  width: 20px;
  height: 20px;
}

/* 页脚 */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #bbb;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #0066cc;
}

.breadcrumb span {
  margin: 0 8px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .search-box {
    width: 100%;
    max-width: 300px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .content-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .module {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .module-title {
    font-size: 18px;
  }

  .content-list {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 12px;
  }
}

/* 结构化数据样式 */
.schema-hidden {
  display: none;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background-color: #0066cc;
  color: white;
}

.btn-primary:hover {
  background-color: #0052a3;
  text-decoration: none;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

/* 警告和提示 */
.alert {
  padding: 15px;
  margin: 15px 0;
  border-radius: 5px;
  border-left: 4px solid;
}

.alert-info {
  background-color: #e8f4f8;
  border-color: #0066cc;
  color: #0066cc;
}

.alert-success {
  background-color: #e8f5e9;
  border-color: #4caf50;
  color: #4caf50;
}

.alert-warning {
  background-color: #fff3e0;
  border-color: #ff9800;
  color: #ff9800;
}

.alert-error {
  background-color: #ffebee;
  border-color: #f44336;
  color: #f44336;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th {
  background-color: #f0f0f0;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
}

table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

table tr:hover {
  background-color: #f9f9f9;
}

/* 表单样式 */
form {
  margin: 20px 0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* 关键词密度优化 - 品牌相关样式 */
.brand-highlight {
  color: #0066cc;
  font-weight: bold;
}

.brand-text {
  color: #333;
}

/* 视频卡片特殊样式 */
.video-card {
  position: relative;
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff6b35;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

/* 懒加载占位符 */
.lazy-load {
  background-color: #e0e0e0;
  background-image: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
