/* 引入字体 */
@font-face {
    font-family: "AliShuheiBold";
    font-weight: 700;
    src: url("//at.alicdn.com/wf/webfont/y4MnIsROWi8h/d9RqDvDRs4B9.woff2") format("woff2"),
        url("//at.alicdn.com/wf/webfont/y4MnIsROWi8h/v9rbFzFw6Ty4.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
}

:root {
    --primary-color: #1E1E1E;
    --accent-blue: #209cee;
    --card-radius: 12px;
    --bg-light: #f5f7fa;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 统一导航栏 */
.navbar.is-dark-theme {
    background-color: var(--primary-color) !important;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-item.tool-title {
    font-family: "AliShuheiBold";
    font-size: 1.25rem;
    color: #fff !important;
}

.navbar-item.tool-name {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
}

/* 工具主卡片 */
.tool-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease;
}

/* 统一文本域 */
.textarea {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    resize: vertical;
}

.textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.1);
}

/* 按钮美化 */
.button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.button:active {
    transform: scale(0.96);
}

/* 页脚 */
.footer {
    font-family: "AliShuheiBold";
    background: transparent;
    padding: 2rem 1rem;
    margin-top: auto;
}

/* 动画：页面加载进入 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.5s ease-out;
}