/* 欣承科技 H5 全局样式 - 1:1 还原小程序视觉 */

:root {
    --primary-color: #274A77;
    --secondary-color: #2c5282;
    --accent-color: #4299e1;
    --bg-color: #E5F0F2;
    --text-color: #333333;
    --text-light: #666666;
    --text-gray: #999999;
    --white: #ffffff;
    --danger: #f56565;
    --success: #48bb78;
    --warning: #ed8936;
    --gold: #ffd700;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.container {
    min-height: 100vh;
    background-color: var(--bg-color);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 60px; /* 留出底部导航空间 */
}

/* 布局类 */
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* 边距 (1rpx = 0.5px) */
.mt-10 { margin-top: 5px; }
.mt-20 { margin-top: 10px; }
.mt-30 { margin-top: 15px; }
.mt-40 { margin-top: 20px; }
.mb-10 { margin-bottom: 5px; }
.mb-20 { margin-bottom: 10px; }
.mb-30 { margin-bottom: 15px; }
.mb-40 { margin-bottom: 20px; }
.p-10 { padding: 5px; }
.p-20 { padding: 10px; }
.p-30 { padding: 15px; }

/* 文字大小 */
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 20px; }
.text-3xl { font-size: 24px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 颜色类 */
.text-primary { color: var(--primary-color); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-gray { color: var(--text-gray); }

/* 按钮样式 - 深度还原小程序 */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(39, 74, 119, 0.2);
}

/* 卡片样式 */
.card-white {
    background-color: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin: 10px;
}

/* 徽章样式 */
.badge-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    line-height: 1.4;
}

.level-1 { background: rgba(255,255,255,0.2); color: #fff; }
.level-2 { background: #a0d9de; color: #005662; }
.level-3 { background: #76c7c0; color: #004d40; }
.level-4 { background: #f0e68c; color: #5a5229; }
.level-5 { background: #ffb6c1; color: #8b0000; }

/* 页面顶部标题栏效果 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px 15px;
    color: #fff;
}
