/* 关于我们页面通用样式 */

/* CSS变量定义 */
:root {
    --main-bg: #ffffff;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --sidebar-bg: #ffffff;
    --sidebar-text: #333333;
    --sidebar-hover: #4a9eff;
    --sidebar-active: #f8f9fa;
    --sidebar-width: 180px;
}

/* 基础样式 */
.about-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 5px 0 20px;
    background-color: var(--main-bg);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    min-height: 100vh;
}

.about-sidebar-container {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.about-content {
    flex: 1;
    padding: 0 25px;
}

.about-content-wrapper {
    flex: 1;
    padding: 0 25px;
}

/* 侧边栏样式 - 采用网站分享界面的设计 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    padding: 0 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.03);
    border-right: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    padding: 0 0 0 15px;
    margin: 0;
    border-bottom: none;
    line-height: 1.2;
}

.sidebar-nav {
    list-style: none;
    padding: 5px 0;
    margin: 0;
}

.sidebar-nav-item {
    padding: 0;
    margin: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 6px 15px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover {
    color: var(--sidebar-hover);
    background: rgba(0,0,0,0.02);
}

.sidebar-nav-link.active {
    color: var(--sidebar-hover);
    background: var(--sidebar-active);
    border-left: 2px solid var(--sidebar-hover);
    padding-left: 13px;
}

/* 移动端侧边栏切换按钮 */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sidebar-hover);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* 标题样式 */
.about-container h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* 内容区块 */
.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.content-section hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0 15px;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin: 15px 0 10px;
}

.content-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.content-text li {
    margin-bottom: 5px;
}

/* 图片样式 */
.content-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* 反馈表单样式 */
.feedback-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 150px;
}

.submit-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #0069d9;
}

/* 团队成员卡片 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    background-color: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.team-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.team-info {
    padding: 15px;
}

.team-info h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.team-info p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* 历史时间线 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: white;
    border: 2px solid #007bff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-date {
    font-weight: bold;
    color: #007bff;
}

/* 合作伙伴样式 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.partner-card {
    text-align: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.partner-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-logo {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-name {
    font-weight: 600;
    margin-bottom: 5px;
}

/* 联系方式 */
.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #007bff;
}

.contact-detail {
    flex: 1;
}

.contact-detail h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.contact-detail p {
    margin: 0;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-container h1 {
        font-size: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.25rem;
    }
    
    .content-section h3 {
        font-size: 1.05rem;
    }
    

    
    /* 修复关于页面侧边栏在移动端的问题 */
    .about-page-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .about-page-sidebar.active {
        left: 0;
    }
    
    .about-page-sidebar .sidebar {
        position: relative;
        height: 100%;
        top: 0;
    }
    
    .about-container {
        flex-direction: column;
        padding: 10px;
        gap: 0;
    }
    
    .about-sidebar-container {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        transition: left 0.3s ease;
    }
    
    .about-sidebar-container.active {
        left: 0;
    }
    
    .sidebar {
        width: 250px;
        height: 100vh;
        top: 0;
        position: relative;
    }
    
    .about-content {
        padding: 15px;
        width: 100%;
    }
    
    .about-content-wrapper {
        padding: 15px;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 23px;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .about-sidebar-container {
        width: 100%;
        order: -1;
    }
    
    .about-sidebar {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .about-container h1 {
        font-size: 1.4rem;
    }
    
    .content-section h2 {
        font-size: 1.2rem;
    }
    
    .content-section h3 {
        font-size: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 夜间模式样式 */
.dark-mode .about-container {
    background-color: #1a1a1a;
    color: #e4e4e4;
}

.dark-mode .about-content {
    color: #e4e4e4;
}

.dark-mode .about-sidebar {
    background-color: #252525;
    border-right: 1px solid #333;
}

.dark-mode .about-sidebar h3 {
    color: #e4e4e4;
    border-bottom: 1px solid #333;
}

.dark-mode .sidebar-nav li a {
    color: #ccc;
}

.dark-mode .sidebar-nav li a:hover, 
.dark-mode .sidebar-nav li a.active {
    background-color: #333;
    border-left-color: #4a6cf7;
    color: #7a93ff;
}

.dark-mode .about-container h1,
.dark-mode .content-section h2,
.dark-mode .content-section h3 {
    color: #e4e4e4;
}

.dark-mode .content-section hr {
    border-top: 1px solid #333;
}

.dark-mode .content-text {
    color: #bbb;
}

.dark-mode .content-text a {
    color: #7a93ff;
}

.dark-mode .team-card,
.dark-mode .partner-card {
    background-color: #252525;
    border-color: #333;
}

.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode .form-textarea {
    background-color: #252525;
    border-color: #444;
    color: #e4e4e4;
}

.dark-mode .contact-icon {
    background-color: #333;
}

.dark-mode .timeline::after {
    background-color: #444;
}

.dark-mode .timeline-item::after {
    background-color: #1a1a1a;
    border-color: #4a6cf7;
}

.dark-mode .timeline-date {
    color: #7a93ff;
}