/* ========================================
   KeyGoto 全局样式 - 现代简约版
   ======================================== */

/* ---------- CSS 变量 ---------- */
:root {
    --primary: #4F6EF7;
    --primary-hover: #3B5DE7;
    --primary-light: #EEF2FF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-hover: #F1F5F9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.hidden {
    display: none !important;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-hover);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========== 统一工具头部 ========== */
.tool-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tool-header-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.tool-icon-wrapper {
    background: transparent !important;
    width: auto;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon-wrapper svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    stroke: var(--primary);
    transition: all 0.2s ease;
}

.tool-header-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tool-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tool-icon-wrapper svg {
        width: 36px;
        height: 36px;
    }
    .tool-header-info h1 {
        font-size: 1.5rem;
    }
    .tool-desc {
        font-size: 0.875rem;
    }
    .tool-header-main {
        gap: 0.75rem;
    }
}

/* 首页底部信息 */
.home-footer-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 40px;
}

.home-footer-info .footer-copyright,
.home-footer-info .footer-links,
.home-footer-info .footer-friends {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.home-footer-info a {
    text-decoration: none;
}

@media (max-width: 640px) {
    .home-footer-info {
        padding: 20px 16px 32px;
    }
    .home-footer-info .footer-copyright,
    .home-footer-info .footer-links,
    .home-footer-info .footer-friends {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 通用动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease-out;
}