/* SBTI.ICU 全局样式 */
:root {
    --bg: #f6faf6;
    --panel: #ffffff;
    --text: #1e2a22;
    --muted: #6a786f;
    --line: #dbe8dd;
    --soft: #edf6ef;
    --accent: #6c8d71;
    --accent-strong: #4d6a53;
    --shadow: 0 16px 40px rgba(47, 73, 55, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: radial-gradient(circle at top left, #f8fff8 0, #f6faf6 36%, #f2f7f3 100%);
    color: var(--text);
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-strong);
    text-decoration: none;
}

.navbar-brand .logo {
    font-size: 24px;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.navbar-link:hover {
    background: var(--soft);
    color: var(--accent-strong);
}

.navbar-link.active {
    background: var(--soft);
    color: var(--accent-strong);
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 按钮 */
button {
    border: 0;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
    font: inherit;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.btn-primary {
    background: var(--accent-strong);
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(77, 106, 83, 0.18);
    font-weight: 700;
    font-size: 15px;
}

.btn-secondary {
    background: #fff;
    color: var(--accent-strong);
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 15px;
}

.btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;  /* ← 添加这行：水平居中 */
    gap: 8px;
}

/* 页脚 */
.footer {
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding: 32px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-strong);
    margin-bottom: 12px;
}

.footer-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-strong);
}

/* 水印样式（用于截图） */
.watermark {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-strong);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.watermark .logo {
    font-size: 18px;
}

.watermark-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.watermark-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.watermark-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.watermark-qr img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.qr-hint {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 12px;
    }

    .navbar-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .container {
        padding: 24px 16px;
    }

    .btn-primary, .btn-secondary, .btn-share {
        padding: 12px 20px;
        font-size: 14px;
    }

    .watermark {
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px;
        bottom: 10px;
        right: 10px;
    }

    .watermark-qr {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--line);
        padding-top: 8px;
    }

    .watermark-qr img {
        width: 70px;
        height: 70px;
    }

    .watermark-text {
        font-size: 13px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* Toast 提示 */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--accent-strong);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(77, 106, 83, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
