/* 小涛记工时 - 完整样式（蓝色背景，手机适配） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1890ff;  /* 整体蓝色背景 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    padding: 0;
    font-size: 15px;
    line-height: 1.4;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px;
    background: transparent;
}

/* 白色卡片 */
.auth-panel, .card, .calendar-box, .list-box, .me-box, .record-detail-card, .modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* 页面标题：小涛记工时（黄色，居中） */
.app-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffeb3b;
    margin: 10px 0 5px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 登录面板 */
.auth-panel {
    padding: 25px 20px;
}
.auth-panel h2 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 18px;
}
.auth-panel input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}
.auth-panel button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #409eff;
    color: #fff;
    margin-bottom: 8px;
    font-size: 15px;
    cursor: pointer;
}
.auth-panel button:nth-child(4) {
    background: #909399;
}

/* 顶部导航 */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    background: transparent;
}
.topnav button {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: #f56c6c;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #eee;
    z-index: 100;
}
.bottom-nav button {
    background: none;
    border: none;
    font-size: 16px;
    padding: 8px 0;
    color: #666;
    cursor: pointer;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}
.bottom-nav button.active {
    color: #409eff;
    font-weight: bold;
}

/* 主内容区 */
.main-content {
    padding-bottom: 60px;
}

/* 统计卡片 - 缩小一半，背景橙色 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}
.card {
    background: #ff9800;  /* 橙色背景 */
    border-radius: 8px;
    padding: 6px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.card-title {
    font-size: 10px;
    color: #fff;
    text-align: center;
}
.card-value {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

/* 日历 - 放大，适配手机 */
.calendar-box {
    background: white;
    border-radius: 16px;
    padding: 12px;
    margin-top: 8px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.calendar-header button {
    border: none;
    background: #e9eef3;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}
.calendar-header h3 {
    font-size: 18px;
    font-weight: normal;
}
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
}
.weeks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.day {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fafb;
    cursor: pointer;
    overflow: hidden;
    padding: 2px;
}
.day.other {
    background: transparent;
    color: #ccc;
}
/* 有记录（非休息）显示黄色 */
.day.has-record {
    background-color: #ffeb3b !important;
}
/* 休息日显示绿色 */
.day.rest-day {
    background-color: #4caf50 !important;
    color: white;
}
.day-num {
    font-size: 14px;
    font-weight: 500;
}
.badge {
    font-size: 9px;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    margin-top: 2px;
}
.badge-item {
    display: block;
    white-space: normal;
    word-break: break-word;
}

/* 弹窗遮罩 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow-y: auto;
    max-height: 90vh;
}
.modal-header {
    padding: 14px;
    background: #409eff;
    color: white;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}
.form-item {
    padding: 10px 15px;
}
.form-item label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.form-item input, .form-item select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}
.attendance-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.attendance-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.attendance-btn.active {
    background: #409eff;
    color: white;
    border-color: #409eff;
}
.income-line {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.btns {
    display: flex;
    padding: 10px 15px 15px;
    gap: 10px;
}
.btns button {
    flex: 1;
    padding: 9px 0;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}
.btns button:first-child {
    background: #409eff;
    color: white;
}
.btns button:last-child {
    background: #e9eef3;
    color: #333;
}
.btn-danger {
    background-color: #dc3545;
    color: white;
}
.btn-danger:hover {
    background-color: #c82333;
}
.list-box {
    padding: 15px;
}
.list-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.list-box > button {
    background: #409eff;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
}
.item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.item button {
    margin-right: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    background: #e9eef3;
    cursor: pointer;
}
.me-box {
    padding: 20px;
}
.me-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
    margin-top: 20px;
}
.me-box button {
    margin-top: 15px;
    background: #f56c6c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.record-detail-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}
.record-date {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}