/* css/style.css - v41 (性能优化版) */

/* ========== CSS变量 ========== */
:root {
    /* 主题颜色 */
    --primary-6: #165dff;
    --primary-5: #4080ff;
    --primary-4: #6aa1ff;
    --primary-1: #e8f3ff;
    
    /* 文字颜色 */
    --text-1: #1d2129;
    --text-2: #4e5969;
    --text-3: #86909c;
    
    /* 背景颜色 */
    --fill-1: #f7f8fa;
    --fill-2: #f2f3f5;
    --fill-3: #e5e6eb;
    --bg-white: #fff;
    
    /* 边框颜色 */
    --border-blue-200: #bfdbfe;
    --border-color: #e5e6eb;
    
    /* 圆角 */
    --border-radius-small: 2px;
    --border-radius-medium: 4px;
    --border-radius-large: 8px;
    --border-radius-xlarge: 12px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* 层级 */
    --z-dropdown: 1000;
    --z-header: 999;
    --z-toast: 2000;
    --z-modal: 3000;
}

/* ========== 全局样式 ========== */
* { 
    box-sizing: border-box; 
    outline: none; 
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--fill-1);
    background-image: url("https://snapany.com/images/hero-pattern.svg");
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-1);
    line-height: 1.5715;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-6);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img, svg {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-base);
}

/* 无障碍 - 视觉隐藏 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ========== 导航栏 ========== */
.header {
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-base);
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 32px;
    height: 32px;
    transition: var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
    position: relative;
    line-height: 22px;
    padding: 4px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-1);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -19px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-6);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.puzzle-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    transition: var(--transition-base);
}

.puzzle-btn:hover {
    background-color: var(--fill-2);
    color: var(--text-1);
    transform: scale(1.05);
}

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 头部下拉菜单 */
.header-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--fill-3);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-md);
    padding: 4px 0;
    min-width: 140px;
    display: none;
    animation: fadeInDown 0.2s ease-out;
    z-index: var(--z-dropdown);
}

.header-dropdown.show {
    display: block;
}

.h-drop-item {
    padding: 0 16px;
    height: 36px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-1);
    transition: var(--transition-fast);
}

.h-drop-item:hover {
    background: var(--fill-2);
}

.ml-2 {
    margin-left: 8px;
}

/* ========== 主内容区 ========== */
.main-content {
    padding-top: 100px;
    min-height: 85vh;
    padding-bottom: 60px;
}

.hero-branding {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeIn 0.6s ease-out;
}

.hero-logo {
    width: 80px;
    height: 80px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-branding h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-1);
    margin: 16px 0 12px;
}

.subtitle {
    color: var(--text-3);
    font-size: 16px;
}

/* ========== 解析卡片 ========== */
.parse-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-xlarge);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-white);
    max-width: 840px;
    margin: 0 auto 40px;
    animation: slideUp 0.4s ease-out;
}

@media (max-width: 768px) {
    .parse-card {
        padding: 24px 20px;
        border-radius: var(--border-radius-large);
    }
}

.input-label {
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-1);
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 18px;
    pointer-events: none;
    transition: var(--transition-base);
}

.input-group input {
    width: 100%;
    height: 50px;
    padding: 0 42px;
    font-size: 15px;
    color: var(--text-1);
    background-color: var(--bg-white);
    border: 1px solid var(--border-blue-200);
    border-radius: var(--border-radius-large);
    transition: all var(--transition-base);
}

.input-group input::placeholder {
    color: var(--text-3);
}

.input-group input:hover {
    border-color: #6ea8fe;
}

.input-group input:focus {
    border-color: var(--primary-6);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.input-group input:focus + .input-icon {
    color: var(--primary-6);
}

.clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: var(--transition-base);
}

.clear-btn:hover {
    color: #999;
    transform: translateY(-50%) scale(1.1);
}

/* ========== 历史记录下拉菜单 ========== */
.history-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--fill-3);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    max-height: 280px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fill-3);
    background: var(--fill-1);
}

.history-header span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.history-clear {
    padding: 4px 8px;
    border-radius: var(--border-radius-medium);
    color: var(--text-3);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-clear:hover {
    background: var(--fill-2);
    color: #f53f3f;
}

.history-list {
    max-height: 220px;
    overflow-y: auto;
}

.history-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--fill-2);
}

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

.history-item:hover {
    background: var(--fill-1);
}

.history-item i {
    color: var(--text-3);
    font-size: 14px;
    flex-shrink: 0;
}

.history-url {
    flex: 1;
    font-size: 13px;
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 滚动条样式 */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--fill-1);
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--fill-3);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ========== 平台快捷入口 ========== */
.platform-area {
    margin-bottom: 32px;
}

.platform-hint {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 12px;
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--fill-1);
    padding: 8px 14px;
    border-radius: var(--border-radius-medium);
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    user-select: none;
}

.platform-item:hover {
    color: var(--primary-6);
    background: var(--primary-1);
    border-color: var(--border-blue-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.platform-item:active {
    transform: translateY(0);
}

.platform-item img {
    width: 16px;
    height: 16px;
    border-radius: var(--border-radius-small);
}

.platform-item i {
    font-size: 16px;
}

/* ========== 按钮 ========== */
.btn-submit {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-6) 0%, var(--primary-5) 100%);
    border: none;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-5) 0%, var(--primary-4) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.ri-loader-4-line {
    animation: spin 1s linear infinite;
}

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

/* ========== 底部链接 ========== */
.bottom-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-2);
    flex-wrap: wrap;
}

.link-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-base);
    padding: 4px 8px;
    border-radius: var(--border-radius-medium);
}

.link-item:hover {
    color: var(--primary-6);
    background: var(--fill-2);
}

.badge-new {
    background: #f53f3f;
    color: var(--bg-white);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: var(--border-radius-small);
    margin-left: 4px;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.divider {
    width: 1px;
    height: 12px;
    background: var(--fill-3);
}

/* ========== 结果卡片 ========== */
.result-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--fill-3);
    margin: 30px auto 0;
    max-width: 840px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

.arco-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--fill-3);
    background: var(--fill-1);
}

.arco-card-header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    border-left: 4px solid var(--primary-6);
    padding-left: 12px;
    line-height: 1;
}

.arco-card-header-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 视频容器 */
.video-box {
    background: #000;
    width: 100%;
    position: relative;
    min-height: 300px;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    outline: none;
}

@media (max-width: 768px) {
    .video-box {
        min-height: 200px;
        max-height: 300px;
    }
    
    .video-player {
        max-height: 300px;
    }
}

/* ========== 操作按钮 ========== */
.btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-retry {
    margin-top: 20px;
    padding: 8px 24px;
    background: var(--primary-6);
    color: white;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.btn-retry:hover {
    background: var(--primary-5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-retry:active {
    transform: translateY(0);
}

.btn-white-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    background: var(--bg-white);
    border: 1px solid var(--fill-3);
    border-radius: var(--border-radius-large);
    color: var(--text-2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn-white-download:hover {
    background: var(--fill-2);
    border-color: var(--border-blue-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-white-download svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* 蓝色按钮组 */
.btn-group-blue {
    display: inline-flex;
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.2);
}

.btn-blue-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    background: var(--primary-6);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-blue-copy:hover {
    background: var(--primary-5);
}

.btn-blue-copy svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.btn-blue-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    background: var(--primary-6);
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-base);
}

.btn-blue-more:hover {
    background: var(--primary-5);
}

.btn-blue-more svg {
    width: 16px;
    height: 16px;
}

/* 复制标题下拉菜单 */
.copy-title-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    z-index: var(--z-dropdown);
    background: var(--bg-white);
    border: 1px solid var(--fill-3);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-md);
    padding: 4px 0;
    min-width: 120px;
    display: none;
    animation: fadeInDown 0.2s ease-out;
}

.copy-title-dropdown.show {
    display: block;
}

.arco-dropdown-option {
    padding: 0 12px;
    height: 36px;
    line-height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-1);
    font-size: 14px;
    transition: var(--transition-fast);
}

.arco-dropdown-option:hover {
    background-color: var(--fill-2);
}

.arco-dropdown-option-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arco-dropdown-option-icon svg {
    width: 16px;
    height: 16px;
}

/* ========== 图集网格 ========== */
.image-grid-wrapper {
    padding: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .image-grid-wrapper {
        padding: 16px;
    }
}

.image-card {
    border: 1px solid var(--fill-3);
    border-radius: var(--border-radius-medium);
    padding: 8px;
    background: var(--bg-white);
    transition: all var(--transition-base);
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-blue-200);
}

.image-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    cursor: pointer;
    background: var(--fill-1);
    margin-bottom: 8px;
    position: relative;
}

.image-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: var(--transition-base);
}

.image-preview:hover::before {
    background: rgba(0, 0, 0, 0.05);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.image-preview:hover img {
    transform: scale(1.05);
}

.image-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--fill-3);
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-2);
    transition: all var(--transition-base);
}

.btn-circle-sm:hover {
    background: var(--fill-2);
    border-color: var(--primary-6);
    color: var(--primary-6);
    transform: scale(1.1);
}

.btn-circle-sm svg {
    width: 16px;
    height: 16px;
}

.result-footer-text {
    padding: 12px 20px;
    background: var(--fill-1);
    border-top: 1px solid var(--fill-3);
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ========== 用户评价 ========== */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 80px 0 40px;
    color: var(--text-1);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
        margin: 60px 0 30px;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.testimonial-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-blue {
    background: linear-gradient(135deg, #eff8fb 0%, #e8f3ff 100%);
}

.card-yellow {
    background: linear-gradient(135deg, #fef8e7 0%, #fff4d4 100%);
}

.card-purple {
    background: linear-gradient(135deg, #f1f6fe 0%, #e8f0fe 100%);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    margin: 0 auto 12px;
    box-shadow: var(--shadow-sm);
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-1);
}

.user-role {
    font-size: 12px;
    color: var(--text-3);
}

.stars {
    color: #facc15;
    margin: 12px 0;
    font-size: 16px;
}

.quote {
    font-size: 14px;
    color: var(--text-2);
    font-style: italic;
    line-height: 1.6;
}

/* ========== FAQ ========== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.faq-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--fill-3);
    transition: all var(--transition-base);
}

.faq-card:hover {
    border-color: var(--border-blue-200);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.faq-q {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-1);
    font-size: 15px;
}

.faq-a {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== 页脚 ========== */
.footer {
    border-top: 1px solid var(--fill-3);
    padding: 30px 0;
    text-align: center;
    color: var(--text-3);
    background: var(--bg-white);
    margin-top: auto;
}

/* ========== 模态框 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-xlarge);
    transform: scale(0.9);
    transition: transform var(--transition-base);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--fill-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--fill-1);
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.modal-close {
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: var(--fill-2);
    color: var(--text-1);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    text-align: right;
    border-top: 1px solid var(--fill-3);
    background: var(--fill-1);
}

.modal-btn-close {
    padding: 8px 20px;
    background: var(--fill-2);
    border-radius: var(--border-radius-medium);
    border: none;
    color: var(--text-2);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-base);
}

.modal-btn-close:hover {
    background: var(--fill-3);
    color: var(--text-1);
}

/* ========== 信息卡片（关于页面）========== */
.info-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: var(--border-radius-large);
    margin-bottom: 12px;
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateX(4px);
}

.info-card:last-child {
    margin-bottom: 0;
}

.card-blue { background: linear-gradient(135deg, #e8f3ff 0%, #d6e9ff 100%); }
.card-green { background: linear-gradient(135deg, #e6f9f0 0%, #d4f5e6 100%); }
.card-dark { background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%); }
.card-purple { background: linear-gradient(135deg, #f3f0ff 0%, #e8e0ff 100%); }

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 14px;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.icon-blue { background: var(--primary-6); }
.icon-green { background: #00b42a; }
.icon-dark { background: #1d2129; }
.icon-purple { background: #722ed1; }

.info-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin: 0 0 4px;
}

.info-text p {
    font-size: 13px;
    color: var(--text-2);
    margin: 0;
}

/* ========== 赞赏 ========== */
.donate-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-item {
    text-align: center;
}

/* 二维码占位符 */
.qr-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--fill-1) 0%, var(--fill-2) 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    border-radius: var(--border-radius-large);
    border: 2px dashed var(--fill-3);
}

.qr-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
}

.qr-placeholder p {
    margin: 0;
    font-size: 13px;
}

/* ========== 更新日志 ========== */
.log-list {
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fill-3);
}

.log-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.log-ver {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-6);
    margin-bottom: 4px;
}

.log-date {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 12px;
    display: block;
}

.log-content {
    list-style: none;
    padding: 0;
}

.log-content li {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.log-content li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #00b42a;
    border-radius: 50%;
}

/* ========== Toast通知 ========== */
.toast-progress {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    z-index: var(--z-toast);
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.toast-progress.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.toast-notice {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--fill-3);
    z-index: var(--z-toast);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-2);
    max-width: 360px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.3s ease-out;
}

.toast-notice.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .toast-notice {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

.toast-icon-check {
    color: var(--bg-white);
    background: #00b42a;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.toast-close {
    color: var(--text-3);
    cursor: pointer;
    margin-left: auto;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition-base);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-close:hover {
    color: var(--text-1);
    background: var(--fill-2);
}

/* ========== 动画 ========== */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--fill-1);
}

::-webkit-scrollbar-thumb {
    background: var(--fill-3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ========== 打印样式 ========== */
@media print {
    .header,
    .toast-notice,
    .toast-progress,
    .modal-overlay {
        display: none !important;
    }
}