/* 无锡左校拍卖有限公司 - 新版网站样式 */
/* 棕色色系主题 */

:root {
  --brown-dark:   #4a2c0a;
  --brown-main:   #7b4a1e;
  --brown-mid:    #a0622a;
  --brown-light:  #c8894e;
  --brown-pale:   #e8d5b7;
  --brown-bg:     #faf6f0;
  --brown-border: #d4a96a;
  --text-dark:    #2c1a06;
  --text-mid:     #5a3a1a;
  --text-light:   #8a6040;
  --white:        #ffffff;
  --shadow:       rgba(74, 44, 10, 0.15);
}

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

body {
  font-family: "Microsoft YaHei", "微软雅黑", "SimSun", sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--brown-bg);
  line-height: 1.7;
}

a { color: var(--brown-main); text-decoration: none; }
a:hover { color: var(--brown-light); }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-main) 60%, var(--brown-mid) 100%);
  box-shadow: 0 3px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-area img {
  height: 60px;
  width: auto;
}

.logo-text h1 {
  font-size: 20px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}

.logo-text p {
  font-size: 11px;
  color: var(--brown-pale);
  letter-spacing: 2px;
}

/* ===== NAV ===== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  color: var(--brown-pale);
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: var(--brown-dark);
  position: relative;
  overflow: hidden;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  position: absolute;
  top: 0; left: 0;
}

/* 深色渐变遮罩，让文字与图片彻底分离 */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 20, 4, 0.55) 0%,
    rgba(74, 44, 10, 0.72) 100%
  );
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-text h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 30px rgba(0,0,0,0.5);
}

.hero-text p {
  font-size: 15px;
  color: #f5e6cc;
  margin-top: 10px;
  letter-spacing: 3px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* ===== LAYOUT ===== */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.page-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--brown-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--shadow);
}

.sidebar-title {
  background: linear-gradient(135deg, var(--brown-main), var(--brown-mid));
  color: var(--white);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav ul li a {
  display: block;
  padding: 11px 16px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--brown-pale);
  font-size: 14px;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.sidebar-nav ul li:last-child a { border-bottom: none; }

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  background: var(--brown-pale);
  color: var(--brown-dark);
  padding-left: 22px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  min-width: 0;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--brown-border);
  border-radius: 6px;
  padding: 28px 30px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 24px;
}

.content-card h2 {
  font-size: 20px;
  color: var(--brown-dark);
  border-left: 4px solid var(--brown-main);
  padding-left: 12px;
  margin-bottom: 18px;
}

.content-card p {
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 12px;
}

/* ===== NEWS LIST ===== */
.news-list { list-style: none; }

.news-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--brown-pale);
  gap: 12px;
}

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

.news-list li::before {
  content: "▶";
  color: var(--brown-light);
  font-size: 10px;
  flex-shrink: 0;
}

.news-list li a {
  flex: 1;
  color: var(--text-mid);
  font-size: 14px;
  transition: color 0.2s;
}

.news-list li a:hover { color: var(--brown-main); }

.news-list li .date {
  color: var(--text-light);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== HOMEPAGE SECTIONS ===== */
.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brown-pale);
}

.section-header h3 {
  font-size: 16px;
  color: var(--brown-dark);
  font-weight: 700;
}

.section-header a {
  font-size: 12px;
  color: var(--brown-light);
}

/* ===== ABOUT INTRO ===== */
.about-intro {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about-intro img {
  width: 200px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  border: 3px solid var(--brown-pale);
  flex-shrink: 0;
}

/* ===== CREDENTIALS SCROLL ===== */
.cred-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--brown-light) var(--brown-pale);
}

.cred-scroll img {
  height: 120px;
  width: auto;
  border: 2px solid var(--brown-border);
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cred-scroll img:hover { transform: scale(1.05); }

/* ===== CREDENTIALS GRID ===== */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cred-grid img {
  width: 100%;
  border: 2px solid var(--brown-border);
  border-radius: 4px;
  transition: box-shadow 0.2s;
}

.cred-grid img:hover { box-shadow: 0 4px 16px var(--shadow); }

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.step-item {
  background: var(--brown-pale);
  border: 1px solid var(--brown-border);
  border-radius: 8px;
  padding: 18px 20px;
  text-align: center;
  width: 140px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--brown-main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 10px;
}

.step-item h4 {
  font-size: 14px;
  color: var(--brown-dark);
  font-weight: 700;
}

.step-item p {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--brown-light);
  font-size: 22px;
  margin-top: 18px;
}

/* ===== CONTACT INFO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--brown-pale);
  border-radius: 6px;
  border: 1px solid var(--brown-border);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--brown-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--brown-dark);
  font-weight: 600;
}

.map-area {
  margin-top: 20px;
  border: 2px solid var(--brown-border);
  border-radius: 6px;
  overflow: hidden;
}

.map-area img {
  width: 100%;
  display: block;
}

/* ===== MESSAGE FORM ===== */
.msg-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.msg-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-form label {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 600;
}

.msg-form input,
.msg-form select,
.msg-form textarea {
  border: 1px solid var(--brown-border);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--brown-bg);
  font-family: inherit;
  transition: border-color 0.2s;
}

.msg-form input:focus,
.msg-form select:focus,
.msg-form textarea:focus {
  outline: none;
  border-color: var(--brown-main);
  background: var(--white);
}

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

.btn-submit {
  background: linear-gradient(135deg, var(--brown-main), var(--brown-mid));
  color: var(--white);
  border: none;
  padding: 11px 36px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.btn-submit:hover { opacity: 0.88; }

/* ===== KNOWLEDGE CARDS ===== */
.knowledge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.k-card {
  background: var(--brown-pale);
  border: 1px solid var(--brown-border);
  border-radius: 8px;
  padding: 22px 18px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.k-card:hover {
  box-shadow: 0 6px 20px var(--shadow);
  transform: translateY(-3px);
}

.k-card .k-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.k-card h3 {
  font-size: 16px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.k-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.k-card a {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 18px;
  background: var(--brown-main);
  color: var(--white);
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s;
}

.k-card a:hover { background: var(--brown-dark); }

/* ===== ANNOUNCEMENT DETAIL ===== */
.announce-detail h2 {
  text-align: center;
  font-size: 20px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.announce-meta {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brown-pale);
}

.announce-body {
  color: var(--text-mid);
  line-height: 2;
}

.announce-body p { margin-bottom: 12px; }

.announce-body strong { color: var(--brown-dark); }

.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 22px;
  background: var(--brown-pale);
  color: var(--brown-main);
  border: 1px solid var(--brown-border);
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}

.back-btn:hover { background: var(--brown-border); color: var(--white); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--brown-light); }
.breadcrumb span { margin: 0 6px; }

/* ===== FRIENDLY LINKS ===== */
.links-bar {
  background: var(--white);
  border-top: 3px solid var(--brown-main);
  border-bottom: 1px solid var(--brown-border);
  padding: 14px 0;
}

.links-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.links-inner h4 {
  color: var(--brown-main);
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.links-inner a img {
  height: 30px;
  width: auto;
  border: 1px solid var(--brown-border);
  border-radius: 3px;
  transition: opacity 0.2s;
}

.links-inner a img:hover { opacity: 0.8; }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-main));
  color: var(--brown-pale);
  padding: 28px 0 16px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col p, .footer-col a {
  font-size: 13px;
  color: var(--brown-pale);
  line-height: 2;
  display: block;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 12px;
  color: rgba(232,213,183,0.7);
}

.footer-bottom a { color: rgba(232,213,183,0.8); }
.footer-bottom a:hover { color: var(--white); }


/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--brown-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-mid);
  transition: background 0.2s;
}

.pagination a:hover { background: var(--brown-pale); }
.pagination .current { background: var(--brown-main); color: var(--white); border-color: var(--brown-main); }
.pagination .disabled { color: var(--brown-pale); cursor: default; }

/* 汉堡按钮默认隐藏，手机端显示 */
.nav-toggle { display: none; }

/* ===== RESPONSIVE ===== */

/* 平板 (≤900px) */
@media (max-width: 900px) {
  .header-inner { gap: 8px; padding: 0 14px; }
  .logo-text h1 { font-size: 16px; }
  .main-nav ul li a { padding: 7px 10px; font-size: 13px; }
  .home-sections { grid-template-columns: 1fr; }
  .knowledge-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* 手机 (≤768px) */
@media (max-width: 768px) {

  /* Header：logo + 汉堡菜单布局 */
  .site-header { position: relative; }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 14px;
    gap: 0;
    position: relative;
  }

  .logo-area { flex: 1; }
  .logo-area img { height: 44px; }
  .logo-text h1 { font-size: 14px; letter-spacing: 0; }
  .logo-text p { display: none; }

  /* 汉堡按钮 */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.25s;
  }

  /* 导航折叠 */
  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 500px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
  }
  .main-nav ul li a {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Hero */
  .hero-banner { height: 160px; }
  .hero-text h2 { font-size: 22px; letter-spacing: 2px; }
  .hero-text p { font-size: 13px; }

  /* 次级页面 banner */
  .hero-banner[style*="height:160px"] { height: 110px !important; }

  /* 页面内边距 */
  .page-wrap { padding: 16px 12px; }

  /* 两栏变单栏 */
  .page-layout { flex-direction: column; gap: 16px; }
  .sidebar { width: 100%; }

  /* 侧边栏导航在手机上折叠隐藏，只保留联系信息 */
  .sidebar-nav { display: none; }

  /* 首页双栏 */
  .home-sections { grid-template-columns: 1fr; gap: 16px; }

  /* 公司简介图文 */
  .about-intro { flex-direction: column; }
  .about-intro img { width: 100%; height: 180px; }

  /* 资质证书网格 */
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* 服务优势四格 → 两列 */
  .content-card > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 数据统计三格 → 单列 */
  .content-card > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* 拍卖知识卡片 */
  .knowledge-cards { grid-template-columns: 1fr; }

  /* 联系方式网格 */
  .contact-grid { grid-template-columns: 1fr; }

  /* 拍卖流程步骤 */
  .process-steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }

  /* 留言表单 */
  .msg-form .form-row { flex-direction: column; gap: 10px; }

  /* 页脚 */
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner .footer-col:not(:first-child) { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }

  /* 内容卡片内边距 */
  .content-card { padding: 18px 16px; }

  /* 面包屑 */
  .breadcrumb { font-size: 12px; }

  /* 公告列表 */
  .news-list li { flex-wrap: wrap; gap: 4px; }
  .news-list li .date { width: 100%; font-size: 11px; padding-left: 16px; }

  /* 联系按钮组 */
  .content-card div[style*="display:flex;gap:14px"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* 极小屏 (≤380px) */
@media (max-width: 380px) {
  .logo-text h1 { font-size: 12px; }
  .hero-text h2 { font-size: 18px; }
  .cred-grid { grid-template-columns: 1fr; }
}
