/* 智能提醒系统样式 - 统一布局版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 统一导航栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    color: white;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
}

.header h1 a {
    color: white;
    text-decoration: none;
}

.header h1 a:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin: 0 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-actions span {
    margin-right: 10px;
    color: white;
}

/* 主要内容区域 */
main {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 欢迎页面 */
.welcome {
    text-align: center;
    padding: 40px 20px;
}

.welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.welcome p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 1rem;
}

.cta {
    margin-top: 40px;
}

.cta .btn {
    margin: 0 10px;
}

/* 仪表盘 */
.dashboard {
    padding: 20px;
}

.dashboard h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.stats-card, .reminder-form, .reminders-list {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.stats-card h3, .reminder-form h3, .reminders-list h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* 提醒列表 */
.reminder-items {
    list-style: none;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #4CAF50;
}

.reminder-title {
    flex: 1;
}

.reminder-time {
    margin: 0 20px;
    color: #666;
}

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

/* 认证页面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #2196F3;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 消息提示 */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.message.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.message.success {
    background: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.message.error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background: #0b7dda;
    transform: translateY(-2px);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .nav-links {
        justify-content: center;
        margin: 10px 0;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    main {
        padding: 20px;
    }
    
    .welcome h2 {
        font-size: 2rem;
    }
    
    .auth-box {
        padding: 20px;
    }
    
    .reminder-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reminder-time {
        margin: 0;
    }
    
    .reminder-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .cta .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}
