/* ============================================
   招聘平台系统 — 全局基础样式
   纯原生 CSS，移动端优先
   ============================================ */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1A1A1A;
    background-color: #F5F5F5;
    min-height: 100vh;
}

a {
    color: #1677FF;
    text-decoration: none;
}

a:active {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* SVG 图标基础 */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* ============================================
   通用组件
   ============================================ */

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    gap: 6px;
}

.btn:active { opacity: 0.7; }

.btn-primary {
    background: #1677FF;
    color: #fff;
}

.btn-warning {
    background: #FF6600;
    color: #fff;
}

.btn-danger {
    background: #FF4D4F;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #1677FF;
    color: #1677FF;
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.4;
}

.tag-blue { background: #E6F0FF; color: #1677FF; }
.tag-orange { background: #FFF7E6; color: #FA8C16; }
.tag-green { background: #F0FFF0; color: #52C41A; }
.tag-red { background: #FFF1F0; color: #FF4D4F; }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 输入框 */
.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: #1677FF;
}

/* 加载中 */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}
