/* 
 * 茶疗大赛 H5 原型 - 主样式表
 * 响应式设计: 支持手机、平板和电脑端
 */

/* ===== 基础样式 ===== */
:root {
  --primary-color: #006d55;
  --primary-light: #00735a;
  --primary-dark: #006d55;
  --secondary-color: #f8b400;
  --text-color: #333333;
  --light-text: #666666;
  --lighter-text: #999999;
  --background-color: #ffffff;
  --light-background: #f5f9f7;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2196f3;
  --border-radius: 4px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --header-height: 60px;
  --footer-height: 120px;
  --vant-primary: #006d55;
  --vant-text-color: #333;
  --vant-background: #f7f8fa;
  --vant-success: #00735a;
  --vant-warning: #e6a23c;
  --vant-danger: #cf4444;
  --vant-disabled: #ccc;
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-content {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  padding: 0 0 15px 0;
}

/* ===== 通用组件 ===== */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-light);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #e5a700;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 18px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 表单元素 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(14, 124, 97, 0.2);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  appearance: none;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(14, 124, 97, 0.2);
}

/* 卡片 */
.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-text {
  color: var(--light-text);
  margin-bottom: 15px;
}

.card-footer {
  padding: 15px 20px;
  background-color: var(--light-background);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== 布局组件 ===== */
/* 网格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex: 1 0 0%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-4 {
  flex: 0 0 auto;
  width: 33.333333%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-3 {
  flex: 0 0 auto;
  width: 25%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Flex 布局辅助类 */
.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}

/* 间距类 */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* 文本辅助类 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-success {
  color: var(--success-color);
}

.text-error {
  color: var(--error-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-muted {
  color: var(--lighter-text);
}

.font-weight-bold {
  font-weight: 700;
}

.font-weight-normal {
  font-weight: 400;
}

/* ===== 组件样式 ===== */
/* 头部导航 */
.header {
  height: var(--header-height);
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 36px;
  margin-right: 10px;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 20px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0;
  position: relative;
  line-height: var(--header-height);
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.navbar-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
}

/* 页脚 */
.footer {
  background-color: var(--light-background);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  min-height: var(--footer-height);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--light-text);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--lighter-text);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  font-size: 18px;
  color: var(--light-text);
}

.social-link:hover {
  color: var(--primary-color);
}

/* 英雄区块 */
.hero {
  background-color: var(--primary-color);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('../images/tea-bg.jpg'); */
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 24px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* 比赛信息区块 */
.competition-info {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  max-width: 700px;
  margin: -30px auto 40px;
  color: var(--light-text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-item {
  text-align: center;
  padding: 30px;
  background-color: var(--light-background);
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.info-item:hover::after {
  content: '\f054';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: var(--primary-color);
  font-size: 16px;
  opacity: 0.8;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.info-item p {
  margin-bottom: 20px;
}

.info-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* 茶方卡片 */
.featured-recipes {
  padding: 60px 0;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.recipe-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recipe-img {
  height: 200px;
  object-fit: cover;
}

.recipe-card .card-body {
  flex: 1;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--lighter-text);
  font-size: 14px;
  margin-top: 10px;
}

.recipe-score {
  color: var(--secondary-color);
  font-weight: 600;
}

/* 评分组件 */
.rating {
  display: flex;
  flex-direction: column;
}

.rating-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.rating-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rating-item {
  display: flex;
  align-items: center;
}

.rating-label {
  width: 120px;
  font-weight: 500;
}

.rating-stars {
  display: flex;
  gap: 5px;
}

.rating-star {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
}

.rating-star.active {
  color: var(--secondary-color);
}

/* 评论组件 */
.comment-list {
  margin-top: 30px;
}

.comment-item {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.comment-author {
  font-weight: 600;
}

.comment-time {
  margin-left: auto;
  color: var(--lighter-text);
  font-size: 14px;
}

.comment-content {
  margin-bottom: 10px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.comment-action {
  font-size: 14px;
  color: var(--light-text);
  cursor: pointer;
}

.comment-action:hover {
  color: var(--primary-color);
}

.comment-replies {
  margin-left: 50px;
  margin-top: 15px;
}

.comment-form {
  margin-top: 30px;
}

/* 上传组件 */
.upload-container {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.upload-container:hover {
  border-color: var(--primary-color);
}

.upload-icon {
  font-size: 48px;
  color: var(--lighter-text);
  margin-bottom: 15px;
}

.upload-text {
  color: var(--light-text);
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.upload-preview-item {
  position: relative;
  height: 100px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== 响应式设计 ===== */
/* 平板设备 */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-md-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* 手机设备 */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .navbar-brand span {
    font-size: 14px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .navbar-brand img {
    max-width: 80px;
    height: auto;
  }
  
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 24px;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 14px;
    text-align: center;
  }
  
  .section-title {
    font-size: 20px;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 14px;
    text-align: center;
  }
  
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  
  .col-sm-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .mobile-p-0 {
    padding: 0 !important;
  }
  
  .mobile-m-0 {
    margin: 0 !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
  }
  
  .mobile-rounded {
    border-radius: 20px !important;
  }
  
  .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .col, .col-12, .col-6, .col-4, .col-3 {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .btn-lg {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* 打印样式 */
@media print {
  .header, .footer, .navbar-toggle {
    display: none;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: none !important;
  }
  
  .page-content {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

.competition-steps .card {
  height: 320px;
  display: flex;
  flex-direction: column;
}

.competition-steps .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px 20px;
}

.competition-steps .info-icon {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.competition-steps .card-title {
  height: 28px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competition-steps p {
  flex: 1;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competition-steps .btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .competition-steps .card {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .competition-steps .card {
    height: 260px;
  }
}

/* 新的参赛流程样式 - 工作流布局 */
.competition-steps {
  padding: 40px 0;
}

.workflow-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
  position: relative;
}

.workflow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 10px;
  margin-bottom: 20px;
  width: 200px;
  text-align: center;
  z-index: 2;
}

.workflow-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  transition: var(--transition);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.workflow-item:hover .workflow-number {
  transform: scale(1.1);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.workflow-icon {
  position: absolute;
  top: 8px;
  font-size: 20px;
  color: white;
}

.workflow-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.workflow-description {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.workflow-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.workflow-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.workflow-link i {
  margin-left: 5px;
  font-size: 12px;
}

.workflow-arrow {
  position: absolute;
  top: 25px;
  right: -10px;
  width: 40px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.workflow-arrow:after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--border-color);
}

@media (max-width: 991px) {
  .workflow-container {
    flex-direction: column;
    align-items: center;
  }
  
  .workflow-item {
    width: 100%;
    max-width: 280px;
    margin-bottom: 40px;
  }
  
  .workflow-arrow {
    display: none;
  }
  
  .workflow-arrow-mobile {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: var(--border-color);
    z-index: 1;
  }
  
  .workflow-arrow-mobile:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--border-color);
  }
  
  .workflow-item:last-child .workflow-arrow-mobile {
    display: none;
  }
}

/* 新的大赛动态样式 */
.news-section {
  padding: 60px 0;
}

.news-list {
  margin-bottom: 30px;
}

.news-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex: 0 0 100px;
  color: var(--lighter-text);
  font-size: 14px;
  padding-top: 4px;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.news-content p {
  color: var(--light-text);
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.4;
}

.news-link {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.news-link i {
  font-size: 12px;
  margin-left: 4px;
}

.news-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 合作伙伴 */
.partners-section {
  padding: 60px 0;
}

.partners-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.partner-logo {
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 10px;
}

.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  
  .news-date {
    flex: 0 0 auto;
    margin-bottom: 5px;
  }
  
  .partner-logo {
    width: 120px;
    height: 70px;
  }
}

/* Mobile-responsive footer styles */
@media (max-width: 767px) {
  .footer {
    padding: 30px 0 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 0;
  }
  
  .footer-column {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
    margin-bottom: 0;
  }
  
  .footer-column h3 {
    cursor: pointer;
    padding: 12px 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-column h3::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    transition: transform 0.3s;
  }
  
  .footer-column.active h3::after {
    transform: rotate(180deg);
  }
  
  .footer-column ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin: 0;
    padding: 0 0 10px 0;
  }
  
  .footer-column.active ul {
    max-height: 200px;
  }
  
  .footer-column ul li {
    margin-bottom: 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .footer-column ul li:first-child {
    border-top: none;
  }
  
  .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
  }
}

/* ===== 面包屑导航 ===== */
.breadcrumb-container {
  background-color: var(--light-background);
  padding: 10px 0;
  margin-top: 0;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.breadcrumb-item {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child) {
  margin-right: 5px;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: var(--lighter-text);
  margin-left: 5px;
}

.breadcrumb-item a {
  color: var(--light-text);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

@media (max-width: 767px) {
  .breadcrumb-container {
    padding: 8px 0;
    margin-bottom: 15px;
  }
  
  .breadcrumb-item {
    font-size: 12px;
  }
}

/* ===== FAQ Section Styles ===== */
.faq-section {
  padding: 60px 0;
  background-color: var(--light-background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  overflow: hidden; /* Ensures border-radius is respected */
}

.faq-question {
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  background-color: #f9f9f9; /* Slightly different background for question */
  border-bottom: 1px solid var(--border-color); /* Separator */
  display: flex; /* Keep for potential future icons, aligns text nicely */
  align-items: center; /* Vertically center text if needed */
  /* Remove cursor pointer as it's no longer clickable */
  cursor: default; 
}

.faq-answer {
  padding: 20px; 
  color: var(--light-text);
  line-height: 1.7;
  /* Ensure answer is always visible */
  display: block; 
  max-height: none; /* Remove height limits */
  opacity: 1; /* Ensure full opacity */
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Mobile Stacked Layout */
@media (max-width: 768px) {
  .faq-item {
    /* Items naturally stack as block elements, ensure full width */
    width: 100%; 
  }

  .faq-question {
    font-size: 16px;
    padding: 12px 15px;
  }

  .faq-answer {
    padding: 15px;
  }
}

/* 移动端设备检测 */
[data-device="mobile"] .desktop-only {
  display: none !important;
}

[data-device="desktop"] .mobile-only {
  display: none !important;
}

/* 基础样式和通用设置 */
html {
  scroll-behavior: smooth;
}

/* Vant UI 移动端样式 */
.vant-mobile-section {
  margin-bottom: 24px;
}

.vant-section-title {
  font-size: 18px;
  font-weight: bold;
  margin: 24px 0 16px 0;
  padding-left: 12px;
  border-left: 3px solid var(--vant-primary);
}

.vant-card {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.vant-info-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(100, 101, 102, 0.08);
}

.vant-form-group {
  margin-bottom: 16px;
}

/* ===== 移动端优化 ===== */
.mobile-drawer {
  display: none;
}

/* 移动端vant优化样式 */
.vant-mobile-section {
  margin-bottom: 24px;
  padding: 0 16px;
}

.vant-section-title {
  font-size: 18px;
  font-weight: bold;
  margin: 24px 0 16px 0;
  padding-left: 12px;
  border-left: 3px solid var(--primary-color);
}

.vant-card {
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.vant-info-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* 移动端底部导航 */
.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  display: none;
}

/* 移动端全屏菜单 - 已弃用改为抽屉菜单 */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-drawer {
    display: block;
  }
  
  .page-content {
    padding-bottom: 60px;
  }
  
  .auth-container {
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin: 16px auto;
  }
  
  .navbar {
    padding: 8px 0;
  }
  
  .navbar-brand span {
    font-size: 14px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .navbar-brand img {
    max-width: 80px;
  }
  
  .mobile-tabbar {
    display: flex;
  }
}

/* 移动端抽屉菜单通用样式 */
.van-popup {
  overflow-y: auto !important;
}

@media (max-width: 768px) {
  .van-grid-item__content {
    padding: 12px 8px !important;
  }
  
  .mobile-drawer {
    display: block;
  }
} 