/* ===== CSS Variables ===== */
:root {
  --primary: #7E2F2D;
  --primary-dark: #6a2624;
  --primary-light: #8B2323;
  --cream: #F9F5F0;
  --cream-dark: #F7EBE8;
  --beige: #D2B48C;
  --text-dark: #000;
  --text-gray: #666;
  --text-light: #999;
  --white: #fff;
  --bg: #FAFAFA;
  --max-width: 1920px;
  --header-height: 110px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
[v-cloak] {
  display: none;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  /* box-shadow: 0 1px 8px rgba(0,0,0,0.06); */
  height: var(--header-height);
}

.site-header.transparent { background: rgba(255,255,255,0.92); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 10%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: url(https://site.vigicloud.cn/r/cms/sfbio/default/img/header-bg.jpg) no-repeat;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex:1;
  flex-shrink: 0;
  width:  64px;
  height: 84px;
  background: url(../img/logo.png) no-repeat;
}

.logo-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid #c9a227;
}

.logo-text { font-size: 13px; color: var(--primary); font-weight: bold; line-height: 1.3; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 100px;
}

.nav-menu a {
  font-size: 17px;
  color: var(--text-dark);
  position: relative;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--primary); }

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-pic{
  width: 64px;
  height: 64px;
}

.search-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-gray);
  padding: 4px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero Banner ===== */
.hero-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(126,47,45,0.75) 0%, rgba(126,47,45,0.3) 50%, transparent 100%);
}

.hero-banner.dark-overlay::before {
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 10% 10%;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-content .info{display: flex;align-items: flex-end;border-left: 2px solid #D8D8D8;padding-left: 20px;}

.hero-content h1 {
  font-size: 42px;
  color: var(--white);
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.hero-content .hero-en {
  font-size: 32px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  margin-left: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 24px;
  color: rgba(255,255,255,0.8);
  border-left: 2px solid #D8D8D8;padding-left: 20px;
}

.hero-line {
  width: 3px; height: 50px;
  background: var(--white);
  display: inline-block;
  margin-right: 16px;
  vertical-align: middle;
}

.hero-title-wrap { display: inline-block; vertical-align: middle; }

/* Home hero special */
.home-hero {
  position: relative;
  height: auto;
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-hero::before { display: none; }

.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.home-hero-text h1 {
  font-size: 72px;
  color: var(--white);
  writing-mode: vertical-rl;
  letter-spacing: 12px;
  font-family: "KaiTi", "STKaiti", serif;
  line-height: 1.2;
}

.home-hero-brand {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  letter-spacing: 6px;
}

.home-hero-image {
  width: 380px; height: 380px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.home-hero img { width: 100%; height: 100%; object-fit: cover; }

.hero-dots {
  position: absolute;
  left: 0;
  bottom:  20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.hero-dots span.active { background: var(--white); width: 24px; border-radius: 4px; }

/* ===== Breadcrumb & Sub-nav ===== */
.sub-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg);
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-bottom: 1px solid #eee; */
  /*padding: 14px 0;*/
}

.sub-bar-inner {
  width: 100%;
  padding: 0 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  color: var(--text-light);
}

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

.sub-tabs { display: flex; gap: 0; }

.sub-tab {
  padding: 18px 24px;
  font-size: 20px;
  cursor: pointer;
/*  border: 1px solid #ddd;*/
  background: var(--bg);
  color: var(--text-dark);
  transition: all 0.3s;
  white-space: nowrap;
}

/*.sub-tab:first-child { border-radius: 4px 0 0 4px; }
.sub-tab:last-child { border-radius: 0 4px 4px 0; }*/
.sub-tab:not(:first-child) { border-left: none; }

.sub-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.sub-tab:hover:not(.active) { background: #f5f5f5; }

/* ===== Section Titles ===== */
.section-title {
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title .en {
  font-size: 30px;
  color: #21120C;
  letter-spacing: 1px;
  padding-left: 20px;
}

.section-title h2 {
  font-size: 28px;
  color: var(--primary);
  font-weight: bold;
}

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

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title-bar h2 { font-size: 24px; color: var(--text-dark); }

.more-btn {
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}

.more-btn:hover { color: var(--primary); }

/* ===== Footer ===== */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  background: url(https://site.vigicloud.cn/r/cms/sfbio/default/img/footer.jpg) no-repeat;
  position: relative;
  padding:  0 10%;
}

/*.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}*/

.footer-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.footer-contact-card {
  height: 100%;
  width: auto;
  background: url(https://site.vigicloud.cn/r/cms/sfbio/default/img/footer-bg.jpg) no-repeat;
  padding: 24px;
}

.footer-contact-card .logo { margin: 0 auto }
.footer-info{margin-top: 20px;border-top: 1px solid #78312B;padding-top: 20px;}
.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}

.footer-info-item img { width: 24px;height: 24px; }
.footer-message{display: flex;flex-direction: column;justify-content: space-between;}
.footer-top{display: grid;grid-template-columns: 1fr 150px;gap: 40px;padding-top: 50px;}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-col h4 {
  font-size: 15px;
  color: #F6EBEB;
  margin-bottom: 16px;
  font-weight: bold;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #F6EBEB;
  margin-bottom: 10px;
}

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

.footer-qr {
  width: 120px; height: 120px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-qr-placeholder {
  width: 90px; height: 90px;
  background: repeating-conic-gradient(#333 0% 25%, #fff 0% 50%) 50% / 10px 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: left;
  padding: 16px 20px;
  font-size: 12px;
  color: #F6EBEB;
  position: relative;
  z-index: 1;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 8px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  display: inline-block;
  padding: 8px 24px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 100px;
  padding-top: 40px;
}

.pagination button {
  width: 36px; height: 36px;
  border: none;
  background: rgba(212,179,146,0.3);
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  color: #78312B;
  transition: all 0.3s;
}

.pagination button.active,
.pagination button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pagination .disabled { background: #eee;color: #ddd }

.pagination .pagination-item {
  width: 37px;
  height: 8px;
  background: #D8D8D8;
  border-radius: 4px 4px 4px 4px;
  cursor: pointer;
}

.pagination .pagination-item.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Page-specific shared ===== */
.page-section { padding: 60px 0; }
.page-section.bg-cream { background: var(--cream); }
.page-section.bg-white { background: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.text-content p {
  font-size: 20px;
  color: #000000;
  margin-bottom: 16px;
  text-align: justify;
  line-height: 1.8;
  text-indent: 2em;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-qr-wrap { grid-column: span 2; justify-self: center; }
  .two-col { grid-template-columns: 1fr; }
  .home-hero-inner { flex-direction: column; text-align: center; }
  .home-hero-text h1 { writing-mode: horizontal-tb; font-size: 48px; letter-spacing: 8px; }
  .home-hero-image { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .search-pic{display: none}
  .search-btn{display: block;}
  .site-header{height: 50px;}
  .logo{width: 32px;height: 42px;background-size: 100% 100%;}
  .nav-menu {
    position: fixed;
    top: 50px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .hero-content h1 { font-size: 28px; }
  .hero-content .hero-en { font-size: 16px; }

  .sub-bar-inner { flex-direction: column; align-items: flex-start; }
  .sub-tabs { width: 100%; overflow-x: auto; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .section-title h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .sub-tab { padding: 8px 14px; font-size: 13px; }
  .footer-links { grid-template-columns: 1fr; }
}
