/* ============================================
   组件样式库 - 从 element.php 提取
   可在多个页面中复用
   ============================================ */

/* ============================================
   板块标题组件
   ============================================ */
.section-header {
  width: 100%;
  max-width: 1920px;
  padding: 60px 0;
}

.section-header-label {
  display: block;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

.section-header-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  margin: 0;
}

/* iPad 适配 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .section-header { padding: 48px 0; }
  .section-header-title { font-size: 38px; }
}

@media (max-width: 768px) {
  .section-header { padding: 40px 0; }
  .section-header-label { font-size: 15px; }
  .section-header-title { font-size: 32px; }
}

/* ============================================
   下划线按钮组件
   ============================================ */
.btn-underline {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s ease;
}

.btn-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #d4d4d4;
}

.btn-underline::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn-underline:hover::before {
  width: 100%;
}

.btn-underline:hover {
  color: #000;
}

.btn-underline--arrow {
  padding-right: 24px;
}

.btn-underline--arrow .btn-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-underline--arrow:hover .btn-arrow {
  transform: translateY(-50%) translateX(4px);
}

/* ============================================
   实心按钮组件
   ============================================ */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .btn-solid {
    height: 42px;
    padding: 0 32px;
    font-size: 15px;
  }
}

.btn-solid:hover {
  background: #333;
}

.btn-solid:active {
  transform: scale(0.98);
}

.btn-solid .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .btn-solid .btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   边框按钮组件
   ============================================ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #111;
  background: transparent;
  border: 1.5px solid #111;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .btn-outline {
    height: 42px;
    padding: 0 32px 2px;
    font-size: 15px;
  }
}

.btn-outline:hover {
  background: #111;
  color: #fff;
}

.btn-outline:active {
  transform: scale(0.98);
}

.btn-outline .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: stroke 0.3s ease;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .btn-outline .btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* 白色边框按钮 */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 1.5px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-outline-white:hover {
  background: #fff;
  color: #111;
}

.btn-outline-white:active {
  transform: scale(0.98);
}

/* ============================================
   筛选器组件
   ============================================ */
.filter-bar {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 5px;
  background: rgb(240, 240, 240);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-option {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all 0.2s ease;
}

.filter-option.is-active {
  background: #111;
  color: #fff;
}

.filter-option:not(.is-active) {
  background: rgb(250, 250, 250);
  color: #111;
}

.filter-option:not(.is-active):hover {
  background: #fff;
}

.filter-right-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.filter-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.filter-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.filter-search-input {
  width: 140px;
  height: 50px;
  padding: 0 36px 0 16px;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  border: none;
  border-radius: 8px;
  background: rgb(250, 250, 250);
  color: #111;
  outline: none;
  transition: all 0.2s ease;
}

.filter-search-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.filter-search-input::placeholder {
  color: #999;
}

.filter-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s ease;
}

.filter-search-clear:hover {
  color: #111;
}

.filter-search-clear svg {
  width: 16px;
  height: 16px;
}

/* 搜索状态下的按钮样式 */
.filter-option--search .filter-icon {
  display: none;
}

.filter-option--search::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ============================================
   卡片网格布局
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1816px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   项目卡片组件
   ============================================ */
.card-project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-image {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  background-color: rgb(240, 240, 240);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-hover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card-image:hover .card-hover-video {
  opacity: 1;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  border: none;
  outline: none;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.card-image:hover .card-overlay {
  opacity: 1;
}

.card-image .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.card-image:hover .card-content {
  transform: translateY(0);
  opacity: 1;
}

.card-image .card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: #111;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.card-image .card-title {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
}

.card-image .card-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-footer .btn-underline {
  font-size: 14px;
}

.card-footer .btn-underline--arrow {
  padding-right: 24px;
}

.card-footer .btn-underline--arrow .btn-arrow {
  width: 18px;
  height: 18px;
}

.card-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-client-prefix {
  font-size: 14px;
  color: #666;
}

.card-client-icon {
  width: 48px;
  height: 48px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-client-icon span {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
}

.card-client-icon.card-client-icon--logo img {
  width: var(--logo-scale, 60%);
  height: var(--logo-scale, 60%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: translateX(var(--logo-offset-x, 0%));
}

.card-client-text {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* ============================================
   新闻卡片组件
   ============================================ */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .news-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-news {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.card-news:hover {
  text-decoration: none;
}

.card-news-image {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
  background: #f0f0f0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-news-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-news-body {
  padding: 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-news-title {
  font-size: 18px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  font-family: 'Noto Sans SC', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.card-news-excerpt {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   招聘卡片组件
   ============================================ */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .job-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .job-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-job {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.card-job-header {
  padding: 24px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-job-dept-icon {
  width: 40px;
  height: 40px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-job-dept-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.card-job-dept {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
}

.card-job-dept::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #d4d4d4;
}

.card-job-dept::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.card-job-dept:hover::before {
  width: 100%;
}

.card-job-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-job-title {
  font-size: 24px;
  font-weight: 500;
  color: #111;
  line-height: 1.3;
  font-family: 'Noto Sans SC', sans-serif;
}

.card-job-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  height: 96px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-job-details {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.card-job-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
}

.card-job-detail-label {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.card-job-detail-value {
  font-size: 14px;
  color: #666;
}

.card-job-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-job-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #999;
}

.card-job-time svg {
  width: 16px;
  height: 16px;
}

.card-job-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #111;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card-job-arrow svg {
  width: 24px;
  height: 24px;
}

.card-job-arrow:hover,
.card-job:hover .card-job-arrow {
  transform: translateX(4px);
}

/* ============================================
   观点论坛卡片组件
   ============================================ */
.forum-cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .forum-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-forum {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  min-height: 500px;
  cursor: pointer;
}

.card-forum-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  overflow: hidden;
}

.card-forum-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
  transition: background 0.4s ease;
}

.card-forum-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 3;
  transition: opacity 0.4s ease;
}

.card-forum-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.card-forum:hover .card-forum-image::before {
  background: rgba(0, 0, 0, 0.2);
}

.card-forum:hover .card-forum-image::after {
  opacity: 0.3;
}

.card-forum:hover .card-forum-image img {
  filter: grayscale(30%);
}

.card-forum-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  min-height: 500px;
}

.card-forum-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-forum-tag {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  font-family: 'Noto Sans SC', sans-serif;
}

.card-forum-title {
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  font-family: 'Noto Sans SC', sans-serif;
}

.card-forum-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-forum-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  font-family: 'Noto Sans SC', sans-serif;
  transition: color 0.3s ease;
}

.card-forum-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.card-forum-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.card-forum-link:hover::before {
  width: 100%;
}

/* ============================================
   表单组件
   ============================================ */
.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
}

.form-required {
  color: #e53935;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0 16px;
  font-size: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #111;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input,
.form-select {
  height: 48px;
}

.form-textarea {
  padding: 12px 16px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #111;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form-radio,
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  position: relative;
}

.form-radio input,
.form-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.form-radio input:checked + .form-radio-mark {
  border-color: #111;
}

.form-radio input:checked + .form-radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
}

.form-checkbox-mark {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.form-checkbox input:checked + .form-checkbox-mark {
  background: #111;
  border-color: #111;
}

.form-checkbox input:checked + .form-checkbox-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-file-upload {
  position: relative;
}

.form-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.form-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.form-file-label:hover {
  border-color: #111;
  background: #fafafa;
}

.form-file-icon {
  width: 32px;
  height: 32px;
  color: #999;
  margin-bottom: 12px;
}

.form-file-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.form-file-hint {
  font-size: 13px;
  color: #999;
}

.form-file-input:focus + .form-file-label {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-radio-group { flex-direction: column; gap: 12px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-solid,
  .form-actions .btn-outline { width: 100%; }
}

/* ============================================
   Before/After 对比组件
   ============================================ */
.before-after {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border-radius: 16px;
}

.before-after-after {
  display: block;
  width: 100%;
}

.before-after-after img {
  display: block;
  width: 100%;
  height: auto;
}

.before-after-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0s;
}

.before-after-before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  pointer-events: none;
}

.before-after-label--before {
  left: 16px;
}

.before-after-label--after {
  right: 16px;
}

.before-after-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}

.before-after-handle::before,
.before-after-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.before-after-handle::before {
  top: 50%;
  transform: translate(-50%, -50%);
}
