/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 手机外壳 */
.phone-container {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 6px #666,
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

.status-left .time {
    font-weight: 700;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-right i {
    font-size: 12px;
}

.battery {
    font-size: 12px;
    margin-left: 4px;
}

/* 主屏幕 */
.home-screen {
    height: calc(100% - 44px);
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 32px;
    overflow: hidden;
}

/* 壁纸背景 */
.wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
}

/* 应用图标网格 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 30px 20px;
    position: relative;
    z-index: 10;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-icon:hover {
    transform: scale(1.1);
}

.app-icon:active {
    transform: scale(0.95);
}

.icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.icon-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: inherit;
}

.icon-bg i {
    font-size: 24px;
    color: white;
    z-index: 1;
}

.app-name {
    font-size: 12px;
    color: white;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 应用图标背景色 */
.camera-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.photos-bg { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.phone-bg { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.schedule-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.classroom-bg { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.exam-bg { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.competition-bg { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
.grades-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.calendar-bg { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }


.settings-bg { background: linear-gradient(135deg, #e0c3fc 0%, #9bb5ff 100%); }
.browser-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.mail-bg { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.maps-bg { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.ditu-bg { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

/* 页面指示器 */
.page-indicator {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 底部Dock */
.dock {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
}

.dock-app {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dock-app:hover {
    transform: scale(1.1);
}

.dock-app:active {
    transform: scale(0.95);
}

.dock-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.dock-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: inherit;
}

.dock-icon i {
    font-size: 20px;
    color: white;
    z-index: 1;
}

/* Home指示器 */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

/* 弹窗样式 */
.app-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 圆形展开动画 */
.expand-circle {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    animation: expandCircle 0.4s ease-out forwards;
    z-index: 3999;
    pointer-events: none;
}

@keyframes expandCircle {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 1000px;
        height: 1000px;
        opacity: 0;
    }
}

/* 通讯录应用全屏样式 */
.phone-app-fullscreen {
    position: absolute;
    background: #f8f9fa;
    z-index: 4000;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-app-fullscreen.show {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    transform: scale(1);
    opacity: 1;
}

.phone-app-fullscreen.closing {
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.phone-app-fullscreen .app-header {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.phone-app-fullscreen .app-header .back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.phone-app-fullscreen .app-header .back-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.phone-app-fullscreen .app-header .app-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

.phone-app-fullscreen .app-header .search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.phone-app-fullscreen .app-header .search-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.phone-app-fullscreen .app-content {
    height: calc(100% - 80px);
    overflow-y: auto;
    padding: 0;
}

/* 搜索界面样式 */
.search-interface {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search-interface.show {
    transform: translateY(0);
}

.search-header {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: none;
}

.search-clear:hover {
    background-color: rgba(0,0,0,0.1);
}

.search-cancel {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-cancel:hover {
    background-color: rgba(255,255,255,0.2);
}

.search-results {
    padding: 20px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.search-placeholder {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-top: 100px;
}

.search-no-results {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-top: 50px;
}

.search-result-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-result-item .contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.search-result-item .contact-department {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.search-result-item .contact-phone {
    font-size: 15px;
    color: #007AFF;
    font-weight: 500;
}

.search-result-item .category-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}

/* 联系人分类样式 */
.contact-category {
    margin-bottom: 20px;
}

.category-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-left: 4px solid #007AFF;
    margin-bottom: 10px;
}

.contact-item {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left-color: #007AFF;
}

.contact-item:active {
    transform: translateX(3px);
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.contact-department {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.contact-phone {
    font-size: 15px;
    color: #007AFF;
    font-weight: 500;
}

/* 拨号确认弹窗 */
.dial-confirm {
    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: 5000;
    backdrop-filter: blur(5px);
}

.dial-confirm-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 300px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: dialConfirmSlideIn 0.3s ease-out;
}

@keyframes dialConfirmSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dial-confirm-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.dial-confirm-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.dial-confirm-content .phone-number {
    color: #007AFF;
    font-weight: 600;
    font-size: 18px;
    margin: 10px 0;
}

.dial-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dial-confirm-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.dial-confirm-buttons .cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.dial-confirm-buttons .cancel-btn:hover {
    background: #e0e0e0;
}

.dial-confirm-buttons .call-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.dial-confirm-buttons .call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 通话界面 */
.call-interface {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 6000;
    animation: callInterfaceSlideIn 0.4s ease-out;
}

@keyframes callInterfaceSlideIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.call-interface .contact-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 20px;
    border: 3px solid rgba(255,255,255,0.3);
}

.call-interface .contact-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.call-interface .contact-number {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
    text-align: center;
}

.call-interface .call-status {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 50px;
    text-align: center;
}

.call-interface .call-duration {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 50px;
    text-align: center;
}

.call-controls {
    display: flex;
    gap: 30px;
    align-items: center;
}

.call-control-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-control-btn.end-call {
    background: #ff4757;
    color: white;
}

.call-control-btn.end-call:hover {
    background: #ff3838;
    transform: scale(1.1);
}

.call-control-btn.mute {
    background: rgba(255,255,255,0.2);
    color: white;
}

.call-control-btn.mute:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.call-control-btn.speaker {
    background: rgba(255,255,255,0.2);
    color: white;
}

.call-control-btn.speaker:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 地图应用全屏样式 */
.map-app-fullscreen {
    position: absolute;
    background: #f8f9fa;
    z-index: 4000;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.map-app-fullscreen.show {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    transform: scale(1);
    opacity: 1;
}

.map-app-fullscreen.closing {
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.map-app-fullscreen .app-header {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.map-app-fullscreen .app-header .back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.map-app-fullscreen .app-header .back-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.map-app-fullscreen .app-header .app-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

.map-app-fullscreen .app-header .layers-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.map-app-fullscreen .app-header .layers-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.map-app-fullscreen .app-content {
    height: calc(100% - 80px);
    overflow: hidden;
    position: relative;
    background: #000;
    display: flex;
    flex-direction: column;
}

/* 地图容器样式 */
.map-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    background: #000;
}

.map-viewport:active {
    cursor: grabbing;
}

.map-image {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 地图控件 */
.map-controls {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.map-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: none;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.15),
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.map-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.map-control-btn:hover {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.map-control-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.15),
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.map-control-btn.zoom-in {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.map-control-btn.zoom-in:hover {
    background: linear-gradient(145deg, #66BB6A, #4CAF50);
}

.map-control-btn.zoom-out {
    background: linear-gradient(145deg, #FF6B6B, #E74C3C);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.map-control-btn.zoom-out:hover {
    background: linear-gradient(145deg, #FF8A80, #FF6B6B);
}

.map-control-btn.reset {
    background: linear-gradient(145deg, #00B894, #00A085);
    color: white;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.map-control-btn.reset:hover {
    background: linear-gradient(145deg, #00CEC9, #00B894);
}

/* 地图信息显示 */
.map-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.25),
        0 2px 6px rgba(0,0,0,0.15);
    backdrop-filter: blur(25px);
    z-index: 200;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 200px;
}

.map-info.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.map-info .info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #00CEC9;
}

.map-info .info-detail {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .phone-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .home-screen {
        border-radius: 0;
    }
    
    .app-grid {
        padding: 20px 20px 10px;
        gap: 15px;
    }
    
    .icon-bg {
        width: 55px;
        height: 55px;
    }
    
    .icon-bg i {
        font-size: 22px;
    }
    
    .app-name {
        font-size: 11px;
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 浏览器应用全屏样式 */
.browser-app-fullscreen {
    position: absolute;
    background: #f8f9fa;
    z-index: 4000;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.browser-app-fullscreen.show {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    transform: scale(1);
    opacity: 1;
}

.browser-app-fullscreen.closing {
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.browser-app-fullscreen .app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px;
}

.browser-app-fullscreen .app-header .back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.browser-app-fullscreen .app-header .back-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.browser-app-fullscreen .app-header .refresh-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.browser-app-fullscreen .app-header .refresh-btn:hover {
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.browser-address-bar {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.address-bar-content {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.url-text {
    color: white;
    opacity: 0.9;
}

.browser-app-fullscreen .app-content {
    height: calc(100% - 75px);
    overflow: hidden;
    position: relative;
    background: #fff;
}

/* 浏览器加载界面 */
.browser-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
}

/* iframe样式 */
.browser-app-fullscreen iframe {
    border: none;
    width: 100%;
    height: 100%;
    background: white;
}

/* 邮箱应用全屏样式 */
.mail-app-fullscreen {
    position: absolute;
    background: #f8f9fa;
    z-index: 4000;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mail-app-fullscreen.show {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    transform: scale(1);
    opacity: 1;
}

.mail-app-fullscreen.closing {
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.mail-app-fullscreen .app-header {
    background: linear-gradient(135deg, #EA4335 0%, #FBBC05 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px;
}

.mail-app-fullscreen .app-header .back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.mail-app-fullscreen .app-header .back-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.mail-app-fullscreen .app-header .refresh-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.mail-app-fullscreen .app-header .refresh-btn:hover {
    background-color: rgba(255,255,255,0.2);
    transform: rotate(180deg);
}

.mail-address-bar {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.mail-app-fullscreen .app-content {
    height: calc(100% - 75px);
    overflow: hidden;
    position: relative;
    background: #fff;
}

/* 邮箱加载界面 */
.mail-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #EA4335 0%, #FBBC05 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
}

/* iframe样式 */
.mail-app-fullscreen iframe {
    border: none;
    width: 100%;
    height: 100%;
    background: white;
}

/* 校历应用全屏样式 */
.calendar-app-fullscreen {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 4000;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.calendar-app-fullscreen.show {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    transform: scale(1);
    opacity: 1;
}

.calendar-app-fullscreen.closing {
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.calendar-app-fullscreen .app-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px;
}

.calendar-app-fullscreen .app-header .back-btn,
.calendar-app-fullscreen .app-header .view-mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.calendar-app-fullscreen .app-header .back-btn:hover,
.calendar-app-fullscreen .app-header .view-mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.calendar-header-info {
    flex: 1;
    text-align: center;
}

.calendar-header-info .school-name {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.calendar-header-info .academic-year {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.calendar-app-fullscreen .app-content {
    height: calc(100% - 75px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* 日历导航 */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.nav-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.nav-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.nav-month-year {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 日历容器 */
.calendar-container {
    padding: 0 20px 20px;
}

.weekdays-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #ccc;
    background: #f8f9fa;
}

.calendar-day.other-month:hover {
    background: #e9ecef;
}

.calendar-day.today {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    color: white;
    font-weight: 600;
}

.calendar-day.today:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FFEB3B 100%);
    transform: scale(1.05);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.calendar-day.holiday {
    background: linear-gradient(135deg, #FFE0E0 0%, #FFF3E0 100%);
    color: #d32f2f;
}

.calendar-day.holiday:hover {
    background: linear-gradient(135deg, #FFCDD2 0%, #FFE8CC 100%);
}

.day-number {
    font-size: 16px;
    font-weight: 500;
}

.holiday-text {
    font-size: 8px;
    margin-top: 2px;
    text-align: center;
    line-height: 1;
    opacity: 0.8;
}

/* 日历信息区域 */
.calendar-info {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.selected-date-info {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.selected-date-info .info-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.selected-date-info .info-content {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 学期导航 */
.semester-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
}

.semester-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.semester-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.semester-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 校历内容 */
.calendar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

/* 学期信息 */
.semester-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
}

.semester-title h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.semester-period {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.semester-stats {
    display: flex;
    justify-content: space-around;
}

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

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #26de81;
}

/* 时间线样式 */
.calendar-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.2s;
    position: relative;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.timeline-item.past {
    opacity: 0.6;
}

.timeline-item.today {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.timeline-item.important {
    border-left: 4px solid #ff6b6b;
}

.timeline-item.start {
    border-left: 4px solid #26de81;
}

.timeline-item.end {
    border-left: 4px solid #fd79a8;
}

.timeline-item.exam {
    border-left: 4px solid #fdcb6e;
}

.timeline-item.holiday {
    border-left: 4px solid #6c5ce7;
}

.timeline-date {
    text-align: center;
    margin-right: 15px;
    min-width: 50px;
}

.date-day {
    font-size: 20px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.timeline-content {
    flex: 1;
    color: white;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-date {
    font-size: 12px;
    opacity: 0.8;
}

.today-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-top: 4px;
    display: inline-block;
}

.timeline-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 10px;
}

/* 课程表视图 */
.schedule-container {
    color: white;
}

.schedule-header {
    text-align: center;
    margin-bottom: 20px;
}

.schedule-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.schedule-period {
    font-size: 13px;
    opacity: 0.8;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.week-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.week-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.week-item.current {
    background: linear-gradient(135deg, #26de81, #20bf6b);
    box-shadow: 0 4px 15px rgba(38, 222, 129, 0.3);
}

.week-item.past {
    opacity: 0.6;
}

.week-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.week-dates {
    font-size: 11px;
    opacity: 0.8;
}

.current-week-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 8px;
}

/* 事件视图 */
.events-container {
    color: white;
}

.events-header {
    text-align: center;
    margin-bottom: 20px;
}

.events-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.2s;
    position: relative;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.event-card.past {
    opacity: 0.6;
}

.event-card.today {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.event-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-date {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.event-countdown {
    font-size: 11px;
    opacity: 0.7;
}

.event-type-badge {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.event-type-badge.important {
    background: rgba(255, 107, 107, 0.3);
}

.event-type-badge.start {
    background: rgba(38, 222, 129, 0.3);
}

.event-type-badge.end {
    background: rgba(253, 121, 168, 0.3);
}

.event-type-badge.exam {
    background: rgba(253, 203, 110, 0.3);
}

.event-type-badge.holiday {
    background: rgba(108, 92, 231, 0.3);
}

/* 校历照片视图 */
.calendar-photo-container {
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.photo-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.photo-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.photo-subtitle {
    font-size: 13px;
    opacity: 0.8;
    font-style: italic;
}

.calendar-photo-wrapper {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 0 20px;
    overflow: hidden;
    min-height: 300px;
}

.calendar-photo-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.95);
}

.photo-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.photo-viewport.dragging {
    cursor: grabbing !important;
}

.calendar-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    border-radius: 10px;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.photo-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 15px;
    z-index: 5;
}

.photo-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.photo-loading .loading-text {
    font-size: 14px;
    opacity: 0.8;
}

.photo-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 15px;
    text-align: center;
    z-index: 5;
}

.photo-error i {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.photo-error .error-text {
    font-size: 16px;
    margin-bottom: 15px;
}

.photo-error .retry-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.photo-error .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.photo-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.photo-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.photo-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.photo-control-btn:active {
    transform: scale(0.95);
}

.zoom-in-btn:hover {
    background: rgba(38, 222, 129, 0.3);
}

.zoom-out-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

.reset-zoom-btn:hover {
    background: rgba(253, 203, 110, 0.3);
}

.fullscreen-btn:hover {
    background: rgba(108, 92, 231, 0.3);
}

.zoom-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
    user-select: none;
}

.photo-info {
    display: flex;
    justify-content: space-around;
    margin: 15px 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: white;
    opacity: 0.9;
}

.info-item i {
    font-size: 14px;
    opacity: 0.8;
}

/* 全屏模式下的控制按钮调整 */
.calendar-photo-wrapper.fullscreen .photo-controls {
    bottom: 30px;
    right: 30px;
}

.calendar-photo-wrapper.fullscreen .zoom-info {
    top: 30px;
    right: 30px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .photo-controls {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .photo-control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .zoom-info {
        top: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .photo-info {
        margin: 10px 15px 0;
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .info-item {
        justify-content: center;
        font-size: 11px;
    }
}





/* 地图应用全屏样式 (复刻版) */
.ditu-app-fullscreen {
    position: absolute;
    background: #f8f9fa;
    z-index: 4000;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ditu-app-fullscreen.show {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    transform: scale(1);
    opacity: 1;
}

.ditu-app-fullscreen.closing {
    transform: scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.ditu-app-fullscreen .app-header {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.ditu-app-fullscreen .app-header .back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.ditu-app-fullscreen .app-header .back-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.ditu-app-fullscreen .app-header .app-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

.ditu-app-fullscreen .app-header .layers-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.ditu-app-fullscreen .app-header .layers-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.ditu-app-fullscreen .app-content {
    height: calc(100% - 80px);
    overflow: hidden;
    position: relative;
    background: #000;
    display: flex;
    flex-direction: column;
}

/* 地图容器样式 (复刻版) */
.ditu-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    background: #000;
}

.ditu-viewport:active {
    cursor: grabbing;
}

.ditu-image {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 地图控件 (复刻版) */
.ditu-controls {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ditu-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.ditu-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: none;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.15),
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.ditu-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.ditu-control-btn:hover {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.ditu-control-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.15),
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.ditu-control-btn.zoom-in {
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    color: #8b4513;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ditu-control-btn.zoom-in:hover {
    background: linear-gradient(145deg, #ffdfb8, #ffa07a);
}

.ditu-control-btn.zoom-out {
    background: linear-gradient(145deg, #fcb69f, #ffecd2);
    color: #8b4513;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ditu-control-btn.zoom-out:hover {
    background: linear-gradient(145deg, #ffa07a, #ffdfb8);
}

.ditu-control-btn.reset {
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    color: #8b4513;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ditu-control-btn.reset:hover {
    background: linear-gradient(145deg, #ffdfb8, #ffa07a);
}

/* 地图信息显示 (复刻版) */
.ditu-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(252, 182, 159, 0.95);
    color: #8b4513;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.25),
        0 2px 6px rgba(0,0,0,0.15);
    backdrop-filter: blur(25px);
    z-index: 200;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 200px;
}

.ditu-info.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.ditu-info .info-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.ditu-info .info-detail {
    line-height: 1.4;
    opacity: 0.9;
} 