/* about.css - 顶部透明卡片版 */
.about-modal { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }

.about-modal-content {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    height: auto;
    max-height: 85vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* 顶部区域 - 带壁纸背景 */
.about-header {
    position: relative;
    padding: 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/wallpaper-about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.about-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.3), rgba(58, 12, 163, 0.2));
    z-index: 2;
}

.about-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
    gap: 20px;
}

.about-header-left { flex: 1; min-width: 0; }

.about-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    min-width: 60px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.info-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.about-header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.about-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 12px;
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 2px; /* 减小内边距以显示更多图片内容 */
    box-sizing: border-box; /* 确保内边距不影响总尺寸 */
    background-color: #ffffff; /* 背景改为白色 */
}

.about-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* 调整圆角以适应内边距 */
    object-fit: contain; /* 确保图片完整显示，不会被裁剪 */
    display: block;
}

.about-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-title {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.about-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 中部内容区域 */
.about-main-content {
    flex: 1;
    padding: 20px;
    overflow: visible;
    height: auto;
}

.about-cards { display: flex; flex-direction: column; gap: 16px; }

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.about-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
    color: white;
}

/* 简介图标 - 蓝色 */
.intro-icon { background: #4A90E2; }

/* 免责声明图标 - 橙色 */
.disclaimer-icon { background: #FF6B6B; }

.card-content { flex: 1; min-width: 0; }

.card-content h3 {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-content p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* 底部按钮区域 */
.about-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.about-action-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.about-social-buttons { display: flex; gap: 12px; }

.about-social-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: white;
}

.about-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* QQ按钮 - 浅蓝色 */
.qq-btn { background: #6BC5FF; }
.qq-btn:hover { background: #5AB5EF; }

/* 微信按钮 - 浅绿色 */
.wechat-btn { background: #7ED321; }
.wechat-btn:hover { background: #6EC312; }

/* 爱发电按钮 - 浅红色 */
.donate-btn { background: #FF7B7B; }
.donate-btn:hover { background: #FF6B6B; }

/* 私密空间按钮 - 浅黄色 */
.space-btn { background: #FFD166; }
.space-btn:hover { background: #FFC952; }

/* 日记本按钮 - 浅紫色 */
.diary-btn { background: #A58BFF; }
.diary-btn:hover { background: #9575E5; }

.about-social-btn .tooltip-text {
    visibility: hidden;
    width: 70px;
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 10px;
}

.about-social-btn .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.about-social-btn:hover .tooltip-text { visibility: visible; opacity: 1; }

/* 关闭按钮 - 浅绿色 */
.about-close-btn {
    padding: 10px 20px;
    border: none;
    background: #7ED321;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-close-btn:hover {
    background: #6EC312;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 收款模态框样式 */
.donate-modal { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }

.donate-modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 顶部标题区域 */
.donate-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.donate-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.donate-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.donate-heart {
    color: #FF7B7B;
    font-size: 18px;
    animation: pulse 2s infinite;
}

.donate-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* 顶部右上角关闭按钮 */
.donate-close-btn-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.donate-close-btn-top:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

/* 主要内容区域 */
.donate-main {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    min-height: 200px;
}

/* 左侧支付方式 */
.donate-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 60px;
}

.donate-method-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    position: relative;
}

.donate-method-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.donate-method-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 支付按钮浅颜色 */
.donate-method-btn[data-type="qq"] { color: #6BC5FF; border-color: #6BC5FF; }
.donate-method-btn[data-type="qq"].active { background: #6BC5FF; color: white; }
.donate-method-btn[data-type="wechat"] { color: #7ED321; border-color: #7ED321; }
.donate-method-btn[data-type="wechat"].active { background: #7ED321; color: white; }
.donate-method-btn[data-type="alipay"] { color: #1677FF; border-color: #1677FF; }
.donate-method-btn[data-type="alipay"].active { background: #1677FF; color: white; }

/* 问号按钮样式 */
.donate-method-btn.help-btn {
    color: #FFD166;
    border-color: #FFD166;
    margin-top: 10px;
}

.donate-method-btn.help-btn.active { background: #FFD166; color: white; }

/* 右侧二维码容器 */
.donate-qrcode-container { flex: 1; position: relative; min-height: 200px; }

.donate-qrcode {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.donate-qrcode.active { display: flex; }

/* 收款码图片容器 */
.qrcode-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 收款码图片样式 */
.qrcode-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 二维码占位符 */
.qrcode-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

.qrcode-placeholder i { font-size: 40px; opacity: 0.6; }
.qrcode-placeholder span { font-size: 13px; font-weight: 500; }
.qrcode-placeholder small { font-size: 11px; opacity: 0.7; }

/* 问号按钮内容样式 */
.help-content {
    padding: 20px;
    color: var(--text-secondary);
    text-align: left;
    width: 100%;
}

.help-content h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-align: center;
}

.help-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.help-content p {
    text-align: center;
    font-size: 12px;
    font-style: italic;
    margin: 0;
}

/* 支持者名单区域 */
.supporters-section { position: relative; margin-top: 20px; }

.supporters-title {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--bg-primary);
    padding: 0 8px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    z-index: 2;
}

.supporters-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    background: transparent;
    max-height: 120px;
    overflow-y: auto;
    position: relative;
}

/* 隐藏滚动条但保持滚动功能 */
.supporters-card::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
.supporters-card::-webkit-scrollbar-thumb { background: transparent; }
.supporters-card { scrollbar-width: none; -ms-overflow-style: none; }

/* 支持者列表布局 */
.supporters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
    width: 100%;
}

/* 支持者标签样式 */
.supporter-name {
    background: white;
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-modal { padding: 16px; }
    .about-modal-content { max-height: 80vh; }
    .about-header { padding: 16px; min-height: 120px; }
    .about-header-content { gap: 16px; }
    .about-logo { width: 40px; height: 40px; padding: 2px; } /* 响应式调整内边距 */
    .about-logo-img { border-radius: 7px; }
    .about-title { font-size: 13px; }
    .about-subtitle { font-size: 9px; }
    .about-info-item { padding: 7px 10px; }
    .info-label { font-size: 11px; min-width: 55px; }
    .info-value { font-size: 11px; }
    .about-main-content { padding: 16px; }
    .about-cards { gap: 12px; }
    .about-card { padding: 14px; gap: 10px; }
    .card-icon { width: 26px; height: 26px; font-size: 11px; }
    .card-content h3 { font-size: 12px; }
    .card-content p { font-size: 11px; }
    .about-footer { padding: 14px 16px 16px; }
    .about-action-buttons { gap: 14px; }
    .about-social-buttons { gap: 10px; }
    .about-social-btn { width: 38px; height: 38px; font-size: 15px; }
    .about-close-btn { padding: 9px 18px; font-size: 12px; min-width: 75px; }
    
    /* 收款模态框响应式 */
    .donate-modal-content { max-width: 360px; padding: 16px; }
    .donate-title-group { gap: 10px; }
    .donate-title { font-size: 16px; }
    .donate-heart { font-size: 16px; }
    .donate-subtitle { font-size: 11px; }
    .donate-close-btn-top { width: 28px; height: 28px; font-size: 13px; }
    .donate-main { gap: 12px; margin-bottom: 16px; min-height: 180px; }
    .donate-methods { min-width: 50px; gap: 6px; }
    .donate-method-btn { width: 45px; height: 45px; font-size: 18px; }
    .qrcode-image { max-width: 90%; max-height: 90%; }
    .qrcode-placeholder { padding: 16px; gap: 10px; }
    .qrcode-placeholder i { font-size: 32px; }
    .qrcode-placeholder span { font-size: 12px; }
    .qrcode-placeholder small { font-size: 10px; }
    .help-content { padding: 16px; }
    .help-content h4 { font-size: 15px; }
    .help-content li { font-size: 12px; }
    
    /* 支持者名单响应式 */
    .supporters-section { margin-top: 16px; }
    .supporters-title { font-size: 12px; top: -8px; left: 8px; }
    .supporters-card { padding: 14px; max-height: 100px; }
    .supporters-list { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 5px; }
    .supporter-name { font-size: 10px; padding: 3px 7px; }
}

@media (max-width: 480px) {
    .about-modal { padding: 12px; }
    .about-header { padding: 14px; min-height: 110px; }
    .about-header-content { gap: 14px; }
    .about-logo { width: 36px; height: 36px; padding: 2px; } /* 响应式调整内边距 */
    .about-logo-img { border-radius: 6px; }
    .about-title { font-size: 12px; }
    .about-subtitle { font-size: 8px; }
    .about-info-item { padding: 6px 8px; }
    .info-label { font-size: 10px; min-width: 50px; }
    .info-value { font-size: 10px; }
    .about-main-content { padding: 14px; }
    .about-cards { gap: 10px; }
    .about-card { padding: 12px; gap: 8px; }
    .card-icon { width: 24px; height: 24px; font-size: 10px; }
    .card-content h3 { font-size: 11px; }
    .card-content p { font-size: 10px; }
    .about-footer { padding: 12px 14px 14px; }
    .about-action-buttons { gap: 12px; }
    .about-social-buttons { gap: 8px; }
    .about-social-btn { width: 36px; height: 36px; font-size: 14px; }
    .about-close-btn { padding: 8px 16px; font-size: 11px; min-width: 70px; }
    
    /* 收款模态框小屏幕优化 */
    .donate-modal-content { max-width: 320px; padding: 14px; }
    .donate-title-group { gap: 8px; }
    .donate-title { font-size: 15px; }
    .donate-heart { font-size: 15px; }
    .donate-subtitle { font-size: 10px; }
    .donate-close-btn-top { width: 26px; height: 26px; font-size: 12px; }
    .donate-main { gap: 10px; margin-bottom: 14px; min-height: 160px; }
    .donate-methods { min-width: 45px; gap: 5px; }
    .donate-method-btn { width: 40px; height: 40px; font-size: 16px; }
    .qrcode-image { max-width: 85%; max-height: 85%; }
    .qrcode-placeholder { padding: 12px; gap: 8px; }
    .qrcode-placeholder i { font-size: 28px; }
    .qrcode-placeholder span { font-size: 11px; }
    .qrcode-placeholder small { font-size: 9px; }
    .help-content { padding: 12px; }
    .help-content h4 { font-size: 14px; }
    .help-content li { font-size: 11px; }
    
    /* 支持者名单小屏幕优化 */
    .supporters-section { margin-top: 14px; }
    .supporters-title { font-size: 11px; top: -7px; left: 7px; }
    .supporters-card { padding: 12px; max-height: 90px; }
    .supporters-list { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 4px; }
    .supporter-name { font-size: 9px; padding: 2px 6px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .supporters-list { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

@media (min-width: 1025px) {
    .supporters-list { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

@media (max-height: 500px) and (orientation: landscape) {
    .about-modal-content { max-height: 90vh; }
    .donate-modal-content { max-width: 440px; }
    .donate-main { min-height: 150px; }
    .donate-methods { min-width: 55px; }
    .qrcode-image { max-width: 80%; max-height: 80%; }
    .supporters-card { max-height: 80px; }
    .supporters-list { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .about-modal-content { background: var(--bg-card); }
    .about-header-bg { opacity: 0.8; }
    .about-info-item { background: transparent; border-color: rgba(255, 255, 255, 0.2); }
    .about-brand { background: transparent; border-color: rgba(255, 255, 255, 0.2); }
    .about-card { background: rgba(30, 30, 30, 0.6); }
    .about-footer { background: #ffffff; }
    .donate-modal-content { background: var(--bg-card); }
    .donate-qrcode { background: var(--bg-secondary); }
    .supporters-title { background: var(--bg-card); }
    .supporter-name { background: white; color: var(--text-primary); }
    
    /* 确保深色模式下logo背景保持白色 */
    .about-logo {
        background-color: #ffffff !important; /* 使用important确保白色背景在深色模式下不变 */
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    .about-modal,
    .about-modal-content,
    .about-card,
    .about-social-btn,
    .about-close-btn,
    .donate-modal,
    .donate-modal-content,
    .donate-method-btn,
    .donate-close-btn-top { transition: none; }
}

/* 心跳动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
} 