:root {
    --primary-color: #667eea;
    --primary-gradient-start: #667eea;
    --primary-gradient-end: #764ba2;
    --bg-body: #f5f7fa;
    --bg-container-start: #667eea;
    --bg-container-end: #764ba2;
    --bg-card: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-heading: #2c3e50;
    --text-content: #495057;
    --text-muted: #6c757d;
    --text-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Alert Colors */
    --alert-important-bg: #fff3cd;
    --alert-important-border: #ffc107;
    --alert-important-icon: #d39e00;
    
    --alert-warning-bg: #f8d7da;
    --alert-warning-border: #dc3545;
    --alert-warning-icon: #c82333;
    
    --alert-medical-bg: #d1ecf1;
    --alert-medical-border: #17a2b8;
    --alert-medical-icon: #138496;
    
    --alert-info-bg: #d4edda;
    --alert-info-border: #28a745;
    --alert-info-icon: #1e7e34;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #9f7aea;
        --primary-gradient-start: #2d3748;
        --primary-gradient-end: #1a202c;
        --bg-body: #121212;
        --bg-container-start: #2d3748;
        --bg-container-end: #1a202c;
        --bg-card: #1e1e1e;
        --bg-light: #2d2d2d;
        --text-main: #e0e0e0;
        --text-heading: #f0f0f0;
        --text-content: #d1d5db;
        --text-muted: #9ca3af;
        --text-white: #ffffff;
        --border-color: #404040;
        --shadow-color: rgba(0, 0, 0, 0.5);

        /* Alert Colors - Dark Mode */
        --alert-important-bg: #423602;
        --alert-important-border: #d69e2e;
        --alert-important-icon: #ecc94b;
        
        --alert-warning-bg: #461414;
        --alert-warning-border: #e53e3e;
        --alert-warning-icon: #fc8181;
        
        --alert-medical-bg: #113642;
        --alert-medical-border: #3182ce;
        --alert-medical-icon: #63b3ed;
        
        --alert-info-bg: #11381e;
        --alert-info-border: #38a169;
        --alert-info-icon: #68d391;
    }
}

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

body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-container-start) 0%, var(--bg-container-end) 100%);
}

/* 头部样式 */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-white);
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: linear-gradient(45deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-color);
    display: none;
}

/* 内容布局 */
.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: var(--bg-card);
    padding: 1.5rem;
    box-shadow: 2px 0 10px var(--shadow-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.section-nav ul {
    list-style: none;
}

.section-nav li {
    margin-bottom: 0.5rem;
}

.section-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-content);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.section-nav a:hover,
.section-nav a.active {
    background: linear-gradient(45deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-white);
    transform: translateX(5px);
}

/* 快速联系卡片 */
.quick-contact {
    margin-top: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.quick-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-content);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.contact-name {
    font-weight: 500;
    color: var(--text-content);
}

.contact-phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-phone:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background: var(--bg-card);
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-content);
    margin-bottom: 1.5rem;
}

/* 时间轴样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-gradient-start), var(--primary-gradient-end));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-item.highlight::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-date {
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* 地址卡片 */
.address-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.address-card i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.address-text {
    flex: 1;
    color: var(--text-main);
}

/* 联系人网格 */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-gradient-start), var(--primary-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
}

.contact-details {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.contact-phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-phone:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 天气信息卡片 */
.weather-info {
    margin-bottom: 2rem;
}

.weather-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.weather-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.weather-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.weather-details ul {
    list-style: none;
    margin-bottom: 1rem;
}

.weather-details li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.weather-details li::before {
    content: '•';
    margin-right: 0.5rem;
    color: #ffd166;
}

.weather-tip {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 衣物穿搭网格 */
.clothing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.clothing-layer {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.clothing-layer:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.layer-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.layer-title {
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.layer-tip {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

/* 信息卡片 */
.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-content h3 {
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

/* 医疗网格 */
.medical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.medical-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.medical-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.medical-details h3 {
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.distance {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 警告卡片 */
.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.alert-card.important {
    background: var(--alert-important-bg);
    border-left: 4px solid var(--alert-important-border);
}

.alert-card.warning {
    background: var(--alert-warning-bg);
    border-left: 4px solid var(--alert-warning-border);
}

.alert-card.medical {
    background: var(--alert-medical-bg);
    border-left: 4px solid var(--alert-medical-border);
}

.alert-card.info {
    background: var(--alert-info-bg);
    border-left: 4px solid var(--alert-info-border);
}

.alert-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.alert-card.important .alert-icon {
    color: var(--alert-important-icon);
}

.alert-card.warning .alert-icon {
    color: var(--alert-warning-icon);
}

.alert-card.medical .alert-icon {
    color: var(--alert-medical-icon);
}

.alert-card.info .alert-icon {
    color: var(--alert-info-icon);
}

.alert-content h3 {
    color: inherit;
    margin-bottom: 0.75rem;
}

.alert-content ul {
    list-style: none;
    margin-left: 0.5rem;
}

.alert-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.alert-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: inherit;
}

/* 管理链接 */
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 注册表单 */
.registration-form {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group.focused input,
.form-group.focused textarea,
.form-group.focused select {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-label {
    font-weight: normal;
    line-height: 1.4;
    color: var(--text-main);
}

/* 表单按钮 */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit,
.btn-reset {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit {
    background: linear-gradient(45deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-white);
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset {
    background: var(--text-muted);
    color: var(--text-white);
}

.btn-reset:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 页脚 */
.page-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-signature {
    font-weight: 600;
    color: var(--text-content);
    margin: 1rem 0;
}

.footer-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        padding: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 5px 0 15px var(--shadow-color);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .main-content {
        width: 100%;
        max-height: none;
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    h1 i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .date-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .clothing-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-card {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-icon {
        font-size: 2.5rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .info-icon {
        font-size: 1.8rem;
    }
    
    .medical-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        width: 45px;
        height: 45px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .date-badge {
        font-size: 0.85rem;
    }
    
    .section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
        align-items: center;
        gap: 0.5rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 0.75rem;
    }
    
    .contact-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .alert-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .alert-icon {
        font-size: 1.3rem;
        margin-top: 0;
    }
}

/* 小屏幕优化 */
@media (max-width: 360px) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .registration-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* 打印样式 */
@media print {
    .mobile-menu-btn,
    .back-to-top,
    .section-nav,
    .quick-contact,
    #admin-link,
    .btn-reset {
        display: none !important;
    }
    
    .container {
        background: none !important;
    }
    
    header {
        background: none !important;
        color: black !important;
        text-shadow: none !important;
    }
    
    .content-wrapper {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 0;
        max-height: none;
    }
    
    .section {
        break-inside: avoid;
        border-bottom: 1px solid #ccc;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
    
    .btn-submit {
        display: none !important;
    }
}