/* 关于页面容器 */
#about-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

#about-container.show {
    opacity: 1;
}

/* 关于页面内容 */
.about-content {
    background-color: #fff;
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

#about-container.show .about-content {
    transform: translateY(0);
    opacity: 1;
}

/* 关于页面标题栏 */
.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.1) 60%, transparent 70%);
    transform: translateX(-100%);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    20%, 100% { transform: translateX(100%); }
}

.about-header h2 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: rotate(90deg);
}

/* 关于页面内容区 */
.about-body {
    padding: 28px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.about-body::-webkit-scrollbar {
    width: 6px;
}

.about-body::-webkit-scrollbar-track {
    background: transparent;
}

.about-body::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 6px;
}

/* 卡片样式 */
.about-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.card-header::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #4f46e5, #818cf8);
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.card-header-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 8px;
    padding: 6px;
}

.card-body {
    padding: 20px;
    color: #334155;
    line-height: 1.6;
}

/* 添加卡片内部元素动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-body p,
.announcement-item,
.dev-item,
.issue-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.dev-item:nth-child(1) {
    animation-delay: 0.2s;
}

.announcement-item:nth-child(1) {
    animation-delay: 0.1s;
}

.announcement-item:nth-child(2) {
    animation-delay: 0.2s;
}

.issue-item:nth-child(1) {
    animation-delay: 0.1s;
}

.issue-item:nth-child(2) {
    animation-delay: 0.2s;
}

.issue-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* 开发者卡片 */
.dev-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}

.dev-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    width: calc(50% - 10px);
    transition: all 0.2s ease;
}

.dev-item:hover {
    background-color: #f0f9ff;
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .dev-item {
        width: 100%;
    }
}

.dev-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid white;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dev-avatar::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dev-item:hover .dev-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dev-item:hover .dev-avatar::before {
    opacity: 1;
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dev-item:hover .dev-avatar img {
    transform: scale(1.1);
}

.dev-info {
    flex-grow: 1;
}

.dev-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 1.05rem;
}

.dev-role {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    background-color: rgba(99, 102, 241, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.dev-contact {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.contact-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-icon:hover {
    color: #4f46e5;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 问题列表 */
.issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issue-item {
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s ease;
    cursor: default;
}

.issue-item:hover {
    background-color: rgba(248, 250, 252, 0.6);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

.issue-item:last-child {
    border-bottom: none;
}

.issue-status {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-open {
    background-color: #fff7ed;
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.status-in-progress {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.status-fixed {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.issue-content {
    flex-grow: 1;
}

.issue-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 1.05rem;
}

.issue-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* 通知条 */
.announcement-item {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    border-left: 4px solid #4f46e5;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.announcement-item:hover {
    background-color: #f1f5f9;
    transform: translateX(5px);
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.announcement-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-date::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #4f46e5;
    border-radius: 50%;
    display: inline-block;
}

.announcement-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 1.1rem;
}

.announcement-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* 加载动画 */
.about-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #64748b;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    border-top-color: #4f46e5;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
    position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: rgba(99, 102, 241, 0.3);
    animation: spin 1.5s linear infinite reverse;
}

.loading-spinner::after {
    top: -9px;
    left: -9px;
    right: -9px;
    bottom: -9px;
    border-top-color: rgba(99, 102, 241, 0.1);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.about-loading span {
    font-style: italic;
}

/* 动态版本标签 */
.version-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.version-tag::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* API代理信息卡片 */
.proxies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proxy-item {
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.proxy-item:hover {
    background-color: #f1f5f9;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.proxy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.proxy-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e293b;
}

.proxy-badge {
    flex-shrink: 0;
}

.proxy-url {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.proxy-url code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #475569;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
    flex-grow: 1;
}

.copy-btn {
    background: none;
    border: none;
    color: #64748b;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.1);
}

.proxy-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Toast 提示 */
.about-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .about-content {
        background-color: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .about-card {
        background-color: #334155;
        border-color: rgba(255, 255, 255, 0.05);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .about-card:hover {
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    
    .card-header {
        background-color: #1e293b;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .card-header h3 {
        color: #f8fafc;
    }

    .card-header-icon {
        background-color: rgba(79, 70, 229, 0.2);
    }
    
    .card-body {
        color: #e2e8f0;
    }
    
    .dev-item {
        background-color: #1e293b;
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .dev-item:hover {
        background-color: #0f172a;
        border-color: rgba(59, 130, 246, 0.5);
    }
    
    .dev-name {
        color: #f8fafc;
    }
    
    .dev-role {
        color: #cbd5e1;
        background-color: rgba(99, 102, 241, 0.15);
    }
    
    .dev-avatar {
        background-color: #475569;
        border-color: #334155;
    }
    
    .contact-icon {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .contact-icon:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .issue-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .issue-item:hover {
        background-color: rgba(15, 23, 42, 0.6);
    }
    
    .issue-title {
        color: #f8fafc;
    }
    
    .issue-description {
        color: #cbd5e1;
    }
    
    .announcement-item {
        background-color: #1e293b;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .announcement-item:hover {
        background-color: #0f172a;
    }

    .announcement-title {
        color: #f8fafc;
    }

    .announcement-content {
        color: #cbd5e1;
    }

    .status-open {
        background-color: rgba(234, 88, 12, 0.15);
        border-color: rgba(234, 88, 12, 0.3);
    }

    .status-in-progress {
        background-color: rgba(37, 99, 235, 0.15);
        border-color: rgba(37, 99, 235, 0.3);
    }

    .status-fixed {
        background-color: rgba(22, 163, 74, 0.15);
        border-color: rgba(22, 163, 74, 0.3);
    }

    .proxy-item {
        background-color: #1e293b;
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .proxy-item:hover {
        background-color: #0f172a;
        border-color: rgba(59, 130, 246, 0.5);
    }
    
    .proxy-name {
        color: #f8fafc;
    }
    
    .proxy-url {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .proxy-url code {
        color: #cbd5e1;
    }
    
    .copy-btn {
        color: #94a3b8;
    }
    
    .copy-btn:hover {
        color: #818cf8;
        background-color: rgba(129, 140, 248, 0.1);
    }
    
    .proxy-description {
        color: #94a3b8;
    }
}

/* 响应式优化 */
@media (max-width: 640px) {
    .about-content {
        width: 95%;
        max-height: 90vh;
    }

    .about-header {
        padding: 16px 20px;
    }

    .about-header h2 {
        font-size: 1.3rem;
    }

    .about-body {
        padding: 20px 16px;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .dev-item {
        padding: 12px;
        gap: 12px;
    }

    .dev-avatar {
        width: 46px;
        height: 46px;
    }

    .proxy-url code {
        font-size: 0.75rem;
    }
    
    .proxy-description {
        font-size: 0.85rem;
    }
}

/* 媒体查询优化 */
@media (max-width: 480px) {
    .about-content {
        width: 95%;
    }
    
    .about-header h2 {
        font-size: 1.2rem;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .dev-item {
        padding: 10px;
        gap: 10px;
    }
    
    .dev-avatar {
        width: 40px;
        height: 40px;
    }
    
    .dev-name {
        font-size: 0.9rem;
    }
    
    .dev-role {
        font-size: 0.75rem;
    }
    
    .issue-status {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .issue-title {
        font-size: 0.9rem;
    }
    
    .issue-description {
        font-size: 0.8rem;
    }

    .proxy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .proxy-url {
        padding: 8px;
    }
}
