/* 关于页面特定样式 */

/* 关于页面特定样式 */

/* 页面特定变量 */
:root {
    --about-primary-color: #ff0000;
    --about-secondary-color: #00ffff;
    --about-bg-card: rgba(255, 255, 255, 0.05);
    --about-border-color: rgba(255, 255, 255, 0.1);
    --about-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --about-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 主容器 */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
    border: 1px solid var(--about-border-color);
    box-shadow: var(--about-shadow);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--about-primary-color), var(--about-secondary-color));
    animation: gradientSlide 3s ease-in-out infinite alternate;
}

@keyframes gradientSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--about-primary-color), var(--about-secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* 品牌标识 */
.brand-identity {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--about-border-color);
    transition: var(--about-transition);
}

.brand-identity:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
}

.brand-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.brand-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.brand-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

/* 内容卡片 */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid var(--about-border-color);
    box-shadow: var(--about-shadow);
    transition: var(--about-transition);
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--about-primary-color);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.3);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--about-primary-color), var(--about-secondary-color));
}

.card-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-title::before {
    content: '';
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, var(--about-primary-color), var(--about-secondary-color));
    border-radius: 4px;
}

.card-content {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 16px;
}

/* 网格布局 */
.grid-section {
    margin: 60px 0;
    width: 100%;
    overflow: hidden;
}

.grid-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--about-primary-color), var(--about-secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grid {
    display: flex;
    gap: 20px;
    overflow: hidden;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}

.advantage-card {
    flex: 1;
    min-width: 200px;
    max-width: 25%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--about-border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--about-transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

/* 确保在所有屏幕尺寸下都一行展示，不换行 */
@media (max-width: 1200px), (max-width: 992px), (max-width: 768px), (max-width: 480px) {
    .grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        overflow: hidden;
        width: 100%;
        justify-content: center;
        align-items: stretch;
    }
    
    .advantage-card {
        flex: 1;
        min-width: 200px;
        max-width: 25%;
        padding: 15px;
        min-height: 350px;
    }
    
    .advantage-title {
        font-size: 16px;
    }
    
    .advantage-description {
        font-size: 13px;
    }
    
    .advantage-image {
        height: 180px;
    }
}

/* 服务卡片 */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--about-border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--about-transition);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    width: auto;
}

/* 确保服务部分使用原来的网格布局，不影响响应式设计 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    overflow: hidden;
    width: 100%;
}

/* 服务部分保持原有的响应式设计 */
@media (max-width: 1200px), (max-width: 992px), (max-width: 768px), (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .service-card {
        min-width: auto;
        width: 100%;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 0, 0.1));
    transition: height 0.3s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--about-primary-color);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: var(--about-transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 1;
}

.service-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 优势卡片 */
.advantage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--about-border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--about-transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.advantage-card:hover {
    transform: translateY(-8px);
    background: rgba(0, 255, 255, 0.05);
    border-color: var(--about-secondary-color);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.advantage-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 20px;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    transition: var(--about-transition);
}

.advantage-card:hover .advantage-image {
    transform: scale(1.05);
}

.advantage-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: white;
}

.advantage-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 回到顶部按钮使用全局样式 */
/* 样式已在全局CSS中定义，此处不再重复定义 */

/* 禁用淡入动画，直接显示所有元素 */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-container {
        padding: 10px;
    }
    
    .hero-section {
        padding: 40px 10px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .brand-identity {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .brand-logo img {
        width: 80px;
        height: 80px;
    }
    
    .brand-info h2 {
        font-size: 24px;
    }
    
    .brand-info p {
        font-size: 16px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .grid-title {
        font-size: 28px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}