/* ===================================================================
 * 720.css - 720全景项目页面样式
 * 统一管理index.html和allproject.html的自定义样式
 * =================================================================== */

/* -------------------------------------------------------------------
 * 【通用样式】- 两个页面共用
 * ------------------------------------------------------------------- */

#features {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  text-align: center !important;
}

#features .cards-container {
  text-align: left !important;
  max-width: 1200px;
  margin: 20px auto;
  padding: 30px 20px;
}

.subscribe-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 20px;
  background: #ffaf02;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.card-large .subscribe-badge,
.card .subscribe-badge {
  top: 0;
  right: 0;
  padding: 6px 25px;
  font-size: 11px;
  z-index: 1;
}

.footer {
  background: #1f2937;
  padding: 30px;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  margin-top: 0;
}

.footer-info {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--hover-bg);
  font-size: 13px;
  color: var(--secondary-text);
  line-height: 1.8;
}

.footer-info a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-info a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.countdown-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.modal-content .guide-list li {
  font-size: 15px;
  line-height: 1.5;
  padding: 8px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-content .guide-list li picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.modal-content .guide-list li img {
  flex-shrink: 0;
  object-fit: contain;
}

/* -------------------------------------------------------------------
 * 【index.html 专用样式】- 首页独有的样式
 * ------------------------------------------------------------------- */

#intro {
  padding: 40px !important;
  padding-top: 180px !important;
  padding-bottom: 130px !important;
  max-width: 1200px;
  margin: 0 auto;
  display: flex !important;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  background: none !important;
  background-image: none !important;
  text-align: left !important;
  overflow: visible !important;
  position: relative !important;
}

#intro .button-primary {
  background: #dc2626 !important;
  color: #fff !important;
}

#intro .button-primary:hover {
  background: #b91c1c !important;
}

#intro .button-secondary {
  background: #6b7280 !important;
  color: #fff !important;
}

#intro .button-secondary:hover {
  background: #4b5563 !important;
}

.intro-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

#intro .intro-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ff9100;
  margin: 0 0 10px;
  line-height: 1.5;
  text-align: left;
  padding: 0;
}

#intro .intro-content .button {
  margin-right: 30px;
}

.intro-content p:first-of-type {
  font-size: 20px;
  font-weight: 400;
  color: #cacaca;
  margin: 0 0 20px;
}

.intro-line {
  display: block;
  width: 60px;
  height: 4px;
  background: #3b82f6;
  margin-bottom: 40px;
}

.intro-desc {
  font-size: 20px;
  font-weight: 400;
  color: #cacaca;
  line-height: 1.8;
  margin: 0;
}

.intro-desc span {
  color: #cacaca;
  font-weight: 400;
}

body.page-home #features {
  background: #e0e0e0 !important;
}

.main-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.main-card:hover {
  transform: translateY(-4px);
}

.main-card-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.main-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.main-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  background: #007df1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 15px;
}

.main-card-overlay h3 {
  font-size: 28px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 600;
}

.main-card-overlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.small-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.small-card:hover {
  transform: translateY(-6px);
}

.small-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.small-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.small-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  margin-bottom: 8px;
}

.small-card-overlay h4 {
  font-size: 16px;
  color: #fff;
  margin: 0;
  font-weight: 500;
}

.cards-scroll-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.cards-scroll::-webkit-scrollbar {
  display: none;
}

.cards-track {
  display: flex;
  gap: 16px;
  padding-right: 20px;
}

.scroll-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.2s;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scroll-btn:hover svg {
  stroke: #0faabe;
}

.scroll-btn.left {
  left: -72px;
}

.scroll-btn.right {
  right: -72px;
}

/* -------------------------------------------------------------------
 * 【allproject.html 专用样式】- 全部项目页独有的样式
 * ------------------------------------------------------------------- */

.search-box {
  margin: 16px 0;
  padding: 12px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f9fafb;
}

.search-box:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #fff;
}

.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag {
  padding: 8px 18px;
  background: #f3f4f6;
  border-radius: 25px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.tag:hover {
  background: #e5e7eb;
}

.tag.active {
  background: #1f2937;
  color: #fff;
}

body.page-allprojects #features {
  background: #fff !important;
}

body.page-allprojects #features .cards-container {
  padding-top: 20px;
}

body.page-allprojects .footer {
  margin-top: 40px;
}

.card-large,
.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.card-large:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-large .card-img,
.card .card-img {
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.card-large .card-img {
  height: 180px;
}

.card .card-img {
  height: 120px;
}

.card-large .card-info,
.card .card-info {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-large .card-info {
  padding: 16px;
}

.card-large .card-title {
  font-size: 18px;
  color: #111827;
  font-weight: 600;
  margin-bottom: 0;
}

.card .card-title {
  font-size: 15px;
  color: #111827;
  font-weight: 600;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-large .card-tag,
.card .card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #eff6ff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.card-large .card-tag {
  padding: 4px 12px;
  font-size: 12px;
  color: #3b82f6;
}

.card .card-tag {
  color: #0faabe;
  margin-left: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* -------------------------------------------------------------------
 * 【响应式布局】- 按屏幕尺寸调整样式
 * ------------------------------------------------------------------- */

@media (max-width: 480px) {
  .modal-content .guide-list {
    grid-template-columns: 1fr;
  }
  .modal-content .guide-list li:nth-child(3) {
    display: none;
  }
  .desktop-only {
    display: none;
  }
}

@media (min-width: 481px) {
  .modal-content .guide-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  #intro .intro-content h1 {
    font-size: 28px;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  #intro {
    padding: 80px 40px;
    padding-top: 150px;
  }
  .intro-content h1 {
    font-size: 56px;
  }
  .small-card {
    width: 320px;
  }
  .main-card-img {
    height: 400px;
  }
  .scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card .card-img {
    height: 140px;
  }
  .card-large .card-img {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  #intro {
    padding: 100px 60px;
    padding-top: 150px;
  }
  .intro-content {
    max-width: 500px;
  }
  .small-card {
    width: 350px;
  }
  .main-card-img {
    height: 450px;
  }
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card .card-img {
    height: 160px;
  }
  .card-large .card-img {
    height: 260px;
  }
}