/* 公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面主容器 - 限制最大宽度768px */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #e5e7eb; /* 更深的背景色，突出边框效果 */
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 主应用容器 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    height: 100vh;
    background-color: #f5f5f5;
    border-left: 2px solid #d1d5db;
    border-right: 2px solid #d1d5db;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: -1;
    pointer-events: none;
}

/* 确保所有内容都在容器内 */
body {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
    background-color: #f5f5f5;
    min-height: 100vh;
}


/* 主要颜色 */
:root {
    --primary-color: #4169E1;
    --primary-blue: #4169E1;
    --secondary-blue: #5A7EF0;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #6B7280;
    --white: #FFFFFF;
    --red: #FF6B6B;
    --orange: #FF6B6B;
    --blue: #4169E1;
    --green: #4ECDC4;
    --yellow: #FFE066;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-radius: 20px;
    --border-radius-small: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 页面头部 */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 20px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 28px;
    font-weight: 500;
    margin:50px 0 30px 0;
}

.header .greeting {
    font-size: 18px;
    margin-bottom: 10px;
}

.header .date-info {
    font-size: 16px;
    opacity: 0.9;
}
.today-schedule{
    padding: 20px;
}
.schedule-day-view{
    padding-top: 20px;
}
.back-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
/* 旧正文样式*/
.main-content{
    padding-bottom: 100px;
}
.page-container{
    padding: 0;
}

/* 搜索框 */
.search-box {
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: var(--text-primary);
    margin-left: 10px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 18px;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.feature-item {
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-item .icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feature-item .label {
    font-size: 12px;
    font-weight: 500;
}

.feature-item .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 状态标签 */
.status-tabs {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.status-tab {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.status-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.status-tab.active.green {
    background: var(--green);
    border-color: var(--green);
}

.status-tab.active.yellow {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--text-primary);
}

.status-tab.active.gray {
    background: var(--dark-gray);
    border-color: var(--dark-gray);
}

.status-tab .count {
    background: var(--white);
    color: var(--text-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-tab.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.status-tab.active.yellow .count {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

/* 卡片列表 */
.card-list {
    padding: 0 20px;
    margin-bottom: 100px;
}
.today-tasks h2{
    padding:0 20px 20px 20px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card.blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.card.gray {
    background: linear-gradient(135deg, #8E9AAF, #A0A8B8);
    color: var(--white);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--white);
}

.tag.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-date {
    font-size: 14px;
    opacity: 0.8;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    background: var(--white);
    border-top: 1px solid var(--medium-gray);
    border-left: 2px solid #d1d5db;
    border-right: 2px solid #d1d5db;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    text-align: center;
    font-size: 12px;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item .icon {
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
}

/* 浮动按钮 */
.fab {
    position: fixed;
    bottom: 100px;
    right: calc(50% - 364px + 20px); /* 在768px容器内右侧20px */
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
    z-index: 999;
    transition: transform 0.2s;
}

/* 在小屏幕上保持原有位置 */
@media (max-width: 768px) {
    .fab {
        right: 20px;
    }
}

.fab:hover {
    transform: scale(1.1);
}

/* 详情页样式 */
.detail-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 20px;
    position: relative;
}

.detail-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    height:30px;
}

.detail-page-title {
    font-size: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.detail-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 20px 0;
}

.detail-title {
    font-size: 24px;
    font-weight: 500;
}

.detail-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
    flex: 1;
}

.detail-meta .icon {
    margin-right: 5px;
}

.progress-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    margin-left: 20px;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 10px;
    padding: 20px;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 10px 5px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-delete {
    background: var(--red);
    color: var(--white);
}

.btn-edit,
.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-add, 
.btn-primary {
    background: var(--green);
    color: var(--white);
}

/* 子任务项目样式 */
.subtask-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.subtask-content {
    flex: 1;
}

.subtask-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.subtask-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.subtask-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* 联系记录样式 */
.contact-record {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.contact-record:last-child {
    border-bottom: none;
}

.record-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.record-type {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.record-content {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    line-height: 1.5;
}

.record-follow {
    font-size: 14px;
    color: var(--text-primary);
    background: var(--light-gray);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
}

.contact-record-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* 里程碑样式 */
.milestone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.milestone-content {
    flex: 1;
}

.milestone-number {
    font-size: 16px;
    font-weight: 500;
    margin-right: 15px;
    color: var(--text-secondary);
}

.milestone-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.milestone-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.milestone-amount {
    font-size: 14px;
    color: var(--green);
    font-weight: 500;
    margin-right: 10px;
}

.milestone-action {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* 附件样式 */
.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.attachment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.attachment-name {
    font-size: 14px;
    color: var(--text-primary);
}

.attachment-icon {
    color: var(--text-secondary);
    font-size: 16px;
}

.asset-attachment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.asset-attachment:last-child {
    border-bottom: none;
}

/* 链接样式 */
.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 状态标签样式 */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.normal {
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
}

.status-badge.active {
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
}

.status-badge.high {
    background: var(--red);
    color: var(--white);
}

.status-badge.core {
    background: var(--red);
    color: var(--white);
}

.status-badge.work {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.status-tags {
    display: flex;
    gap: 10px;
}

.detail-content {
    padding: 0;
}

/* 表单样式 */
.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label.required::after {
    content: " *";
    color: var(--red);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-small);
    font-size: 16px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-textarea.large {
    min-height: 120px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-col {
    flex: 1;
}

.form-col-2 {
    flex: 2;
}

.form-col-3 {
    flex: 3;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    background: var(--light-gray);
    margin: 20px -20px -20px -20px;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input,
.radio-item input {
    width: auto;
    margin: 0;
}

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-small);
    background: var(--white);
}

.tag-input-container.focused {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.tag-item {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-item .remove {
    cursor: pointer;
    font-weight: bold;
}

.tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 100px;
    font-size: 16px;
}

.file-upload {
    border: 2px dashed var(--medium-gray);
    border-radius: var(--border-radius-small);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-upload:hover {
    border-color: var(--primary-blue);
}

.file-upload.dragover {
    border-color: var(--primary-blue);
    background: rgba(65, 105, 225, 0.05);
}

.file-upload-icon {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
    margin-bottom: 8px;
}

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

.file-name {
    font-size: 14px;
    color: var(--text-primary);
}

.file-remove {
    color: var(--red);
    cursor: pointer;
    font-size: 14px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-blue);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 日期时间选择器样式 */
.datetime-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.datetime-row .form-input {
    flex: 1;
}

.section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-list {
    padding: 0 20px;
}

.contact-item {
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
}

.contact-name {
    font-size: 16px;
    font-weight: 500;
}

.contact-phone {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.asset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
}

.asset-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
}

.asset-type {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: inline-block;
}

.asset-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.asset-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* 日程管理样式 */
.view-switches {
    display: flex;
    gap: 8px;
    margin: 16px 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.view-btn {
    padding: 6px 12px;
    border: 1px solid var(--medium-gray);
    background: var(--white);
    border-radius: var(--border-radius-small);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.date-section {
    margin: 20px 0;
}

.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--light-gray);
}

.date-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.count-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background-color 0.2s;
}

.schedule-item:hover {
    background: var(--bg-light);
}

.schedule-time {
    min-width: 60px;
    margin-right: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.schedule-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.schedule-time-small {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.schedule-location {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.schedule-status {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.status-upcoming {
    background: var(--orange);
}

.status-dot.status-confirmed {
    background: var(--green);
}

.status-dot.status-personal {
    background: var(--blue);
}

.status-dot.status-cancelled {
    background: var(--red);
}

/* 日历视图样式 */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--light-gray);
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-light);
    border-bottom: 1px solid var(--light-gray);
}

.weekday {
    padding: 12px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.calendar-day {
    background: var(--white);
    min-height: 80px;
    padding: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-day:hover {
    background: var(--bg-light);
}

.calendar-day.other-month {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.calendar-day.today {
    background: var(--primary-light);
}

.day-number {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-event {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-event.event-work {
    background: var(--blue);
}

.day-event.event-personal {
    background: var(--green);
}

.day-event.event-meeting {
    background: var(--orange);
}

/* 周视图样式 */
.week-header {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background: var(--bg-light);
    border-bottom: 1px solid var(--light-gray);
}

.week-time-header {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.week-day-header {
    padding: 12px 8px;
    text-align: center;
    border-left: 1px solid var(--light-gray);
}

.week-day-name {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.week-day-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.week-day-header.today {
    background: var(--primary-light);
}

.week-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
}

.week-time-slot {
    padding: 20px 8px;
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-light);
}

.week-day-column {
    border-left: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    min-height: 60px;
    position: relative;
    padding: 4px;
}

.week-event {
    background: var(--primary-color);
    color: var(--black);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 2px;
    cursor: pointer;
}

/* 日视图样式 */
.day-view-header {
    text-align: center;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.day-view-date {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.day-view-weekday {
    font-size: 14px;
    color: var(--text-secondary);
}

.day-schedule {
    padding: 0;
}

.day-time-slot {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
}

.day-time {
    width: 60px;
    padding: 20px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-light);
    border-right: 1px solid var(--light-gray);
}

.day-content {
    flex: 1;
    min-height: 60px;
    padding: 8px 16px;
    position: relative;
}

.day-event-item {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    border-left: 4px solid var(--primary-dark);
}

.day-event-item.event-work {
    background: var(--blue);
    border-left-color: var(--blue-dark);
}

.day-event-item.event-personal {
    background: var(--green);
    border-left-color: var(--green-dark);
}

.day-event-item.event-meeting {
    background: var(--orange);
    border-left-color: var(--orange-dark);
}

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

.day-event-time {
    font-size: 12px;
    opacity: 0.9;
}

/* 参与人员列表样式 */
.participant-list {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius-small);
    padding: 8px;
    background: var(--bg-light);
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    background: var(--white);
    border-radius: var(--border-radius-small);
}

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

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.participant-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.participant-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.status-accepted {
    background: var(--green-light);
    color: var(--green);
}

.status-badge.status-pending {
    background: var(--orange-light);
    color: var(--orange);
}

.status-badge.status-declined {
    background: var(--red-light);
    color: var(--red);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
}

.remove-btn:hover {
    color: var(--red);
}
.empty-state{
    text-align: center;
    line-height: 50px;
    background: white;
    border-radius: 20px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    /* 小屏幕时去掉容器边框效果，使用全屏 */
    html, body {
        background-color: #f5f5f5;
    }
    
    body::before {
        display: none; /* 隐藏边框背景 */
    }
    
    body {
        max-width: 100%;
        margin: 0;
        background-color: #f5f5f5;
    }
    
    /* 底部导航在小屏幕时恢复全宽 */
    .bottom-nav {
        left: 0;
        right: 0;
        transform: none;
        max-width: none;
        border-left: none;
        border-right: none;
    }
    
    /* 浮动按钮位置调整已在上面处理 */
    
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .asset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-tabs {
        flex-wrap: wrap;
    }
    
    .summary-item{
        padding:10px !important;
    }
}