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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #222;
    line-height: 1.6;
}

#app { min-height: 100vh; }

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

/* 顶部栏 */
.topbar {
    position: sticky;
    top: 0;
    background: #4A90D9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    z-index: 10;
}
.topbar-title { font-weight: 600; font-size: 16px; }
.topbar-action, .topbar-back {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    margin-bottom: 16px;
}

/* 表单 */
.input {
    width: 100%;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    font-family: inherit;
}
.input:focus { border-color: #4A90D9; }
.textarea { min-height: 96px; resize: vertical; }

.field-label { display: block; font-size: 14px; margin-bottom: 6px; color: #555; }

/* 按钮 */
.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    cursor: pointer;
    background: #e9eef5;
    color: #333;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: #4A90D9; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* 登录品牌区 */
.brand { text-align: center; padding: 32px 0 16px; }
.brand-logo {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: #4A90D9; color: #fff;
    font-size: 32px; line-height: 64px;
    margin: 0 auto 12px;
}
.brand h1 { font-size: 22px; }
.brand-sub { color: #888; font-size: 13px; }
.login-container { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

/* 首页工具网格 */
.section-title { font-size: 18px; margin: 8px 4px 12px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    display: block;
    transition: transform .1s;
}
.tool-card:active { transform: scale(.98); }
.tool-card-disabled { opacity: .6; }
.tool-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 10px;
}
.tool-icon-blue { background: #e6f0fb; }
.tool-icon-gray { background: #eef0f3; }
.tool-name { font-weight: 600; font-size: 15px; }
.tool-desc { color: #888; font-size: 12px; margin-top: 2px; }

/* 提示文字 */
.tip, .hint, .form-msg { color: #888; font-size: 12px; margin-top: 8px; }
.form-msg { color: #e74c3c; }

/* 结果展示 */
.result-title { font-weight: 600; margin: 8px 0; word-break: break-all; }
.result-tip { color: #e67e22; font-size: 13px; margin-bottom: 8px; }
.result-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.result-label { font-weight: 600; margin-bottom: 6px; }
.result-url {
    word-break: break-all;
    font-size: 12px;
    color: #555;
    background: #f5f7fa;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    max-height: 80px;
    overflow: auto;
}
.result-actions { display: flex; gap: 8px; }
.alert { background: #fff3f2; color: #e74c3c; border-radius: 10px; padding: 14px; }
.loading { text-align: center; color: #888; padding: 20px; }

/* Toast */
#toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, .8);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
    z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
