/* ==================== style.css - 公共全局样式 ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --dark: #1e293b;
    --light-bg: #f9fafb;
    --card-border: #e9eef2;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --header-border: #e5e7eb;
    --footer-bg: #111827;
    --footer-text: #9ca3af;
    --footer-link-hover: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== 头部样式 ===== */
.site-header {
    height: 3rem;
    background-color: white;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    border-bottom: 1px solid var(--header-border);
}

/* Logo 样式（蓝色） */
.site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);      /* 蓝色 */
    gap: 0.75rem;
}

.site-header .logo i {
    font-size: 1.25rem;
    color: var(--primary);      /* 图标也为蓝色 */
}

@media (min-width: 768px) {
    .site-header .logo {
        font-size: 1.5rem;
    }
    .site-header .logo i {
        font-size: 1.5rem;
    }
}

.site-header .login-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.site-header .login-link:hover {
    color: var(--primary-dark);
}

/* ===== 页脚样式 ===== */
.site-footer {
    background-color: var(--footer-bg);
    color: white;
    margin-top: 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--primary);
    display: inline-block;
}

.footer-column p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-column ul {
    margin-top: 0.5rem;
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.25rem;
}
.footer-column ul li a {
    color: #d1d5db;
    font-size: 0.875rem;
    text-decoration: none;
}
.footer-column ul li a:hover {
    color: white;
}

.footer-column .contact-item {
    display: flex;
    align-items: center;
    color: #d1d5db;
    font-size: 0.875rem;
}
.footer-column .contact-item i {
    color: #60a5fa;
    margin-right: 0.5rem;
    width: 1rem;
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid #1f2937;
    text-align: center;
    color: var(--footer-text);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

.footer-bottom a {
    color: #60a5fa;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* ===== 扁平化基础组件 ===== */
.card-soft {
    background: white;
    border: 1px solid var(--card-border);
    box-shadow: none;
}

.btn-soft {
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-soft.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-soft:hover:not(.active) {
    border-color: #e2e8f0;
    color: #475569;
    background: white;
}

.input-soft {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    font-size: 0.95rem;
    width: 100%;
}
.input-soft:focus {
    outline: none;
    border-color: var(--primary);
}

.example-card {
    background: white;
    border: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
    cursor: default;
}

.try-btn {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 0.2rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}
.try-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== 侧边栏导航 ===== */
.tool-link-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.6rem;
    background: white;
    border: 1px solid transparent;
    border-top: 1px solid var(--border-light);
    color: var(--dark);
    text-decoration: none;
}
.tool-link-item:first-child {
    border-top: none;
}
.tool-link-item.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.tool-link-item.current i {
    color: white !important;
}
.tool-icon {
    width: 1.6rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
}
.tool-name {
    font-size: 0.85rem;
    font-weight: 450;
}

/* ===== 右侧主内容容器 ===== */
.main-container {
    max-width: calc(1920px - 13rem);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ===== 消息通知 ===== */
.message-notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}
.message-content {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: #10b981;
    color: white;
}

/* ===== 状态点 ===== */
.status-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
}
.status-dot.active {
    background: #10b981;
}

/* ===== 安全提示 ===== */
.security-notice {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

/* ===== 相关工具链接 ===== */
.related-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    margin-left: -0.5rem;
    color: inherit;
    text-decoration: none;
}
.related-item:hover {
    background: transparent;
}