/* --- 全局样式 --- */
:root {
    --primary-color: #7F2230;     /* Deep Maroon */
    --accent-color: #E5B1BA;      /* Dusty Rose */
    --text-color: #333333;        /* Dark Gray for main text */
    --subtle-text-color: #7c7c7c;  /* Medium Gray */
    --border-color: #CECECE;      /* Light Gray */
    --light-bg-color: #f8fafc;    /* Very Light Off-White */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    background-color: var(--light-bg-color);
    color: var(--subtle-text-color); /* Default text is now medium gray */
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color); /* Main headings are now deep maroon */
}

/* --- 导航栏 --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color); /* Logo is now deep maroon */
    text-decoration: none;
}
.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.navbar nav ul li {
    margin-left: 2rem;
}
.navbar nav ul li a {
    text-decoration: none;
    color: var(--subtle-text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.15rem; /* 您可以调整这个值，比如 1.2rem */
}
.navbar nav ul li a:hover {
    color: var(--primary-color);
}

/* --- 按钮 --- */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}
.btn-primary {
    background-color: var(--primary-color); /* Primary button is deep maroon */
    color: #fff;
}
.btn-primary:hover {
    background-color: #6a1b28; /* Darker maroon on hover */
}
.btn-secondary {
    /* 原始样式：background-color: transparent; */
    /* 替换为：半透明的深色背景，提高文字对比度 */
    background-color: rgba(0, 0, 0, 0.4); /* 半透明的黑色背景 */
    color: #fff; /* 确保文字是白色 */
    border: 2px solid var(--accent-color); /* 边框颜色保持您的淡粉色 */
}
.btn-secondary:hover {
    /* 鼠标悬停时，背景色变得更不透明 */
    background-color: rgba(0, 0, 0, 0.6); 
    color: #fff;
    border-color: var(--primary-color); /* 悬停时边框变为深色 */
}

/* --- 首页 (index.html) --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* 1. 使用 ::before 创建最底层的背景：平铺的、略微模糊的拨片图 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* 在最底层 */

    /* ！！！请确保这张拨片图的路径正确！！！ */
    background-image: url('/images/20251016164138_68_155.jpg');
    
    /* 实现您要的“平铺”效果 */
    background-repeat: repeat;

    /* 添加一点模糊和亮度调整，让它作为背景不那么抢眼 */
    filter: blur(8px) brightness(0.7);
}

/* 2. 使用 ::after 在上层显示中间的、清晰的卡通乐队图 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 层级比拨片背景高 */

    /* ！！！请确保卡通图的路径正确！！！ */
    background: url('/images/background.jpg') no-repeat center center;
    
    /* 关键：使用 contain 保证卡通图完整显示，这样它占不满的地方就会透出底下的拨片背景 */
    background-size: contain; 
}

/* 3. 确保文字和按钮内容在所有背景之上 */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-actions .btn {
    margin: 0 0.5rem;
    min-width: 180px;
}

/* --- 列表页 --- */
.page-header {
    background-color: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
}
.filters {
    flex-basis: 250px;
    flex-grow: 1;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    align-self: flex-start;
}
.filter-group {
    margin-bottom: 1.5rem;
}
.filter-group:last-child {
    margin-bottom: 0;
}
.filter-group h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
}
.filter-group select, .filter-group input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    box-sizing: border-box;
}
.listings {
    flex-basis: 0;
    flex-grow: 999;
    min-width: 60%;
}
.card-grid {
    display: grid;
    /* ▼▼▼ 只需要修改这一行 ▼▼▼ */
    grid-template-columns: 1fr; /* 将多列布局改为单列布局 */
    gap: 1.5rem;
}
/* --- 卡片样式 --- */
.card {
    background-color: #fff;
    border: 1px solid var(--border-color); /* Light gray border */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color); /* Light gray separator */
}
.card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}
.card-title h3 {
    margin: 0 0 4px 0;
    color: var(--text-color);
    font-size: 1.25rem;
}
.card-title p {
    margin: 0;
    color: var(--subtle-text-color);
    font-size: 0.95rem;
}
.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
    padding-top: 0; /* Remove top padding to align with header */
}
.card-content {
    flex-grow: 1;
}
.card-description {
    color: var(--subtle-text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px; /* Add margin here instead of card-body */
    margin-bottom: 15px;
}
.tag {
    background-color: #FEF6F7; /* Light dusty rose background */
    color: var(--primary-color); /* Deep maroon text for contrast */
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.card-tags:last-child {
    margin-bottom: 0;
}
.card-contact {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 招募信息 & 表单 --- */
.recruiting-info {
    font-weight: 500;
    margin-bottom: 15px;
    padding: 5px 10px;
    background-color: #FEF6F7; /* Light dusty rose background */
    border-left: 3px solid var(--accent-color); /* Dusty rose accent line */
    border-radius: 4px;
    font-size: 1rem;
    color: var(--primary-color);
}
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.form-container h1 {
    text-align: center;
    margin-top: 0;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.captcha-container { display: flex; align-items: center; gap: 10px; }
.captcha-container img { border-radius: 5px; cursor: pointer; }

/* --- 页脚 --- */
.site-footer {
    background-color: var(--primary-color); /* Footer is now deep maroon */
    color: #f1f5f9; /* Lighter text for contrast */
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- 关于我们页 --- */
.about-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 2rem auto;
}
.about-content p, .about-content ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* --- 分页导航 --- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 0;
}
.pagination ul {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style-type: none;
}
.pagination li a {
    display: block;
    padding: 8px 16px;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pagination li a:hover {
    background-color: #FEF6F7; /* Light dusty rose hover */
    border-color: var(--accent-color);
}
.pagination li a.active {
    background-color: var(--primary-color); /* Active page is deep maroon */
    border-color: var(--primary-color);
    color: #fff;
    cursor: default;
}
.pagination li.disabled a {
    color: var(--subtle-text-color);
    background-color: var(--light-bg-color);
    cursor: not-allowed;
}
.pagination li.disabled a:hover {
    background-color: var(--light-bg-color);
    border-color: var(--border-color);
    color: var(--subtle-text-color);
}
.pagination li.ellipsis span {
    display: block;
    padding: 8px 12px;
    color: var(--subtle-text-color);
}

/* Add this to the end of your style.css file */

/* --- Responsive Navigation --- */
.nav-toggle {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0.5em;
}

.hamburger {
  display: block;
  position: relative;
  width: 2em;
  height: 3px;
  background: var(--primary-color, #7F2230);
  transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  height: 3px;
  background: var(--primary-color, #7F2230);
  left: 0;
  right: 0;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* This media query activates on screens 768px or smaller */
@media (max-width: 768px) {
  .nav-toggle {
    display: block; /* Show the hamburger button */
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    
    /* This is what makes it a block */
    visibility: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: visibility 0s linear 0.25s, opacity 0.25s linear, transform 0.25s;
  }
  
  .nav ul {
    flex-direction: column; /* Stack the links vertically */
    padding: 1em;
    text-align: center;
  }
  
  .nav li {
    margin: 1em 0;
  }

  .btn-nav {
    display: none; /* Hide the desktop button */
  }
  
  /* --- Navigation Active State --- */
  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
  }

  .nav-open .hamburger {
    transform: rotate(45deg);
  }

  .nav-open .hamburger::before {
    transform: rotate(-90deg) translate(-8px);
  }
  
  .nav-open .hamburger::after {
    opacity: 0;
  }
  
  /* Add this to make sure the body does not scroll when the menu is open */
  .nav-open {
    overflow: hidden;
  }
}
/* --- 移动端专属隐藏和显示 --- */
.mobile-only {
  display: none;
}

/* 在 768px 以下，隐藏桌面按钮、显示 mobile-only 菜单项 */
@media (max-width: 768px) {
  .btn-nav {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

/* --- Styling for Page Headers --- */
.page-header {
    /* --- 修改点 START --- */
    background-image: url('/images/20251016163851_61_155.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff; /* <<< 关键修改：背景色改为纯白色 >>> */
    /* --- 修改点 END --- */

    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* 恢复标题和段落的默认颜色，以确保在白色背景上可读 */
.page-header h2 {
    color: var(--primary-color);
}

.page-header p {
    color: var(--subtle-text-color);
}

/* --- About Us Page Feature Sections --- */
.feature-section {
    display: flex;
    align-items: center;
    gap: 3rem; /* Spacing between image and text */
    margin-bottom: 4rem; /* Spacing between sections */
}

.feature-image,
.feature-text {
    flex: 1; /* Each takes up half the space */
}

.feature-image img {
    width: 100%;
    border-radius: 8px; /* Matches your card style */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-text h3 {
    font-size: 2rem;
    margin-top: 0;
}

/* Modifier class to reverse the order of image and text */
.feature-section-reverse {
    flex-direction: row-reverse;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .feature-section {
        flex-direction: column; /* Stack image and text vertically */
        gap: 2rem;
        margin-bottom: 3rem;
    }

    /* On mobile, we don't need the reverse class to do anything different */
    .feature-section-reverse {
        flex-direction: column;
    }
}
