/* 通用样式 - Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input {
    border: none;
    outline: none;
    font-family: inherit;
}

/* 状态栏占位 */
.status-bar {
    height: 44px;
    background: transparent;
}

/* 页面容器 */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏通用 */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fff;
    position: relative;
}

.nav-header .back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: #333;
}

.nav-header .back-icon {
    width: 20px;
    height: 20px;
}

.nav-header .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 500;
    color: #333;
}

.nav-header .close-btn {
    font-size: 16px;
    color: #666;
    margin-left: 12px;
}

.nav-header .refresh-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-header .refresh-icon {
    width: 20px;
    height: 20px;
    color: #666;
}

/* 卡片通用样式 */
.card {
    background: #fff;
    border-radius: 12px;
    margin: 12px 16px;
    overflow: hidden;
}

/* 按钮通用样式 */
.btn-primary {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #4A9FFF 0%, #2B7FE3 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    width: 100%;
    height: 50px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:active {
    opacity: 0.9;
}

.btn-secondary:active {
    background: #f5f5f5;
}

/* 表单通用样式 */
.form-group {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.form-group:last-child {
    border-bottom: none;
}

.form-label {
    width: 80px;
    flex-shrink: 0;
    font-size: 15px;
    color: #333;
}

.form-value {
    flex: 1;
    font-size: 15px;
    color: #666;
    text-align: right;
}

.form-input {
    flex: 1;
    font-size: 15px;
    color: #333;
    text-align: left;
}

.form-input::placeholder {
    color: #999;
}
