/**
 * 关于我们页面样式
 * 
 * @author Yi主题
 * @description 关于我们页面各模块样式定义
 */

/* ===== 变量定义 ===== */
:root {
    /* 主色调 */
    --primary-color: #3498db;
    --primary-dark: #3a5a8c;
    --primary-light: #6885ba;
    
    /* 辅助色 */
    --secondary-color:#f39c12;
    --secondary-dark: #d35400;
    --secondary-light: #f39c12;
    
    /* 中性色 */
    --light-color: #f5f7fa;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --gray-light: #ecf0f1;
    --gray-dark: #7f8c8d;

    /* 背景色 */
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --bg-primary: #e8f0fe;
    --bg-secondary: #fff5eb;

    /* 文本色 */
    --text-primary: #2c3e50;
    --text-secondary: #555;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;

    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* 过渡 */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* 边框变量 */
    --border-radius-sm: 3px;
    --border-radius-md: 5px;
    --border-radius-lg: 10px;
    --border-radius-xl: 20px;

    /* 全局变量 */
    --accent-color: #e74c3c;
    --text-color: #333;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --border-radius: 4px;
    --border-radius-circle: 50%;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: var(--font-sans);
}

/* ===== 全局样式 ===== */
.about-page {
    color: var(--text-primary);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.about-page section {
    padding: var(--spacing-lg) 0;
}

.about-page section:nth-child(even) {
    background-color: var(--bg-light);
}

/* 图标占位符通用样式 */
[class*="__fallback"] {
    display: none;
    width: 100%;
    height: 100%;
    background-color: var(--gray-light);
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--gray-dark);
    border-radius: 5px;
}

/* 标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    position: relative;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    padding-bottom: var(--space-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* ===== Hero Section ===== */
.about-hero {
    position: relative;
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/about-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 5rem 0;
    margin-bottom: 3rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
}

.about-hero__description {
    font-size: 1.3rem;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ===== 我们的故事 ===== */
.about-story {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.about-story__content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.about-story__image {
    flex: 0 0 45%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-story__image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-story__image-fallback {
    display: none;
    width: 100%;
    height: 300px;
    background-color: #f9f9f9;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #9c7c38;
}

.about-story__text {
    flex: 0 0 48%;
}

.about-story__text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ===== 团队部分 ===== */
.about-team {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.about-team__title {
    text-align: center;
    margin-bottom: var(--space-md);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.about-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.team-member__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member__content {
    padding: 1.5rem;
}

.team-member__name {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.team-member__position {
    color: #e67e22;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-member__bio {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.team-member__social {
    display: flex;
    gap: 0.8rem;
}

.team-member__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-member__social a:hover {
    background-color: #e67e22;
    color: #fff;
}

/* ===== 愿景部分 ===== */
.about-vision {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.about-vision__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-vision__content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ===== 用户评价 ===== */
.about-feedback {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.about-feedback__slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-feedback__item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feedback__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-feedback__content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #666;
    position: relative;
}

.about-feedback__content::before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(230, 126, 34, 0.2);
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.about-feedback__user {
    display: flex;
    align-items: center;
}

.about-feedback__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.about-feedback__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-feedback__avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #9c7c38;
    border-radius: 50%;
}

.about-feedback__info h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.about-feedback__role {
    color: #e67e22;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== 联系方式 ===== */
.about-contact {
    padding: var(--space-xxl) 0;
    background-color: var(--white);
}

.about-contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.about-contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-contact__item {
    margin-bottom: var(--space-md);
}

.about-contact__title {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.about-contact__icon {
    font-size: 1.5rem;
}

.about-contact__text {
    margin-left: calc(1.5rem + var(--space-xs));
}

.about-contact__text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.about-contact__text a:hover {
    color: var(--primary-color);
}

.about-contact__social {
    display: flex;
    gap: var(--space-sm);
    margin-left: calc(1.5rem + var(--space-xs));
}

.about-contact__social-link {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.about-contact__social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* 表单样式 */
.about-contact__form {
    background-color: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: var(--secondary-dark);
}

.form-message {
    padding: var(--space-sm);
    border-radius: 4px;
    margin-bottom: var(--space-md);
}

.form-message--success {
    background-color: #d4edda;
    color: #155724;
}

.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .about-story__content {
        flex-direction: column;
    }
    
    .about-story__image, 
    .about-story__text {
        flex: 0 0 100%;
    }
    
    .about-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-contact__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero__title {
        font-size: 2.2rem;
    }
    
    .about-hero__description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-feedback__slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 3rem 0;
    }
    
    .about-hero__title {
        font-size: 1.8rem;
    }
    
    .about-hero__description {
        font-size: 1rem;
    }
    
    .about-team__grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* 通用样式 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    color: var(--secondary-light);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 图标占位符 */
.icon-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background-color: var(--gray-200);
    color: var(--gray-500);
    font-size: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

/* 联系部分样式 */
.contact-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.contact-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-description {
    margin-bottom: 2rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.contact-text p {
    color: var(--gray-600);
    margin: 0;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.form-message--success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-message--error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-team__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --space-xxl: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-bottom: var(--space-sm);
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .about-team__grid {
        grid-template-columns: 1fr;
    }
    
    .team-member__image {
        height: 250px;
    }
} 