/*
Theme Name: GLAMOUR Child
Theme URI: https://tcd-theme.com/tcd073
Template: glamour_tcd073
Author: TCD
Author URI: https://tcd-theme.com/
Description: The WordPress theme "GLAMOUR" supports Welcart and builds a authentic e-commerce site. You can manage a large number of product groups with a mega menu and also you can check items in detail, which stimulates users to buy.
Version: 1.18.1.1759730700
Updated: 2025-10-06 14:05:00

*/

/* 全局样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9fafb;
  color: #111827;
}

/* 网格和布局 */
.grid {
  display: grid;
  gap: 1.5rem; /* 对应 Tailwind 的 gap-6 */
}
.col-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 对应 col-2 */
}
.container {
  width: 100%;
  max-width: 1200px; /* Tailwind 的 container 默认最大宽度 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* 对应 px-4 */
  padding-right: 1rem;
}
.max-w-2xl {
  max-width: 672px; /* Tailwind 的 max-w-2xl */
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.md-px-20 {
  @media (min-width: 768px) {
    padding-left: 5rem; /* 对应 md:px-20 */
    padding-right: 5rem;
  }
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.space-y-2 > * + * {
  margin-top: 0.5rem; /* 对应 space-y-2 */
}
.space-y-16 > * + * {
  margin-top: 4rem; /* 对应 space-y-16 */
}
.items-center {
  align-items: center;
}
.text-center {
  text-align: center;
}
.justify-center {
  justify-content: center;
}

/* 响应式网格 */
.grid-cols-1 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr); /* 对应 md:grid-cols-2 */
  }
}
@media (min-width: 1024px) {
  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr); /* 对应 lg:grid-cols-4 */
  }
}
.gap-8 {
  gap: 2rem; /* 对应 gap-8 */
}

/* 排版 */
.text-3xl {
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem; /* 36px */
  line-height: 2.5rem;
}
@media (min-width: 768px) {
  .md-text-5xl {
    font-size: 3rem; /* 48px, 对应 md:text-5xl */
    line-height: 1.2;
  }
}
.text-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}
.text-blue-800 {
  color: #1e40af; /* Tailwind 的 blue-800 */
}
.text-blue-600 {
  color: #2563eb; /* Tailwind 的 blue-600 */
}
.text-white {
  color: #ffffff;
}
.text-gray-600 {
  color: #4b5563; /* Tailwind 的 gray-600 */
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.leading-tight {
  line-height: 1.3; /* 对应 leading-tight */
}
.drop-shadow-lg {
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

/* 背景和颜色 */
.bg-gradient-to-r {
  background: linear-gradient(to right, #1d4ed8, #3b82f6); /* 对应 from-blue-700 to-blue-500 */
}
.bg-white {
  background-color: #ffffff;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-blue-600 {
  background-color: #2563eb;
}
.bg-blue-700 {
  background-color: #1d4ed8;
}
.bg-black {
  background-color: #000000;
}
.bg-opacity-70 {
  background-color: rgba(0, 0, 0, 0.7);
}
.hover-bg-blue-700:hover {
  background-color: #1d4ed8; /* 对应 hover:bg-blue-700 */
}
.hover-bg-gray-100:hover {
  background-color: #f3f4f6; /* 对应 hover:bg-gray-100 */
}

/* 边框和阴影 */
.border {
  border: 1px solid #e5e7eb; /* Tailwind 默认边框颜色 */
}
.rounded {
  border-radius: 0.25rem; /* 4px */
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-2xl {
  border-radius: 1rem; /* 16px */
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.hover-shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* 对应 hover:shadow-xl */
}

/* 间距和尺寸 */
.p-3 {
  padding: 0.75rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.w-full {
  width: 100%;
}
.aspect-16-10 {
  aspect-ratio: 16 / 10; /* 对应 aspect-[16/10] */
}

/* 交互和过渡 */
.transition {
  transition: all 0.3s ease; /* 对应 Tailwind 的 transition */
}

/* 列表 */
.list-disc {
  list-style-type: disc;
}
.pl-6 {
  padding-left: 1.5rem;
}

/* 定位和可见性 */
.hidden {
  display: none;
}
.fixed {
  position: fixed;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.z-100 {
  z-index: 100; /* 对应 z-[100] */
}

/* 你的现有自定义样式 */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom right, #0ea5e9, #06b6d4);
  color: white;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.25rem;
  }
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}
.card h3 {
  margin-top: 0;
  font-size: 1.125rem;
  color: #111827;
}
.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 16px;
  z-index: 50;
  font-size: 16px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}
#wechatModal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 100;
}
#wechatModal img {
  width: 240px;
  height: 240px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: white;
  padding: 10px;
}

/* 自定义图片样式 */
.img-custom {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}




/* 头部导航 */
.header-section {
    text-align: center;
    padding: 20px 0;
    background: #f5f5f5; /* 调整为设计匹配的背景色 */
}
.nav-links {
    margin: 20px 0;
}
.nav-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
}
.nav-links a:hover {
    text-decoration: underline;
}
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
}
.cta-button:hover {
    background: #0056b3;
}

/* 英雄区 */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: #e9ecef;
}
.section-heading {
    font-size: 140%;
    margin-bottom: 20px;
    color: #333;
}
.hero-section .buttons {
    margin-top: 20px;
}

/* 设备和技术部分 */
.post_col-4 {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    box-sizing: border-box;
}
.post_col-4 img.wp-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}
.post_col-4 h3 {
    font-size: 120%;
    margin-bottom: 10px;
    color: #333;
}
.post_col-4 ul {
    list-style: disc;
    margin-left: 20px;
    text-align: left;
}

/* 成就部分 */
.achievements-section .stat {
    font-size: 150%;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}
.achievements-section .stat-description {
    font-size: 100%;
    color: #555;
}

/* 服务和联系部分 */
.services-section ul {
    margin-left: 20px;
    margin-bottom: 24px;
}
.contact-info p {
    margin-bottom: 10px;
}

/* 页脚 */
.footer-section {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}
.footer-text {
    font-size: 90%;
    color: #666;
}

/* 响应式调整（与现有 CSS 一致） */
@media (max-width: 992px) {
    .post_col-4 {
        flex: 0 0 calc(50% - 20px);
    }
}
@media (max-width: 576px) {
    .post_col-4 {
        flex: 0 0 100%;
    }
}

/* chenhe20250827 */
/* General Styles */
.page-content {
    font: 16px/1.7 system-ui, -apple-system, Segoe UI, "PingFang SC", Roboto, Helvetica, Arial;
    background: #f9fafc;
    color: #333;
    margin: 0;
}

/* Container */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 30px 20px;
}

/* Hero1 */
.heronew {
    background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef') no-repeat center;
    background-size: cover;
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}
.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 16px;
}
.hero-text {
    font-size: 1.125rem;
    margin-bottom: 24px;
}
.hero-button {
    background-color: #2563eb;
    color: #fff;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
}
.hero-button:hover {
    background-color: #1d4ed8;
}

/* Subtitle */
.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

/* Section */
.section-block {
    margin-bottom: 40px;
}
h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #0b3d91;
    border-left: 4px solid #0b3d91;
    padding-left: 8px;
}
h3 {
    margin: 18px 0 8px;
    font-size: 20px;
    color: #333;
}
ul {
    margin: 6px 0 12px 20px;
}
.section-block p {
    color: #666;
}

/* Events */
.bg-gray {
    background-color: #f3f4f6;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.event-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.event-card:hover {
    transform: translateY(-5px);
}
.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.event-freq, .event-desc {
    color: #4b5563;
    margin-bottom: 8px;
}

/* Membership Grid */
.membership-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.membership-card {
    flex: 1;
    min-width: 220px;
}
.membership-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Membership Form */
.membership-form {
    max-width: 448px;
    margin: auto;
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    text-align: left;
    color: #4b5563;
}
.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}
.form-button {
    width: 100%;
    background-color: #2563eb;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
.form-button:hover {
    background-color: #1d4ed8;
}

/* Note */
.note {
    color: #666;
    font-size: 14px;
    margin-top: 16px;
}

/* Image */
.wp-image {
    display: block;
    margin: 40px auto;
    max-width: 800px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
	
    .hero-title {
        font-size: 1.875rem;
    }
    .hero-text {
        font-size: 1rem;
    }
    .membership-grid {
        flex-direction: column;
    }
}

.hero-note {
    color: FFB300;
	
    font-weight: bold;
    font-size: 1.5rem; /* 放大文字 */
    margin-bottom: 24px;
    animation: blink 1s linear infinite; /* 闪动动画 */
}

/* 闪烁动画 */
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}


.ch-expo-ad-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: #333;
    line-height: 1.6;
}

.ch-expo-header {
    background: linear-gradient(135deg, #1a6dba 0%, #0d4d8c 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.ch-expo-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.ch-expo-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.ch-expo-details {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

.ch-expo-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.ch-expo-section-title {
    color: #1a6dba;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

.ch-expo-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ch-expo-info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #1a6dba;
}

.ch-expo-info-card h3 {
    color: #1a6dba;
    margin-bottom: 8px;
}

.ch-expo-company-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ch-expo-company-item {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #d0e3ff;
}

.ch-expo-agenda {
    margin-left: 20px;
    margin-top: 15px;
}

.ch-expo-agenda li {
    margin-bottom: 10px;
}

.ch-expo-cta {
    text-align: center;
    background: linear-gradient(135deg, #1a6dba 0%, #0d4d8c 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.ch-expo-cta h2 {
    color: white;
    margin-bottom: 15px;
}

.ch-expo-btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ch-expo-btn:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ch-expo-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ch-expo-title {
        font-size: 1.8rem;
    }
    
    .ch-expo-subtitle {
        font-size: 1.2rem;
    }
    
    .ch-expo-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ch-expo-company-list {
        grid-template-columns: 1fr;
    }
}

/*---------------------*/
/* 医疗协会主页专用样式 style */
:root {
    --primary: #2c6fbb;
    --primary-dark: #1a4d8c;
    --secondary: #4CAF50;
    --accent: #FF5722;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 15px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #3d8c40;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.3s ease;
    height: 100%;
}

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

/* 英雄区样式 */
.hero {
    background: linear-gradient(135deg, rgba(44, 111, 187, 0.9) 0%, rgba(76, 175, 80, 0.8) 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 价值主张区样式 */
.values {
    background-color: var(--white);
}

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

.value-card {
    text-align: center;
    padding: 40px 25px;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.value-card p {
    color: var(--gray);
}

/* 统计数据区样式 */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

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

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 资源区样式 */
.resources {
    background-color: var(--light);
}

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

.resource-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.resource-item {
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-link {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.resource-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* 新闻与活动区样式 */
.news {
    background-color: var(--light);
}

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

.news-card {
    padding: 25px;
}

.news-date {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.news-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* 患者教育区样式 */
.patient-education {
    background-color: var(--white);
}

.education-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.education-image {
    height: 400px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.education-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.education-content p {
    margin-bottom: 25px;
    color: var(--gray);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .resources-container,
    .education-container {
        grid-template-columns: 1fr;
    }

    .education-image {
        height: 300px;
        order: -1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .values-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0;
    }
}
/* end /style */

/* ==================== News 分类左右布局样式 ==================== */

.news-category-page #primary {
    max-width: 1200px;
    margin: 0 auto;
}

/* News 分类头部样式 */
.news-category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 10px;
}

.news-category-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.news-category-description {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.news-category-stats {
    font-size: 1em;
    opacity: 0.8;
}

/* News 文章左右布局容器 */
.news-posts-layout {
    margin-bottom: 60px;
}

/* 单个文章项 */
.news-post-side-by-side {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

.news-post-side-by-side:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 左右布局包装器 */
.news-post-wrapper {
    display: flex;
    min-height: 280px; /* 增加最小高度，确保图片有足够空间 */
}

/* 左侧媒体区域（图片） */
.news-post-media {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    background: #f8f9fa; /* 添加背景色，图片加载时显示 */
}

.news-post-thumbnail {
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 图片尺寸控制 */
.news-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例，裁剪多余部分 */
    object-position: center; /* 图片居中显示 */
    transition: transform 0.3s ease;
    display: block;
}

/* 确保图片在加载时就有合适的尺寸 */
.news-post-thumbnail::before {
    content: '';
    display: block;
    padding-top: 75%; /* 4:3 宽高比 */
}

.news-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-post-side-by-side:hover .news-post-thumbnail img {
    transform: scale(1.05);
}

/* 图片占位符 */
.news-post-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-post-placeholder::before {
    content: '';
    display: block;
    padding-top: 75%; /* 与图片保持相同比例 */
}

.placeholder-image {
    color: white;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.placeholder-image span {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

/* 右侧内容区域 */
.news-post-content {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 文章标题 */
.news-post-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-post-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-post-title a:hover {
    color: #667eea;
}

/* 文章元信息 */
.news-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666666;
    flex-wrap: wrap;
}

.news-post-date,
.news-post-author,
.news-post-comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    font-style: normal;
}

/* 文章摘要 */
.news-post-excerpt {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 文章操作区域 */
.news-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* 阅读更多链接 */
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 5px;
    background: transparent;
}

.news-read-more:hover {
    color: #ffffff;
    background-color: #667eea;
    text-decoration: none;
    transform: translateX(5px);
}

.arrow {
    transition: transform 0.3s ease;
}

.news-read-more:hover .arrow {
    transform: translateX(3px);
}

/* 阅读时间 */
.news-read-time {
    font-size: 0.9em;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 没有文章的提示 */
.no-news-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.no-news-posts h3 {
    color: #666666;
    margin-bottom: 15px;
}

.back-to-home {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #667eea;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-to-home:hover {
    background: #764ba2;
    color: #ffffff;
}

/* News 分类分页 */
.news-pagination {
    text-align: center;
    margin-top: 50px;
}

.news-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.news-pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1024px) {
    .news-post-wrapper {
        min-height: 250px;
    }
    
    .news-post-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .news-category-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .news-category-title {
        font-size: 2em;
    }
    
    /* 在小屏幕上改为上下布局 */
    .news-post-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-post-media {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
    }
    
    .news-post-thumbnail::before {
        padding-top: 56.25%; /* 16:9 比例在移动端 */
    }
    
    .news-post-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px;
    }
    
    .news-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-post-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .news-category-header {
        padding: 20px 10px;
    }
    
    .news-category-title {
        font-size: 1.6em;
    }
    
    .news-category-description {
        font-size: 1em;
    }
    
    .news-post-content {
        padding: 15px;
    }
    
    .news-post-title {
        font-size: 1.2em;
    }
    
    .news-post-thumbnail::before {
        padding-top: 66.67%; /* 3:2 比例在超小屏幕 */
    }
}