:root {
    --primary: #FFC107;
    --secondary: #005EB8;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #333;
    --text-light: #666;
    --border: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-gray);
    color: var(--text-dark);
    padding-bottom: 70px;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

.page {
    padding: 0;
}

.header {
    background: linear-gradient(135deg, var(--secondary) 0%, #003d80 100%);
    color: var(--white);
    padding: 20px 16px;
}

.hospital-name {
    font-size: 20px;
    font-weight: bold;
}

.hospital-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--white);
}

.action-item {
    text-align: center;
    cursor: pointer;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
}

.action-text {
    font-size: 12px;
    color: var(--text-dark);
}

.banner {
    margin: 12px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #ffca28 100%);
    border-radius: 12px;
    padding: 16px;
}

.banner-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.banner-desc {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    padding: 16px 16px 12px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.dept-item {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.dept-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.dept-name {
    font-size: 14px;
    font-weight: 500;
}

.dept-wait {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.notice-list {
    background: var(--white);
    margin: 12px 16px;
    border-radius: 12px;
    padding: 12px;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.notice-tag {
    background: #FFF3E0;
    color: var(--primary);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

.notice-text {
    font-size: 13px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 门诊页面 */
.search-bar {
    padding: 12px 16px;
    background: var(--white);
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.dept-list {
    padding: 12px 16px;
}

.dept-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dept-title {
    font-size: 16px;
    font-weight: 500;
}

.dept-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.dept-action {
    text-align: right;
}

.wait-num {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.queue-info {
    background: var(--white);
    margin: 12px 16px;
    border-radius: 12px;
    padding: 16px;
}

.queue-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.queue-dept {
    flex: 1;
    font-size: 14px;
}

.queue-num {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

.queue-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 12px;
}

.queue-status.waiting {
    background: #FFF3E0;
    color: var(--primary);
}

.queue-status.ready {
    background: #E8F5E9;
    color: #28a745;
}

/* 住院页面 */
.inpatient-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
}

.summary-card {
    text-align: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
}

.summary-label {
    font-size: 11px;
    color: var(--text-light);
}

.summary-value {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.cost-list {
    background: var(--white);
    margin: 0 16px;
    border-radius: 12px;
    padding: 12px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.cost-name {
    font-size: 14px;
}

.cost-value {
    font-size: 14px;
    font-weight: 500;
}

.btn-block {
    display: block;
    width: calc(100% - 32px);
    margin: 16px auto;
    padding: 14px;
    background: var(--primary);
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.bill-list {
    background: var(--white);
    margin: 0 16px;
    border-radius: 12px;
}

.bill-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

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

.bill-date {
    flex: 1;
    font-size: 13px;
}

.bill-items {
    font-size: 13px;
    color: var(--text-light);
}

.bill-amount {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

/* 药房页面 */
.prescription-status {
    padding: 12px 16px;
}

.status-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.prescription-list {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
}

.prescription-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.prescription-item:last-child {
    margin-bottom: 0;
}

.rx-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rx-no {
    font-size: 13px;
    color: var(--text-light);
}

.rx-status {
    font-size: 12px;
    color: var(--primary);
    background: #FFF3E0;
    padding: 2px 8px;
    border-radius: 10px;
}

.rx-dept {
    font-size: 14px;
    font-weight: 500;
}

.rx-time {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.rx-drugs {
    margin-top: 8px;
    padding: 8px;
    background: var(--light-gray);
    border-radius: 6px;
}

.drug-item {
    font-size: 13px;
    padding: 4px 0;
}

.rx-total {
    text-align: right;
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
    color: var(--secondary);
}

.pharmacy-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    margin: 12px 16px;
    border-radius: 12px;
}

.service-card {
    text-align: center;
    padding: 16px;
}

.service-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.service-name {
    font-size: 13px;
}

/* 个人中心 */
.profile-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #003d80 100%);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-right: 16px;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
}

.user-phone {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.menu-list {
    background: var(--white);
    margin: 12px 16px;
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

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

.menu-icon {
    font-size: 20px;
    margin-right: 12px;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

.menu-arrow {
    color: var(--text-light);
    font-size: 18px;
}

.health-data {
    background: var(--white);
    margin: 12px 16px;
    border-radius: 12px;
    padding: 16px;
}

.health-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.health-item {
    text-align: center;
}

.health-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
}

.health-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 底部导航 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    z-index: 100;
}

.tab-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.tab-icon {
    font-size: 22px;
}

.tab-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.tab-item.active .tab-label {
    color: var(--secondary);
}

.tab-item.active .tab-icon {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}