/* =====================================================================
   common.css — app.goldant.com 公共样式
   所有页面通过 <link rel="stylesheet" href="common.css"> 引入
   ===================================================================== */

/* ---- 基础重置 ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: #f5f7fa;
    color: #303133;
    -webkit-font-smoothing: antialiased;
}

/* ---- 顶部导航栏 ---- */
.top-bar {
    height: 48px;
    line-height: 48px;
    background: #fff;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 0;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    color: #409EFF;
    text-decoration: none;
}

.top-right-btn {
    position: absolute;
    right: 15px;
    top: 0;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    color: #409EFF;
    text-decoration: none;
}

/* ---- 表单 ---- */
.form-box {
    padding: 15px;
}

.form-item {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-item input,
.form-item select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-item input:focus,
.form-item select:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, .12);
}

.form-item select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23909399' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-tip {
    font-size: 12px;
    color: #909399;
    margin-top: 5px;
    padding-left: 4px;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background: #409EFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background .2s;
}

.submit-btn:hover {
    background: #337ecc;
}

.submit-btn:active {
    background: #2d6db5;
}

/* ---- 消息提示 ---- */
.msg-error {
    color: #f56c6c;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff2f0;
    border-radius: 6px;
    border: 1px solid #ffc0bf;
}

.msg-success {
    color: #67C23A;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f0f9eb;
    border-radius: 6px;
    border: 1px solid #c2e7b0;
}

/* ---- 通用列表项 ---- */
.list-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

/* ---- 状态标签 ---- */
.tag-normal  { color: #67C23A; font-size: 12px; }
.tag-disabled { color: #f56c6c; font-size: 12px; }

/* ---- 链接按钮 ---- */
.btn-edit   { color: #409EFF; text-decoration: none; font-size: 14px; }
.btn-delete { color: #f56c6c; text-decoration: none; font-size: 14px; border: none; background: none; cursor: pointer; padding: 0; }
.btn-enable { color: #67C23A; border: none; background: none; cursor: pointer; font-size: 14px; padding: 0; }
.btn-disable { color: #f56c6c; border: none; background: none; cursor: pointer; font-size: 14px; padding: 0; }

/* ---- 空态 ---- */
.empty-box {
    text-align: center;
    color: #bbb;
    margin-top: 80px;
    font-size: 15px;
}
