:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --icon-size: 48px;
    --grid-gap: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    min-height: 100vh;
    padding: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* 中国风登录页面样式 */
#login-view {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
}

.login-header {
    position: relative;
    padding: 80px 20px 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
}

.mountains-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    opacity: 0.3;
}

.login-title {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    letter-spacing: 8px;
    position: relative;
    z-index: 1;
    margin: 0;
}

.login-content {
    padding: 60px 30px;
    position: relative;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.input-wrapper {
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.login-input:focus {
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.login-input::placeholder {
    color: #999;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 2px;
}

.login-button:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 5px;
}

.forgot-password,
.privacy-link {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover,
.privacy-link:hover {
    color: #555;
}

.watermark {
    position: absolute;
    bottom: 100px;
    right: 30px;
    font-size: 120px;
    color: #f0f0f0;
    opacity: 0.2;
    pointer-events: none;
    font-weight: 100;
}

/* Common Header Styles */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.header-action {
    font-size: 14px;
    color: #999;
    cursor: pointer;
}

/* Student Select View Styles */
.student-list {
    padding: 20px;
}

.student-card {
    background: linear-gradient(135deg, #67c3f3 0%, #5a98f2 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(90, 152, 242, 0.3);
    cursor: pointer;
    transition: transform 0.1s;
}

.student-card:active {
    transform: scale(0.98);
}

.student-head {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-right: 15px;
    object-fit: cover;
    background-color: #eee;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-name-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.student-name {
    font-size: 20px;
    font-weight: bold;
    margin-right: 8px;
}

.student-class {
    font-size: 14px;
    opacity: 0.9;
}

.student-school {
    font-size: 14px;
    opacity: 0.8;
}

/* Service Center Grid Styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    padding: 20px 10px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.grid-item:active {
    transform: scale(0.95);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.label {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* Colors with gradients */
.color-orange {
    background: linear-gradient(135deg, #ffb142, #ff9f43);
    box-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
}

.color-green {
    background: linear-gradient(135deg, #55efc4, #00b894);
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
}

.color-red {
    background: linear-gradient(135deg, #ff7675, #d63031);
    box-shadow: 0 4px 10px rgba(214, 48, 49, 0.3);
}

.color-blue {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.3);
}

.color-pink {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    box-shadow: 0 4px 10px rgba(232, 67, 147, 0.3);
}

.color-cyan {
    background: linear-gradient(135deg, #81ecec, #00cec9);
    box-shadow: 0 4px 10px rgba(0, 206, 201, 0.3);
}

.color-yellow {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    box-shadow: 0 4px 10px rgba(253, 203, 110, 0.3);
}

.color-purple {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

/* Badge */
.badge-container {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff4757;
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1.5px);
    }
}

.grid-item.empty {
    cursor: default;
}

.view-section {
    display: none;
}

.view-section:first-child {
    display: block;
}

/* 未实现功能的灰色样式 */
.color-gray {
    background: linear-gradient(135deg, #b0b0b0, #909090);
    box-shadow: 0 4px 10px rgba(144, 144, 144, 0.2);
}

.grid-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.grid-item.disabled:active {
    transform: none;
}

.grid-item.disabled .label {
    color: #999;
}