/* 
  唐垦科技官网 - 全局样式表
  设计语言：现代科技农业、零碳建设、高质感、高易用性
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  /* 品牌色系 */
  --primary-color: #f29c1f;       /* 暖橙色 */
  --primary-hover: #d98310;
  --primary-light: #fef0db;
  --secondary-color: #27ae60;     /* 嫩绿色 */
  --secondary-hover: #219653;
  --secondary-light: #e8f8f0;

  /* 中性色系 */
  --bg-color: #f9fafb;            /* 页面背景 */
  --card-bg: #ffffff;             /* 卡片背景 */
  --text-primary: #1f2937;        /* 主要文字 */
  --text-secondary: #4b5563;      /* 次要文字 */
  --text-muted: #9ca3af;          /* 弱化文字/提示 */
  --border-color: #e5e7eb;        /* 边框线色 */
  
  /* 字体与排版 */
  --font-main: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  
  /* 阴影与圆角 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 25px -5px rgba(242, 156, 31, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 30px rgba(0, 0, 0, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* 过渡效果 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol, li {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

/* 2. Layout Elements */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* 3. Header Styling */
.header {
  background-color: var(--primary-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(242, 156, 31, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-subtitle {
  font-size: 0.65rem;
  opacity: 0.85;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background-color: #ffffff;
  transition: width var(--transition-fast) ease, left var(--transition-fast) ease;
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
  left: 0;
}

.nav-item a:hover,
.nav-item.active a {
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* 4. Banner Styling */
.banner {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 80px; /* Offset fixed header */
  display: flex;
  align-items: center;
  color: #ffffff;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.banner.no-mask::before {
  display: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 0.8s ease;
}

.banner-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.95;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .banner {
    height: 350px;
  }
  .banner-title {
    font-size: 2.2rem;
  }
  .banner-subtitle {
    font-size: 1.1rem;
  }
}

/* 5. Typography & Headings */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* 6. Card & Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

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

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

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

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 7. Specific Component UI Styles */
/* Stat Box */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(242, 156, 31, 0.2);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

@media (max-width: 576px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Intro block */
.intro-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .intro-layout {
    grid-template-columns: 1fr;
  }
}

.intro-text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-image-block img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.text-highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Partner Wall */
.partner-section {
  background-color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partner-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-card {
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-md);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-weight: bold;
  color: #777;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.partner-card:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-image-wrapper {
  text-align: center;
  margin-top: 20px;
}
.partner-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Table Style for market.html */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-top: 30px;
  margin-bottom: 30px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: white;
}

.data-table th, .data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) {
  background-color: #fafafa;
}

.data-table tr:hover {
  background-color: #f5f5f5;
}

/* Document Card Style for news.html */
.doc-card {
  border-left: 6px solid #d93025; /* Red seal style for official docs */
  background: white;
}

.doc-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: #fce8e6;
  color: #d93025;
  font-size: 0.85rem;
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 12px;
}

.doc-accent-box {
  background-color: #fdf2f2;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px dashed #f8b4b4;
  margin-top: 16px;
  color: #d93025;
  font-weight: 700;
  font-size: 1.1rem;
}

/* 8. Footer Styling */
.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.footer-item i {
  font-size: 1.2rem;
  width: 24px;
}

.footer-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-qr {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.footer-qr-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footer-item {
    justify-content: center;
  }
}

/* 9. Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Sidebar Styling */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 40px 30px;
    gap: 24px;
    transition: right var(--transition-normal);
    box-shadow: -4px 0 10px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Hamburger to Cross icon transition */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ==========================================================================
   关于我们 - 企业简介新布局 (图二甲方要求)
   ========================================================================== */
.about-intro-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 40px;
}

.about-intro-text p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  text-align: justify;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.about-stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 50px 0;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}

.about-stat-item {
  flex: 1;
  min-width: 150px;
}

.about-stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.about-intro-bottom p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  text-align: justify;
}

/* 响应式适配移动端 */
@media (max-width: 992px) {
  .about-intro-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .about-stats-container {
    margin: 30px 0;
    gap: 15px;
  }
  .about-stat-item {
    min-width: 120px;
  }
  .about-stat-num {
    font-size: 1.8rem;
  }
  .about-stat-label {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   核心板块与业务布局重构样式 (还原甲方效果图)
   ========================================================================= */
/* 核心板块 */
.core-section {
  background-color: #f5f7fa;
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.core-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.core-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 18px;
}

.core-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.core-desc-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  text-align: justify;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* 业务布局 */
.layout-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.layout-row-item {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

.layout-row-image {
  width: 100%;
}

.layout-row-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.layout-row-text p {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  text-align: justify;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .core-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .core-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .layout-row-item {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .core-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 战略合作伙伴合集图样式 */
.partner-image-wrapper {
  width: 100%;
  margin-top: 30px;
}

.partner-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}
