/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 移动端容器 */
.mobile-container {
    max-width: 540px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* 头部 */
.header {
    background-color: #4CAF50;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

/* 通知栏 */
.notice-bar {
    background-color: #FFF3CD;
    color: #856404;
    padding: 10px;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.notice-content {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
    padding: 0 15px;
}

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 文本域 */
.form-control textarea {
    resize: none;
    min-height: 120px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin: 0 15px;
}

.btn-primary {
    background-color: #4CAF50;
    color: #fff;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 卡片 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 15px;
    padding: 15px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 99;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.nav-item.active {
    color: #4CAF50;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #FFC107;
    color: #856404;
}

.status-approved {
    background-color: #28A745;
    color: #fff;
}

.status-rejected {
    background-color: #DC3545;
    color: #fff;
}

.status-success {
    background-color: #28A745;
    color: #fff;
}

.status-failed {
    background-color: #DC3545;
    color: #fff;
}

/* 价格显示 */
.price {
    color: #DC3545;
    font-weight: 600;
    font-size: 18px;
}

/* 提示信息 */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px;
    font-size: 14px;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    
    .mobile-container {
        max-width: 100%;
    }
}

/* 内容类型切换 */
.content-type-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin: 0 15px;
}

.tab-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 0 15px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #4CAF50;
}

.upload-area input[type="file"] {
    display: none;
}

/* 预约时间选择 */
.time-picker {
    position: relative;
}

.time-picker input {
    padding-right: 40px;
}

.time-picker-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* 协议 checkbox */
.agreement {
    display: flex;
    align-items: center;
    margin: 15px;
    font-size: 14px;
}

.agreement input[type="checkbox"] {
    margin-right: 10px;
}

.agreement a {
    color: #4CAF50;
    text-decoration: none;
}

/* 余额显示 */
.balance-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.balance-label {
    color: #666;
}

.balance-amount {
    font-weight: 600;
    color: #333;
}

/* 功能列表 */
.function-list {
    background-color: #fff;
    margin: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.function-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}

.function-item:last-child {
    border-bottom: none;
}

.function-item:hover {
    background-color: #f8f9fa;
}

.function-icon {
    font-size: 18px;
    color: #4CAF50;
    margin-right: 15px;
}

.function-arrow {
    font-size: 14px;
    color: #999;
}
