/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 8px 0;
}

.header-bottom {
    padding: 8px 0 16px 0;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-title {
    color: #0d47a1;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0d47a1;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.header-progress {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header .container {
        padding: 0 16px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        background: #fff;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: stretch;
        min-width: 150px;
        border: 1px solid #e0e0e0;
    }
    
    .header-actions.show {
        display: flex;
    }
    
    .plan-selector-wrapper {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .plan-select {
        min-width: auto;
        width: 100%;
    }
    
    .plan-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-text {
        display: none;
    }
    
    .header-progress {
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 12px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .plan-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-small {
        padding: 8px 12px;
        font-size: 14px;
        justify-content: center;
    }
}

/* 登录区域 */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card, .import-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.login-card h2 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-weight: 500;
}

.login-card p {
    color: #666;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form h3 {
    text-align: center;
    margin: 0 0 16px 0;
    color: #1976D2;
    font-weight: 500;
}

.login-form input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #1976d2;
}

.form-buttons {
    display: flex;
    gap: 12px;
}

.login-mode .register-mode-btn {
    display: none !important;
}

.register-mode .login-mode-btn {
    display: none !important;
}

.btn-text {
    background: none;
    border: none;
    color: #1976D2;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #1565C0;
}

/* Excel导入区域 */
.import-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.import-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.import-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.import-option {
    text-align: center;
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: border-color 0.3s;
}

.import-option:hover {
    border-color: #1976d2;
}

.import-option h3 {
    color: #0d47a1;
    margin-bottom: 8px;
    font-size: 18px;
}

.import-option p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.import-divider {
    color: #999;
    font-weight: 500;
    position: relative;
}

.import-divider::before,
.import-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #e0e0e0;
}

.import-divider::before {
    left: -30px;
}

.import-divider::after {
    right: -30px;
}

.file-info {
    margin-top: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-info span {
    color: #333;
    font-size: 14px;
    word-break: break-all;
}

.import-actions {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #0D47A1;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(13, 71, 161, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: #1565C0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.4);
}
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 8px 0;
}

.header-bottom {
    padding: 8px 0 16px 0;
    border-top: 1px solid #f0f0f0;
}

.header-title {
    color: #0d47a1;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0d47a1;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.header-progress {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header .container {
        padding: 0 16px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        background: #fff;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: stretch;
        min-width: 150px;
        border: 1px solid #e0e0e0;
    }
    
    .header-actions.show {
        display: flex;
    }
    
    .plan-selector-wrapper {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .plan-select {
        min-width: auto;
        width: 100%;
    }
    
    .plan-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-text {
        display: none;
    }
    
    .header-progress {
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 12px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .plan-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-small {
        padding: 8px 12px;
        font-size: 14px;
        justify-content: center;
    }
}

/* 登录区域 */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card, .import-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.login-card h2 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-weight: 500;
}

.login-card p {
    color: #666;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form h3 {
    text-align: center;
    margin: 0 0 16px 0;
    color: #1976D2;
    font-weight: 500;
}

.login-form input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #1976d2;
}

.form-buttons {
    display: flex;
    gap: 12px;
}

.login-mode .register-mode-btn {
    display: none !important;
}

.register-mode .login-mode-btn {
    display: none !important;
}

.btn-text {
    background: none;
    border: none;
    color: #1976D2;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #1565C0;
}

/* Excel导入区域 */
.import-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.import-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.import-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.import-option {
    text-align: center;
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: border-color 0.3s;
}

.import-option:hover {
    border-color: #1976d2;
}

.import-option h3 {
    color: #0d47a1;
    margin-bottom: 8px;
    font-size: 18px;
}

.import-option p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.import-divider {
    color: #999;
    font-weight: 500;
    position: relative;
}

.import-divider::before,
.import-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #e0e0e0;
}

.import-divider::before {
    left: -30px;
}

.import-divider::after {
    right: -30px;
}

.file-info {
    margin-top: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-info span {
    color: #333;
    font-size: 14px;
    word-break: break-all;
}

.import-actions {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 8px 0;
}

.header-bottom {
    padding: 8px 0 16px 0;
    border-top: 1px solid #f0f0f0;
}

.header-title {
    color: #0d47a1;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0d47a1;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.header-progress {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header .container {
        padding: 0 16px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        background: #fff;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: stretch;
        min-width: 150px;
        border: 1px solid #e0e0e0;
    }
    
    .header-actions.show {
        display: flex;
    }
    
    .plan-selector-wrapper {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .plan-select {
        min-width: auto;
        width: 100%;
    }
    
    .plan-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-text {
        display: none;
    }
    
    .header-progress {
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 12px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .plan-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-small {
        padding: 8px 12px;
        font-size: 14px;
        justify-content: center;
    }
}

/* 登录区域 */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card, .import-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.login-card h2 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-weight: 500;
}

.login-card p {
    color: #666;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form h3 {
    text-align: center;
    margin: 0 0 16px 0;
    color: #1976D2;
    font-weight: 500;
}

.login-form input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #1976d2;
}

.form-buttons {
    display: flex;
    gap: 12px;
}

.login-mode .register-mode-btn {
    display: none !important;
}

.register-mode .login-mode-btn {
    display: none !important;
}

.btn-text {
    background: none;
    border: none;
    color: #1976D2;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #1565C0;
}

/* Excel导入区域 */
.import-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.import-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.import-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.import-option {
    text-align: center;
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: border-color 0.3s;
}

.import-option:hover {
    border-color: #1976d2;
}

.import-option h3 {
    color: #0d47a1;
    margin-bottom: 8px;
    font-size: 18px;
}

.import-option p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.import-divider {
    color: #999;
    font-weight: 500;
    position: relative;
}

.import-divider::before,
.import-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #e0e0e0;
}

.import-divider::before {
    left: -30px;
}

.import-divider::after {
    right: -30px;
}

.file-info {
    margin-top: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-info span {
    color: #333;
    font-size: 14px;
    word-break: break-all;
}

.import-actions {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2196F3;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

.btn-success {
    background: #4CAF50;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    background: #45a049;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.btn-outline {
    background: #ffffff;
    color: #2196F3;
    border: 2px solid #2196F3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: #2196F3;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-danger {
    background: #F44336;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: #D32F2F;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.4);
}

/* 进度概览区 */
.progress-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 32px;
}

.progress-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.progress-circle {
    position: relative;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-fill {
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.5s ease-in-out;
    stroke-linecap: round;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text span {
    font-size: 24px;
    font-weight: 700;
    color: #1976d2;
}

.progress-info h3 {
    color: #0d47a1;
    margin-bottom: 8px;
    font-size: 20px;
}

.progress-info p {
    color: #666;
    font-size: 16px;
}

/* 学习计划区域 */
.plans-section {
    padding: 0 0 40px 0;
}

.section-title {
    color: #0d47a1;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* 学习计划卡片 */
.plan-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.plan-card.completed {
    background: #e3f2fd;
    border-color: #4caf50;
}

.plan-card.today {
    border-color: #1976d2;
    box-shadow: 0 4px 16px rgba(25,118,210,0.2);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.plan-day {
    background: #1976d2;
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.plan-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-icon {
    font-size: 20px;
    color: #4caf50;
}

.plan-title {
    color: #0d47a1;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.plan-date {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

.checkin-time {
    color: #4CAF50;
    font-size: 12px;
    margin: 4px 0;
    font-weight: 500;
}

.plan-content {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.plan-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 16px;
}

.plan-actions {
    display: flex;
    justify-content: flex-end;
}

.checkin-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.checkin-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* 加载提示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
}

.message-toast.show {
    opacity: 1;
}

.message-toast.success {
    background: #4caf50;
}

.message-toast.error {
    background: #f44336;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    color: #0d47a1;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: #f5f5f5;
}

.close-btn .material-icons {
    font-size: 20px;
    color: #666;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    margin-bottom: 16px;
    color: #333;
    line-height: 1.5;
}

.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s;
}

.modal-body textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-danger {
    background: #f44336;
    color: #fff;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部按钮样式 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.plan-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 200px;
}

.plan-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.plan-name-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.plan-name-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.data-source-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.radio-option:hover {
    background-color: #f5f5f5;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.excel-upload-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.plan-item.active {
    border-color: #1976d2;
    background: #e3f2fd;
}

.plan-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.plan-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.plan-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-small .material-icons {
    font-size: 16px;
}

/* Excel预览模态框样式 */
.modal-large .modal-content {
    max-width: 800px;
    width: 95%;
}

.excel-preview-section {
    margin-bottom: 24px;
}

.excel-preview-section h4,
.column-mapping-section h4 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.excel-table-container {
    max-height: 300px;
    overflow: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
}

.excel-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.excel-preview-table th,
.excel-preview-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.excel-preview-table th {
    background: #f5f5f5;
    font-weight: 500;
    color: #333;
    position: sticky;
    top: 0;
}

.excel-preview-table tr:hover {
    background: #f9f9f9;
}

.column-mappings {
    display: grid;
    gap: 16px;
}

.mapping-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mapping-row label {
    min-width: 100px;
    font-weight: 500;
    color: #333;
}

.column-select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s;
}

.column-select:focus {
    outline: none;
    border-color: #1976d2;
}

.column-select option {
    padding: 4px;
}

/* 查看心得模态框样式 */
.notes-info h4 {
    color: #0d47a1;
    margin-bottom: 8px;
    font-size: 18px;
}

.notes-info p {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
}

.notes-content h5 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.notes-display {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    min-height: 100px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.notes-display.empty {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 32px 16px;
}

/* 已完成卡片可点击样式 */
.plan-card.completed {
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card.completed:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
}

.plan-card.completed::after {
    content: '点击查看心得';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.plan-card.completed:hover::after {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header .container {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .header-title {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
    }
    
    .header-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }
    
    .header-progress {
        flex: 1;
        text-align: left;
        font-size: 13px;
    }
    
    .header-actions > .btn {
        flex-shrink: 0;
    }
    
    .progress-overview {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .login-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 16px;
        line-height: 1.2;
        word-break: keep-all;
        white-space: nowrap;
    }
    
    .header .container {
        padding: 8px 12px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .btn-small {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .progress-circle {
        transform: scale(0.8);
    }
    
    .plan-card {
        padding: 16px;
    }
    
    .plan-title {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .header-title {
        font-size: 14px;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .btn-small {
        padding: 3px 6px;
        font-size: 11px;
    }
}
