:host {
  --wood-primary: #8B4513;   /* 木质主色 */
  --wood-secondary: #A0522D; /* 木质辅色 */
  --wood-light: #DEB887;     /* 木质亮色 */
  --brick-color: #7D5A50;    /* 青砖色 */
  --porcelain-blue: #2a5daa; /* 青花蓝 */
  --gold-yellow: #e8c34d;    /* 稻穗金 */
  --mountain-green: #4a6b3d; /* 山林绿 */
  --river-blue: #4a86e8;     /* 赣江蓝 */
}

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

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background-color: #f5f2e9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f2e9"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%23e8e0d022" stroke-width="1"/></svg>');
}

/* 页面标题 */
.page-header {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('https://images.unsplash.com/photo-1606193431680-8f5a06d61c9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}

.page-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.page-subtitle {
  font-size: 1.5rem;
  max-width: 800px;
}

/* 内容区域 */
.content-section {
  padding: 4rem 5%;
  background-color: #fcfaf5;
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--wood-primary), var(--wood-secondary));
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  color: var(--wood-primary);
  position: relative;
  padding-left: 1.5rem;
  z-index: 2;
  background: linear-gradient(90deg, var(--wood-light), transparent 80%);
  padding: 0.5rem 1.5rem;
  border-radius: 0 30px 30px 0;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  background: var(--wood-primary);
  border-radius: 4px;
}

.section-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* 走进协会 */
.org-chart-container {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--wood-light);
  position: relative;
}

.org-header {
  padding: 1.2rem;
  background: linear-gradient(90deg, var(--wood-primary), var(--wood-secondary));
  color: white;
  display: flex;
  align-items: center;
}

.org-body {
  padding: 1.5rem;
  height: 500px;
}

.leaders-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.leader-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  border: 2px solid var(--wood-light);
  transition: all 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.leader-img {
  width: 150px;
  height: 180px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.leader-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.7));
  border: 5px solid var(--wood-light);
  border-radius: 50%;
  box-sizing: border-box;
}

.leader-info {
  flex: 1;
  padding: 1.5rem;
  position: relative;
}

.leader-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--wood-primary);
}

.leader-name {
  font-size: 1.5rem;
  color: var(--wood-primary);
  margin-bottom: 0.5rem;
}

.leader-title {
  color: var(--wood-secondary);
  margin-bottom: 1rem;
}

.leader-desc {
  color: #666;
  font-size: 0.95rem;
}

.ar-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--porcelain-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
}

/* 协会章程 */
.constitution-container {
  margin-top: 3rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--wood-light);
  position: relative;
}

.search-box {
  padding: 1.5rem;
  background: linear-gradient(135deg, #4a86e8 0%, #2a5daa 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.search-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q40,20 60,50 T100,50" fill="none" stroke="white" stroke-width="1" opacity="0.2"/></svg>');
  background-size: contain;
  transform: rotate(20deg);
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-btn {
  background: var(--gold-yellow);
  color: var(--wood-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  margin-left: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-btn:hover {
  background: #d9b347;
  transform: translateY(-2px);
}

.constitution-content {
  padding: 2rem;
  max-height: 400px;
  overflow-y: auto;
  background: #f9f6f0;
  font-family: 'SimSun', serif;
  line-height: 2;
  position: relative;
}

.constitution-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%23e8e0d0" stroke-width="1"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.highlight {
  background-color: rgba(232, 195, 77, 0.3);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: bold;
}

/* 学术体系 */
.academic-calendar {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--wood-light);
}

.calendar-header {
  padding: 1.2rem;
  background: linear-gradient(90deg, var(--mountain-green), #5d8c5a);
  color: white;
  display: flex;
  align-items: center;
}

.calendar-body {
  padding: 1.5rem;
  height: 400px;
}

.standards-container {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--wood-light);
}

.standards-header {
  padding: 1.2rem;
  background: linear-gradient(90deg, var(--wood-primary), var(--wood-secondary));
  color: white;
  display: flex;
  align-items: center;
}

.standards-body {
  padding: 1.5rem;
}

.versions {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.version-card {
  flex: 1;
  background: #f9f6f0;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  border: 1px solid var(--wood-light);
}

.version-title {
  font-size: 1.2rem;
  color: var(--wood-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wood-light);
}

.version-content {
  line-height: 1.8;
}

.diff-highlight {
  background-color: rgba(255, 0, 0, 0.1);
  text-decoration: line-through;
}

.new-highlight {
  background-color: rgba(0, 128, 0, 0.1);
  font-weight: bold;
}

.diff-highlight.active-highlight {
  background-color: rgba(255, 0, 0, 0.2);
}

.new-highlight.active-highlight {
  background-color: rgba(0, 128, 0, 0.2);
}

/* 人才培养 */
.training-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.training-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--wood-light);
}

.training-header {
  padding: 1.2rem;
  background: linear-gradient(90deg, var(--porcelain-blue), #3a7de8);
  color: white;
  display: flex;
  align-items: center;
}

.training-body {
  padding: 1.5rem;
}

.progress-track {
  height: 40px;
  background: #f0e6d2;
  border-radius: 20px;
  overflow: hidden;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
  border: 2px solid var(--wood-light);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-yellow), #d9b347);
  width: 65%;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 20px;
  color: var(--wood-primary);
  font-weight: bold;
  box-shadow: 0 0 10px rgba(232, 195, 77, 0.5);
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 L40,20 L40,80 Z" fill="%238B4513"/></svg>') right center no-repeat;
  background-size: 30px;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.course-card {
  background: #f9f6f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border: 1px solid var(--wood-light);
  position: relative;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.course-img {
  height: 160px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.course-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.6));
}

.course-content {
  padding: 1.2rem;
}

.course-title {
  font-size: 1.2rem;
  color: var(--wood-primary);
  margin-bottom: 0.5rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  color: var(--wood-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* 页脚 */
.footer {
  background: var(--wood-primary);
  color: #f0e6d2;
  padding: 3rem 5% 2rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: var(--gold-yellow);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-yellow);
}

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

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #f0e6d2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--gold-yellow);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(240, 230, 210, 0.3);
  color: #d9c7a7;
  font-size: 0.9rem;
}

/* 动画效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .section-content, .versions, .training-container {
    flex-direction: column;
  }
  
  .leader-card {
    flex-direction: column;
  }
  
  .leader-img {
    width: 100%;
    height: 200px;
  }
}