/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark-red: #7B180F;
    --primary-light-red: #C7281D;
    --secondary-beige: #F9D2B0;
    --secondary-pink: #FCEDE0;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    --border-radius-large: 16px;
    --border-radius-medium: 8px;
    --border-radius-small: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--secondary-pink);
}

/* 语言选择弹窗 */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.language-modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.language-modal h2 {
    color: var(--primary-dark-red);
    margin-bottom: 1.5rem;
}

.language-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.language-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-dark-red);
    background-color: var(--white);
    color: var(--primary-dark-red);
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.language-btn:hover {
    background-color: var(--primary-light-red);
    color: var(--white);
    transform: scale(1.02);
}

/* 学校选择弹窗 */
.school-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.school-modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.school-modal h2 {
    color: var(--primary-dark-red);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 确保下拉菜单和按钮绝对可见 */
.school-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid #ddd !important;
    border-radius: var(--border-radius-medium) !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    background-color: var(--white) !important;
    color: #333 !important;
}

.school-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0.75rem 1.5rem !important;
    background-color: var(--primary-light-red) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--border-radius-medium) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
    width: 100% !important;
    text-align: center !important;
}

.school-btn:hover {
    background-color: var(--primary-dark-red) !important;
    transform: scale(1.02) !important;
}

/* 顶部导航栏 */
header {
    background-color: var(--primary-dark-red);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--secondary-beige);
}

.language-toggle {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-toggle:hover {
    background-color: var(--white);
    color: var(--primary-dark-red);
}

/* 移动端导航栏 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark-red);
    color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: none;
}

.mobile-nav-item {
    text-align: center;
    text-decoration: none;
    color: var(--white);
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item span {
    font-size: 0.8rem;
    display: block;
}

/* 首页内容 */
.hero {
    padding: 2rem 0;
}

.hero h1 {
    color: #8B2323;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #666;
}

.search-section {
    margin: 2rem 0;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light-red);
    box-shadow: 0 0 0 3px rgba(199, 40, 29, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-light-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: var(--primary-dark-red);
    transform: translateY(-50%) scale(1.05);
}

.quick-links {
    margin: 2rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.quick-link-item {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.quick-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.quick-link-item i {
    font-size: 2rem;
    color: var(--primary-light-red);
    margin-bottom: 1rem;
}

.quick-link-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark-red);
}

.quick-link-item p {
    font-size: 0.9rem;
    color: #666;
}

.intro-section {
    margin: 2rem 0;
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.intro-section h2 {
    color: var(--primary-dark-red);
    margin-bottom: 1rem;
}

/* 内容页面 */
.content-page {
    padding: 2rem 0;
    display: none;
}

.content-page.active {
    display: block;
}

.section-title {
    color: var(--primary-dark-red);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-beige);
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    /* 核心修改：把padding从1.5rem改成上下1.5rem、左右2rem，左右留出更多空间 */
    padding: 1.5rem 2rem; 
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

/* 额外优化：给卡片里的列表（ul/ol）增加左边缩进，让数字/圆点不贴边 */
.card ul, .card ol {
    padding-left: 1.5rem; /* 给列表增加左边空白，和卡片边框拉开距离 */
    margin: 0.8rem 0; /* 给列表上下也加一点间距，和标题/段落分开 */
}

/* 额外优化：给卡片里的段落增加上下间距，让文字不挤在一起 */
.card p {
    margin: 0.6rem 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card h3 {
    color: var(--primary-dark-red);
    margin-bottom: 1rem;
}

/* 页脚 */
footer {
    background-color: var(--primary-dark-red);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary-beige);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 关于我们页面主容器 */
.about-section {
    padding: 3rem 0;
    animation: fadeIn 0.5s ease forwards;
}

/* 大标题 */
.about-section h1 {
    color: var(--primary-dark-red);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-light-red);
}

/* 团队介绍卡片 */
.team-intro {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}.team-intro h3 {
    color: var(--primary-dark-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.team-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* 小组成员卡片 */
.team-member {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-light-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-dark-red);
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 1rem;
    color: var(--primary-light-red);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.member-tasks {
    list-style: none;
    padding: 0;
}

.member-tasks li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.member-tasks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light-red);
    font-weight: bold;
}

/* 联系方式区域 */
.contact-info {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info h3 {
    color: var(--primary-dark-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* 社区发帖专区样式 */
.post-item {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

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

.post-header {
  margin-bottom: 1rem;
}

.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.post-category.experience {
  background-color: #e8f4f8;
  color: #2196F3;
}

.post-category.question {
  background-color: #fce4ec;
  color: #E91E63;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
}

.post-actions {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

.reply-btn, .report-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius-medium);
  cursor: pointer !important;
  font-size: 0.9rem;
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
}

.reply-btn {
  background-color: var(--secondary-beige);
  color: var(--primary-dark-red);
}

.report-btn {
  background-color: #f5f5f5;
  color: #666;
}

.reply-form-container {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: var(--border-radius-medium);
  position: relative;
  z-index: 5;
}

.reply-content {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-medium);
  margin-bottom: 0.8rem;
  min-height: 80px;
}

.reply-submit {
  background-color: var(--primary-light-red);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-medium);
  cursor: pointer !important;
  position: relative;
  z-index: 20;
}

.replies {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid #eee;
}

.reply-item {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: #f9f9f9;
  border-radius: var(--border-radius-medium);
}

.reply-meta {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* 反馈页面样式 */
.feedback-section {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.feedback-card {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.feedback-card h1 {
    color: var(--primary-dark-red);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-dark-red);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-light-red);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--primary-dark-red);
    transform: scale(1.02);
}

.back-btn {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--primary-dark-red);
    text-decoration: none;
}

.back-btn:hover {
    color: var(--primary-light-red);
}
/* 发布帖子按钮样式 */
.submit-post-btn {
    width: 100%;
    padding: 1rem;
    background-color: #C0392B;
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-post-btn:hover {
    background-color: #922B21;
    transform: scale(1.02);
}

/* 导航高亮样式 */
.nav-menu li a.active {
    color: #F9D2B0 !important;
    font-weight: bold;
    border-bottom: 2px solid #F9D2B0;
    padding-bottom: 5px;
}

#campusMapImg {
    max-height: 600px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 打车卡片整体内边距 */
.taxi-card {
    padding: 1.5rem;
}

/* 核心左右flex布局，顶部对齐不拉伸 */
.taxi-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* 左侧文字区：自适应宽度 */
.taxi-content-left {
    flex: 1;
    min-width: 300px;
}

.taxi-content-left h3 {
    color: var(--primary-color, #912a20);
    font-size: 1.3rem;
    margin: 0 0 0.6rem 0;
}

.taxi-content-left p {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 1.2rem 0;
}

/* 文字教程列表：紧凑排版 */
.taxi-steps-list {
    padding-left: 1.2rem;
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.taxi-steps-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* 右侧图片区：固定宽度，防止太宽 */
.taxi-images-right {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 打车App小图：极致缩小，最大宽度220px */
.taxi-app-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 打车指南大图：缩小控制，最大宽度300px */
.taxi-guide-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

/* 手机端适配：自动切换为上下布局 */
@media (max-width: 768px) {
    .taxi-layout {
        flex-direction: column;
    }
    .taxi-images-right {
        flex: 1 1 100%;
    }
    .taxi-app-img, .taxi-guide-img {
        max-width: 100%;
    }
}

/* 生活服务通用布局（和交通出行页风格完全匹配） */
.service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* 左侧文字区 */
.service-content-left {
    flex: 1;
    min-width: 300px;
}

.service-content-left h3 {
    color: var(--primary-dark-red, #7B180F);
    font-size: 1.3rem;
    margin: 0 0 0.8rem 0;
}

.service-content-left p {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 0.6rem 0;
    font-weight: 500;
}

/* 材料列表样式 */
.material-list {
    padding-left: 1.2rem;
    margin: 0 0 1rem 0;
    line-height: 1.8;
    color: #333;
}

.material-list li {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

/* 步骤列表样式 */
.service-content-left .steps-list {
    padding-left: 1.2rem;
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.service-content-left .steps-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* 右侧图片区：固定宽度+图片缩小 */
.service-images-right {
    flex: 0 0 300px;
}

.service-guide-img {
    width: 100%;
    max-width: 300px; /* 图片最大宽度控制，和交通出行页一致 */
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

/* 手机端适配：自动切换为上下布局 */
@media (max-width: 768px) {
    .service-layout {
        flex-direction: column;
    }
    .service-images-right {
        flex: 1 1 100%;
    }
    .service-guide-img {
        max-width: 100%;
    }
}

/* 美食列表图文布局样式 */
.food-list {
    list-style: none;
    padding-left: 0 !important;
    margin: 1rem 0;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f0ed;
}

/* 最后一个菜品去掉下边框 */
.food-item:last-child {
    border-bottom: none;
}

.food-info {
    flex: 1;
    line-height: 1.7;
    color: #333;
}

/* 图片统一尺寸，不放大，不变形 */
.food-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.food-img:hover {
    transform: scale(1.03);
}

/* 移动端适配：图片在上，文字在下，全屏适配 */
@media (max-width: 768px) {
    .food-item {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .food-img {
        width: 100%;
        max-width: 220px;
        height: auto;
        margin: 0 auto;
    }
}