/* 修复页面缩放+形象居中 */
html {
    touch-action: manipulation; /* 禁止浏览器自动缩放 */
    zoom: 1; /* 强制原始比例 */
}
.main-banner {
    width: 100%; /* 让banner占满页面宽度，确保形象居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

/* 只保留首页专属样式，无冲突 */
.banner-avatar {
    width: auto;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 30px;
    animation: float 3s ease-in-out infinite;
}

/* 响应式调整banner头像大小 */
@media (max-width: 768px) {
    .banner-avatar {
        height: 160px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .banner-avatar {
        height: 140px;
        margin-bottom: 20px;
    }
    
    .main-banner {
        padding: 30px 15px;
    }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 首页按钮组样式 */
.banner-btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.banner-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none; /* 新增：去除a标签默认下划线 */
}
.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}
.btn-primary:hover {
    background-color: #ff4da6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.3);
}
.btn-secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.btn-secondary:hover {
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 功能板块样式 */
.features-section {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 平板和桌面设备的多列布局 */
@media (min-width: 768px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    min-height: 140px;
    display: flex;
    flex-direction: column;
}
.feature-card:active {
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
    transform: scale(0.98);
}
.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.feature-icon {
    font-size: 24px;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}
.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}
.feature-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-left: 42px;
}

/* 深色模式适配 */
body.dark-mode .feature-card {
    background-color: #2d2d2d;
}
body.dark-mode .feature-title {
    color: #f8f8f2;
}
body.dark-mode .feature-desc {
    color: #ccc;
}
body.dark-mode .btn-secondary {
    background-color: #2d2d2d;
    color: #f8f8f2;
    border: 1px solid #444;
}
