/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Brand Colors Variables */
:root {
  --brand-primary: #0A2463;      /* 主色：深邃海军蓝 */
  --brand-primary-light: #123A7A;/* 主色渐变浅 */
  --brand-accent: #3E92CC;      /* 强调/按钮色：天蓝 */
  --brand-metal: #C4D4E0;       /* 金属银灰 */
  --brand-secondary: #6C757D;   /* 辅助色：石墨灰 */
  --brand-success: #28A745;     /* 成功色：绿色 */
  --brand-warning: #FFC107;     /* 警告色：黄色 */
  --brand-danger: #DC3545;      /* 危险色：红色 */

  --bg-main: #F8F9FA;           /* 主背景：更柔和的浅灰 */
  --bg-card: #FFFFFF;           /* 卡片背景：纯白 */
  --bg-light: #F1F3F5;          /* 浅色背景 */

  --text-main: #1A1A1A;         /* 主标题深灰 */
  --text-body: #444444;         /* 正文中灰 */
  --text-light: #666666;        /* 辅助文字浅灰 */
  --text-on-dark: #FFFFFF;      /* 深色背景下的白色文字 */
  --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-main);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-card);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--brand-accent);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-body);
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover {
    color: var(--brand-accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 70%;
}

.btn-contact {
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(62, 146, 204, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(62, 146, 204, 0.4);
    color: white !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 12px 20px;
    color: var(--text-body);
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--brand-accent);
    padding-left: 25px;
}

.arrow-down::after {
    content: " ▼";
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 5px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 3px 0;
    transition: 0.3s;
}

/* Banner Section */
.banner {
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.85) 0%, rgba(18, 58, 122, 0.85) 100%), url('images/banner.jpeg');
  background-size: cover;
  background-position: center;
  padding: 100px 0; /* Increased padding for better visual impact */
  color: var(--text-on-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: left;
  overflow: hidden;
}

/* Subtle texture overlay for enhanced depth */
.banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(62, 146, 204, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(62, 146, 204, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.banner-content {
    max-width: 950px;
    margin-right: 40px;
    padding: 0 20px;
    color: var(--text-on-dark);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.banner h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-on-dark);
    font-weight: 500;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-on-dark);
    line-height: 1.7;
    max-width: 600px;
}

.banner .btn + .btn {
  margin-left: 16px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Animation for banner elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* 按钮统一样式 */
.btn {
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

/* 主按钮：实心蓝色 */
.btn-primary {
  background-color: var(--brand-accent);
  color: var(--text-on-dark);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--brand-accent);
  opacity: 0.8; /* Slightly reduce opacity on hover for visual effect */
}

/* 次按钮：描边 */
.btn-outline {
  background-color: transparent;
  color: var(--text-on-dark);
  border: 2px solid var(--text-on-dark);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--text-on-dark); /* White background on hover */
  color: var(--brand-primary); /* Dark text on hover */
}

/* 次按钮：描边蓝色版本（保持原有样式） */
.btn-secondary {
    background-color: transparent;
    color: var(--brand-accent); /* Light sky blue for better contrast on dark background */
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid var(--brand-accent); /* Light sky blue for better contrast on dark background */
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--brand-accent); /* Light sky blue background on hover */
    color: white;
}

/* 按钮间距 */
.banner .btn + .btn, .hero-buttons .btn + .btn {
  margin-left: 16px;
}

.hero-image {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-main) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-primary));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.features h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.features .section-desc {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-item {
    background: var(--bg-card);
    text-align: center;
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

/* Standardize feature card images */
.feature-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-image {
    margin: 20px auto 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.feature-image img {
    width: 100%;
    max-width: 320px;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.industry-image {
    margin: 0 auto 20px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.industry-image img {
    width: 100%;
    max-width: 360px;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: var(--brand-primary);
}

.feature-item p {
    color: var(--text-body);
    line-height: 1.7;
    font-size: 1rem;
}

/* Products Overview */
.products-overview {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, var(--bg-main) 100%);
    position: relative;
    overflow: hidden;
}

.products-overview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary), var(--brand-accent));
    background-size: 200% 200%;
    animation: gradientShiftReverse 4s ease infinite;
}

@keyframes gradientShiftReverse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.products-overview h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.products-overview .section-desc {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 2;
}

.product-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.product-card:hover h3 {
    color: var(--brand-accent);
}

.product-card p {
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: transparent;
    color: var(--brand-accent);
    border: 2px solid var(--brand-accent);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.product-card a:hover {
    background: var(--brand-accent);
    color: white;
    transform: translateY(-2px);
}

/* Industries */
.industries {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, var(--bg-main) 100%);
    position: relative;
    overflow: hidden;
}

.industries::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary), var(--brand-accent));
    background-size: 200% 200%;
    animation: gradientShiftReverse 4s ease infinite;
}

.industries h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.industries .section-desc {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 2;
}

.industry-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-light);
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.industry-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.industry-card:hover::before {
    transform: scaleX(1);
}

.industry-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.industry-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.industry-card:hover h3 {
    color: var(--brand-accent);
}

.industry-card p {
    color: var(--text-body);
    line-height: 1.7;
    flex-grow: 1;
}

/* Services */
.services {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-main) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-primary));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.services .section-desc {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 2;
}

.service-item {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: var(--brand-primary);
}

.service-item p {
    color: var(--text-body);
    line-height: 1.7;
    flex-grow: 1;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(62, 146, 204, 0.9) 100%), url('images/cta-engineer.webp');
    background-color: rgba(10, 36, 99, 0.9);
    background-size: cover;
    background-position: center;
    color: var(--text-on-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-on-dark);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.cta h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    position: relative;
    z-index: 2;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
    position: relative;
    z-index: 2;
}

.cta .btn-primary {
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
    color: var(--text-on-dark);
    padding: 16px 40px;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    border: none;
}

.cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    justify-content: center; /* Center the buttons */
    flex-wrap: wrap;
}

/* Banner Buttons Container */
.banner .hero-buttons {
    justify-content: flex-start; /* Left align buttons in banner */
}

/* Capabilities Section */
.capabilities {
    padding: 80px 0;
    background-color: var(--bg-main);
}

/* 全站二级标题统一 */
.section-title {
  color: var(--text-main);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 12px;
  text-align: center;
}

/* 标题下方蓝色小装饰线 */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--brand-accent);
}

/* 标题描述文本 */
.section-desc {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 卡片容器 */
.service-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* 轻阴影，不厚重 */
  padding: 24px;
  height: 100%;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Card images - constrain size */
.service-card-image {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
}

.service-card-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
}

/* 卡片标题 */
.service-card__title {
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

/* 卡片正文 */
.service-card__desc {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 15px;
}

/* 卡片图标（如果有 icon 容器） */
.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--brand-primary);
}

.capability-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* 轻阴影，不厚重 */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.capability-card:hover {
    transform: translateY(-5px);
}

.capability-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capability-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.5rem;
}

.capability-card p {
    margin-bottom: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.capability-card .btn-secondary {
    display: inline-block;
    margin-top: 10px;
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.blog-preview .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.blog-preview .section-desc {
    text-align: center;
    margin-bottom: 50px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-card h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--brand-accent);
}

.post-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.date {
    font-weight: 600;
}

.center-button {
    text-align: center;
    margin-top: 20px;
}

/* Featured Posts Section */
.featured-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.post-preview {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    border-left: 4px solid var(--brand-accent);
}

.post-preview h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.post-preview h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-preview h3 a:hover {
    color: var(--brand-accent);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.category-card h3 a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card h3 a:hover {
    color: var(--brand-accent);
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--brand-metal);
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--brand-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--brand-primary);
}

.form-note {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.why-choose-us-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.why-choose-us-image {
    flex: 1;
    min-width: 300px;
}

.why-choose-us-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.why-choose-us-text {
    flex: 1;
    min-width: 300px;
}

.why-choose-us h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Assembly Banner */
.assembly-banner {
    background-image: url('../images/assembly-service.jpg');
    background-size: cover;
    background-position: center;
}

/* DFM Support Banner */
.dfm-support-banner {
    background-image: url('../images/engineer-reviewing-design.jpg');
    background-size: cover;
    background-position: center;
}

/* DFM Support CTA */
/* Logistics Banner */
.logistics-banner {
    background-image: url('../images/shipping-containers.jpg');
    background-size: cover;
    background-position: center;
}

/* Logistics CTA */
/* Quality Control Banner */
.quality-control-banner {
    background-image: url('../images/engineer-measuring-part.jpg');
    background-size: cover;
    background-position: center;
}

/* Quality Control CTA */
/* 流程 / 行业板块轻量化样式 */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 6px;
}

/* 图标 */
.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--brand-primary);
  flex-shrink: 0;
  font-size: 1.5rem;
}

/* 标题 */
.feature-item h3 {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

/* 描述 */
.feature-item p {
  color: var(--text-body);
  line-height: 1.6;
}

/* Dropdown divider */
.dropdown-divider {
  height: 1px;
  background-color: var(--brand-metal);
  margin: 10px 0;
}

.feature-card {
    text-align: left;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-body);
}

/* Process Section */
.process {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.process .section-title {
    color: var(--text-main);
}

.process-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 50px;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* 轻阴影，不厚重 */
}

/* 标题 */
.process-step h3 {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* 描述 */
.process-step p {
    color: var(--text-body);
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--brand-primary);
    color: var(--text-on-dark);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--brand-accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-section h3 span {
    color: var(--brand-accent);
}

.footer-section h4 {
    color: var(--brand-accent);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--brand-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--brand-primary-light);
    color: var(--text-light);
}

/* Long-form resource guides (generated articles) */
.article-page {
    padding: 40px 0 80px;
    background-color: var(--bg-main);
}

.article-page .content-wide {
    max-width: 920px;
}

.article-page .longform h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.article-page .longform .lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.article-page .longform h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.65rem;
    color: var(--text-main);
}

.article-page .longform h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--brand-primary);
}

.article-page .longform p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--text-body);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--brand-accent);
    text-decoration: none;
}

.article-hero-img img,
.article-page .inline-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.table-responsive {
    overflow-x: auto;
    margin: 1.25rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.data-table th,
.data-table td {
    border: 1px solid var(--brand-metal);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.data-table thead th {
    background: var(--brand-primary);
    color: var(--text-on-dark);
    font-weight: 600;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.method-cards figure {
    margin: 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.method-cards img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.method-cards figcaption {
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--brand-metal);
}

.faq-list dt {
    font-weight: 700;
    margin-top: 1.25rem;
    color: var(--text-main);
}

.faq-list dd {
    margin: 0.5rem 0 0 0;
    padding-left: 0;
    line-height: 1.7;
    color: var(--text-body);
}

/* Aluminum casting guide & long-form article polish */
/* Fixed navbar is 70px — push page content below it */
.article-page--guide {
    padding-top: calc(70px + 20px);
    background: linear-gradient(180deg, #eef3f8 0%, var(--bg-main) 320px);
}

.article-page--guide .article-guide-shell {
    max-width: 1180px;
}

.article-page--guide .article-guide-shell.content-wide {
    background: var(--bg-card);
    padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(10, 36, 99, 0.07);
    border: 1px solid rgba(196, 212, 224, 0.6);
}

/* Two-column layout: sticky TOC + article */
.article-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: calc(70px + 16px);
    z-index: 10;
    align-self: start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1rem 1.25rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-card) 40%);
    border-radius: 10px;
    border: 1px solid var(--brand-metal);
    box-shadow: 0 4px 18px rgba(10, 36, 99, 0.06);
}

.breadcrumb--sidebar {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brand-metal);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-light);
}

.breadcrumb--sidebar .breadcrumb-current {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.35;
}

.toc-nav-title {
    margin: 0 0 0.75rem 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(196, 212, 224, 0.5);
}

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

.toc-list a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.toc-list a:hover {
    color: var(--brand-accent);
    border-left-color: var(--brand-accent);
    background: rgba(62, 146, 204, 0.06);
}

/* Anchor jump: clear fixed header */
.longform--resource-guide h2[id],
.longform--resource-guide h3[id],
section#faq {
    scroll-margin-top: calc(70px + 16px);
}

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

    .article-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        margin-bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--brand-metal);
    font-weight: 600;
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 600;
}

.article-hero-block {
    margin-bottom: 2rem;
}

.article-page--guide .article-hero-img {
    margin: 0 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 36px rgba(10, 36, 99, 0.15);
}

.article-page--guide .article-hero-img::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.article-page--guide .article-hero-img img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.longform--resource-guide h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.longform--resource-guide .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--brand-accent);
    background: linear-gradient(90deg, rgba(62, 146, 204, 0.08), transparent);
    border-radius: 0 8px 8px 0;
    margin-bottom: 0;
}

.longform--resource-guide a:not(.btn-primary):not(.btn-secondary) {
    color: var(--brand-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(62, 146, 204, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.longform--resource-guide a:not(.btn-primary):not(.btn-secondary):hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.longform--resource-guide .inline-cta {
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--brand-metal);
}

.applications-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.applications-stack p {
    margin-bottom: 0;
    padding: 0.65rem 0.85rem;
    background: var(--bg-main);
    border-radius: 6px;
    border-left: 3px solid var(--brand-accent);
}

.applications-stack strong {
    color: var(--brand-primary);
}

.longform--resource-guide .checklist {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1rem 1rem 2.25rem;
    background: var(--bg-main);
    border-radius: 8px;
    border: 1px solid var(--brand-metal);
}

.longform--resource-guide .checklist li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
    color: var(--text-body);
}

.longform--resource-guide .checklist li:last-child {
    margin-bottom: 0;
}

.faq-section-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.longform--resource-guide .faq-section {
    background: var(--bg-main);
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--brand-metal);
}

.longform--resource-guide .faq-list dt {
    font-size: 1.05rem;
}

.longform--resource-guide .data-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.85);
}

.longform--resource-guide .method-cards figure {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.longform--resource-guide .method-cards figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10, 36, 99, 0.12);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-card);
        margin-top: 10px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-image img {
        max-width: 80%;
    }
    
    .features h2, .products-overview h2, .industries h2, .services h2, .cta h2, .capabilities h2, .why-choose-us h2, .process h2 {
        font-size: 2rem;
    }
    
    .capabilities-grid, .features-grid, .process-steps {
        grid-template-columns: 1fr;
    }
}
