/* 基础样式与布局 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; color: #1f2937; background: #ffffff; }
body.page-home main { margin-top: -90px; }

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

/* 头部导航 */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #f3f4f6; }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { font-weight: 700; letter-spacing: 0.5px; }
.logo img { display: block; height: 92px; width: auto; }
.site-nav { display: flex; gap: 16px; }
.nav-link { color: #374151; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { background: #f3f4f6; }
.nav-link.active { color: #111827; background: #e5e7eb; }

/* 首屏与区块 */
.hero { padding: 56px 0 24px; background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%); }
.hero h1 { margin: 0 0 8px; font-size: 28px; }
.hero p { margin: 0; color: #6b7280; }

.section { padding: 32px 0; }
.section h2 { margin: 0 0 8px; font-size: 22px; }
.section-sub { margin: 0 0 16px; color: #6b7280; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; background: #ffffff; }
.card h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.product-logo { height: 20px; width: auto; }
.card p { margin: 0 0 12px; color: #4b5563; }
.card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 8px 12px; background: #111827; color: #ffffff; text-decoration: none; border-radius: 8px; }
.btn:hover { background: #000000; }
.btn[aria-disabled="true"] { background: #9ca3af; color: #ffffff; cursor: not-allowed; pointer-events: none; }
.btn[aria-disabled="true"]:hover { background: #9ca3af; }
.link { color: #2563eb; text-decoration: none; }
.link[aria-disabled="true"] { color: #9ca3af; pointer-events: none; }
.sep { margin: 0 8px; color: #9ca3af; }

/* 服务与报价 */
.pricing-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.pricing-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; background: #ffffff; }
.pricing-card h3 { margin: 0 0 8px; font-size: 18px; }
.pricing-list { margin: 0 0 12px; padding-left: 18px; color: #4b5563; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* 广告位 */
.ads .ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ad-slot { height: 120px; border: 2px dashed #d1d5db; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6b7280; background: #fafafa; }
.ad-note { margin-top: 8px; color: #6b7280; }

/* 页脚 */
.site-footer { border-top: 1px solid #f3f4f6; padding: 16px 0; background: #fafafa; color: #6b7280; }
.site-footer .container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* 关于我/简历页 */
.resume { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.resume-side { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; background: #ffffff; }
.avatar { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; background: #e5e7eb; }
.contact { list-style: none; padding: 0; margin: 12px 0 0; color: #4b5563; }
.contact li { margin-bottom: 6px; }
.resume-main h2 { margin-top: 0; font-size: 20px; }
.exp { border-left: 3px solid #e5e7eb; padding-left: 12px; margin: 12px 0; }
.time { color: #6b7280; font-weight: normal; font-size: 14px; }

/* 客官来点啥和广告位招租部分向上移动 */
#products {
  margin-top: -35px;
}

.ads {
  margin-top: -35px;
}

/* 响应式 */
@media (max-width: 900px) {
  .card-grid, .ads .ad-grid, .resume { grid-template-columns: 1fr; }
  .nav-container { height: 56px; }
  .hero { padding: 40px 0 20px; }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 图库（关于我页） */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: auto; border-radius: 12px; display: block; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* 简历放大显示（1.3x） */
.gallery.resume-zoom { grid-template-columns: 1fr; overflow: visible; }
.gallery.resume-zoom img { width: 100%; max-width: 210mm; height: auto; margin: 0 auto; }
@media (max-width: 900px) {
  .gallery.resume-zoom img { max-width: 100%; }
}

/* 悬浮联系卡片 */
.floating-contact-card {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  display: none;
  animation: slideInUp 0.3s ease-out;
}

.floating-contact-card.show {
  display: block;
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
  border-radius: 12px 12px 0 0;
}

.contact-card-header h4 {
  margin: 0;
  font-size: 16px;
  color: #111827;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.close-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.contact-card-content {
  padding: 16px;
}

.qr-code-placeholder {
  width: 120px;
  height: 120px;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  text-align: center;
}

.qr-code-placeholder p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.qr-note {
  font-size: 10px !important;
  margin-top: 4px !important;
}

.contact-info {
  text-align: center;
}

.contact-info p {
  margin: 0 0 4px;
  font-size: 14px;
  color: #374151;
}

.contact-note {
  font-size: 12px !important;
  color: #6b7280 !important;
}

.floating-btn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 60px !important;
  height: 60px !important;
  background: #111827 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.floating-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .floating-contact-card {
    width: 260px;
    bottom: 15px;
    right: 15px;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
  }
  
  .qr-code-placeholder {
    width: 100px;
    height: 100px;
  }
}


