/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #E6F0FF 0%, #F0E6D2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    font-size: 12px; /* 进一步减小基础字体大小 */
}

/* 学术装饰元素 */
.decoration-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape-1 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(58, 95, 205, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.shape-2 {
    position: absolute;
    bottom: 15%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: conic-gradient(transparent, rgba(224, 191, 184, 0.2), transparent 60%);
    border-radius: 50%;
    animation: rotate 15s infinite linear;
}

/* 新增精致装饰元素 */
.shape-3 {
    position: absolute;
    top: 30%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(255, 182, 193, 0.3), rgba(173, 216, 230, 0.3));
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.shape-4 {
    position: absolute;
    bottom: 30%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.2), rgba(255, 218, 185, 0.2));
    border-radius: 50%;
    animation: float 6s infinite ease-in-out reverse;
}

.shape-5 {
    position: absolute;
    top: 60%;
    left: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, rgba(221, 160, 221, 0.3), rgba(255, 192, 203, 0.3));
    border-radius: 50%;
    animation: rotate 12s infinite linear;
}

/* 微妙的粒子效果 */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(58, 95, 205, 0.4);
    border-radius: 50%;
    animation: particle-float 10s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { top: 70%; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { top: 30%; left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { top: 80%; left: 60%; animation-delay: 8s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-15px);
    }
    75% {
        transform: translateY(-15px) translateX(20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 0.5px solid rgba(224, 224, 224, 0.5);
}

.nav-brand h1 {
    font-size: 1.5rem; /* 减小导航栏标题字体 */
    font-weight: 700;
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #3A5FCD;
}

.btn-primary {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 95, 205, 0.3);
}

.btn-outline {
    border: 1px solid #3A5FCD;
    color: #3A5FCD;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #3A5FCD;
    color: white;
}

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

/* 入口页面容器 */
.landing-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* 英雄区域 */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 80px;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 2.2rem; /* 减小英雄区域标题字体 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem; /* 减小副标题字体 */
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    width: 220px;
    animation: float 6s infinite ease-in-out;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.floating-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.floating-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 功能特性区域 */
.features-section {
    padding: 100px 5%;
    background: rgba(255, 255, 255, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem; /* 减小功能区域标题字体 */
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 认证容器 */
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
}

.auth-container.register-mode .auth-card {
    max-width: 500px;
}

/* 认证卡片 */
.auth-card {
    background: rgba(250, 250, 250, 0.95);
    border-radius: 16px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.03),
        0 12px 36px rgba(0, 0, 0, 0.02);
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    max-width: 360px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 品牌头部 */
.brand-header {
    text-align: center;
    margin-bottom: 28px;
}

.brand-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.brand-header p {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
}

/* 表单样式 */
.auth-form {
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 1.6rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 0.5px solid #E0E0E0;
    background: transparent;
    font-size: 0.9rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-bottom: 0.5px solid #3A5FCD;
}

.input-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -1rem;
    font-size: 0.7rem;
    color: #3A5FCD;
    font-weight: 500;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #3A5FCD, #5a7dff);
    transition: width 0.4s ease;
}

.input-group input:focus ~ .underline {
    width: 100%;
}

/* 认证选项 */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
}

.checkbox-container input {
    width: auto;
    margin-right: 8px;
}

.checkbox-container a {
    color: #3A5FCD;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #3A5FCD;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #2a4bb0;
    text-decoration: underline;
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(58, 95, 205, 0.3);
}

.auth-submit:active {
    transform: translateY(-1px);
}

.auth-submit i {
    font-style: normal;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.auth-submit:hover i {
    transform: translateX(5px);
}

/* 认证页脚 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 0.5px solid #eee;
}

.auth-footer p {
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #3A5FCD;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #2a4bb0;
    text-decoration: underline;
}

/* 仪表盘容器 */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #f8f9fa;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    border-right: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    z-index: 100;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 0.5px solid #eee;
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(58, 95, 205, 0.1);
    color: #3A5FCD;
}

.sidebar-nav .icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 0.5px solid #eee;
}

.logout-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: #f44336;
}

.logout-btn .icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.topbar h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

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

.user-name {
    font-weight: 500;
    color: #333;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3A5FCD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* 内容区域 */
.content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(58, 95, 205, 0.1);
    color: #3A5FCD;
}

.stat-info h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stat-value span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

/* 近期活动 */
.recent-activity {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.recent-activity h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 0.5px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    font-size: 1.5rem;
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(58, 95, 205, 0.1);
    color: #3A5FCD;
}

.activity-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.activity-content p {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #999;
}

/* AI辅导容器 */
.ai-tutor-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
}

.chat-header {
    padding: 20px;
    border-bottom: 0.5px solid rgba(224, 224, 224, 0.5);
}

.chat-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.chat-header p {
    color: #666;
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
    text-align: right;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.sent .message-content {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.received .message-content {
    background: rgba(240, 240, 240, 0.8);
    color: #333;
    border-bottom-left-radius: 5px;
}

.suggestions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-btn {
    background: rgba(58, 95, 205, 0.1);
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #3A5FCD;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: rgba(58, 95, 205, 0.2);
    transform: translateY(-2px);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

.chat-input-container {
    padding: 20px;
    border-top: 0.5px solid rgba(224, 224, 224, 0.5);
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

.input-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 0.5px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-wrapper input:focus {
    border-color: #3A5FCD;
}

.input-wrapper button {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 95, 205, 0.3);
}

/* 智能聊天窗口样式 */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

/* 聊天触发按钮 */
.chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(58, 95, 205, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.chat-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(58, 95, 205, 0.4);
}

.chat-trigger:active {
    transform: translateY(-1px);
}

/* 聊天窗口 */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
}

.chat-window.active {
    display: flex;
}

/* 聊天窗口头部 */
.chat-header {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
}

/* 成就系统样式 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.studycoin-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.coin-icon {
    font-size: 1.5rem;
}

.coin-amount {
    font-size: 1.3rem;
    color: #FFD700;
}

.coin-label {
    color: #666;
}

.section {
    margin-bottom: 40px;
}

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

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.task-item.completed {
    background: rgba(25, 135, 84, 0.05);
    border-color: rgba(25, 135, 84, 0.2);
}

.task-info h5 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #333;
}

.task-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.task-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.progress-bar {
    width: 150px;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3A5FCD, #5a7dff);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
}

.task-status.completed {
    background: #198754;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.achievement-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    background: rgba(58, 95, 205, 0.1);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: #3A5FCD;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #3A5FCD;
    color: white;
}

.achievement-category-section {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.achievement-item:not(.unlocked) {
    opacity: 0.6;
}

.achievement-item.unlocked::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.achievement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-info h5 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #333;
}

.achievement-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.achievement-points {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.achievement-points::before {
    content: "🪙";
}

/* 成就解锁弹窗 */
.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.achievement-content {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: #333;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.achievement-content::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-100%, -100%);
    }
    100% {
        transform: rotate(30deg) translate(100%, 100%);
    }
}

.achievement-content .achievement-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.achievement-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.achievement-content p {
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.reward-coins {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.reward-coins::before {
    content: "🪙";
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* 粒子效果容器 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 10px #FFA500;
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .studycoin-display {
        width: 100%;
        justify-content: center;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .task-progress {
        width: 100%;
        align-items: flex-start;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .category-achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-categories {
        justify-content: center;
    }
    
    .achievement-popup {
        width: 90%;
    }
}

    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

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

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInUp 0.3s ease-out;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.message-avatar.bot {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
}

.message-avatar.user {
    background: linear-gradient(135deg, #E6F0FF 0%, #F0E6D2 100%);
    color: #3A5FCD;
}

.message-content {
    max-width: 250px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-content.bot {
    background: rgba(58, 95, 205, 0.1);
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-content.user {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

/* 快捷问题模板 */
.quick-questions {
    padding: 15px 20px;
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    background: rgba(248, 248, 248, 0.5);
}

.quick-questions h4 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(58, 95, 205, 0.2);
    color: #3A5FCD;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.quick-btn:hover {
    background: rgba(58, 95, 205, 0.1);
    border-color: rgba(58, 95, 205, 0.4);
    transform: translateY(-1px);
}

/* 输入区域 */
.chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    background: rgba(255, 255, 255, 0.8);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1px solid rgba(224, 224, 224, 0.8);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.chat-input:focus {
    outline: none;
    border-color: rgba(58, 95, 205, 0.5);
    box-shadow: 0 0 0 3px rgba(58, 95, 205, 0.1);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 95, 205, 0.3);
}

.chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 加载动画 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(58, 95, 205, 0.1);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 60px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3A5FCD;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        height: 400px;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        position: sticky;
        top: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
    }
    
    .brand-header h1 {
        font-size: 2rem;
    }
    
    .auth-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .auth-card {
        padding: 25px 20px;
    }
    
    .brand-header h1 {
        font-size: 1.8rem;
    }
    
    .input-group {
        margin-bottom: 1.5rem;
    }
    
    .floating-card {
        width: 180px;
        padding: 15px;
    }
    
    .topbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .activity-item {
        flex-direction: column;
    }
    
    .activity-icon {
        margin-bottom: 15px;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -20px;
        bottom: 70px;
    }
    
    .chat-trigger {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .message-content {
        max-width: 200px;
    }
}

/* AI辅导页面样式 */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ai-feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ai-feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.ai-feature-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.feature-stats {
    background: rgba(58, 95, 205, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #3A5FCD;
    font-weight: 500;
}

.ai-chat-section {
    margin-bottom: 30px;
}

.chat-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.ai-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.chat-minimize:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(248, 248, 248, 0.5);
}

.welcome-message h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.welcome-message p {
    color: #666;
    margin-bottom: 15px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-action-btn {
    background: rgba(58, 95, 205, 0.1);
    border: 1px solid rgba(58, 95, 205, 0.3);
    color: #3A5FCD;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.quick-action-btn:hover {
    background: rgba(58, 95, 205, 0.2);
    transform: translateY(-1px);
}

.action-icon {
    font-size: 1.1rem;
}

.chat-input-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(224, 224, 224, 0.5);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

#messageInput {
    flex: 1;
    border: 1px solid rgba(224, 224, 224, 0.8);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

#messageInput:focus {
    outline: none;
    border-color: rgba(58, 95, 205, 0.5);
    box-shadow: 0 0 0 3px rgba(58, 95, 205, 0.1);
}

#sendButton {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#sendButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 95, 205, 0.3);
}

.input-tips {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.ai-usage-stats {
    margin-top: 30px;
}

.ai-usage-stats h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stats-cards .stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.stats-cards .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-cards .stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stats-cards .stat-info h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stats-cards .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3A5FCD;
}

.stats-cards .stat-value span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

/* 消息样式优化 */
.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeInUp 0.3s ease-out;
}

.message.sent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.received .message-content {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.sent .message-content {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(58, 95, 205, 0.1);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 60px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3A5FCD;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ai-feature-card {
        padding: 20px;
    }
    
    .ai-feature-card .feature-icon {
        font-size: 2rem;
    }
    
    .ai-feature-card h3 {
        font-size: 1.1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .ai-avatar {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .ai-info h3 {
        font-size: 1rem;
    }
    
    .ai-info p {
        font-size: 0.8rem;
    }
    
    .message-content {
        max-width: 85%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .detail-btn {
        width: 100%;
        margin-top: 15px;
    }
}

/* 详情按钮样式 */
.detail-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.detail-btn:active {
    transform: translateY(0);
}

/* 学习计划页面样式 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.header-left h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.header-left p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #3A5FCD 0%, #5a7dff 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(58, 95, 205, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 95, 205, 0.4);
}

.btn-outline {
    border: 1px solid #3A5FCD;
    color: #3A5FCD;
    background: white;
}

.btn-outline:hover {
    background: #3A5FCD;
    color: white;
    transform: translateY(-2px);
}

.btn-mini {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 10px;
    margin-left: 8px;
    padding: 2px 6px;
    transition: all 0.3s ease;
}

.btn-mini:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* 双栏布局 */
.main-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* AI建议面板 */
.ai-suggestions-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h4 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.recommendation-info {
    font-size: 0.85rem;
    opacity: 0.8;
}

.suggestions-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    align-items: start;
}

.daily-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.summary-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.summary-item .value {
    font-weight: 600;
    font-size: 0.95rem;
}

.fatigue-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
}

.suggested-order {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    min-height: 120px;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

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

.suggestion-time {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.suggestion-reason {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 快速操作面板 */
.quick-actions {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.quick-actions h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    background: rgba(58, 95, 205, 0.1);
    border-color: #3A5FCD;
    transform: translateX(5px);
}

.action-icon {
    font-size: 1.2rem;
}

.action-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* 筛选面板 */
.filter-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.filter-panel h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3A5FCD;
    box-shadow: 0 0 0 3px rgba(58, 95, 205, 0.1);
}

/* 计划网格 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.plan-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.add-plan-card {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-left: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.add-plan-card:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.add-plan-content {
    text-align: center;
    color: #666;
}

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

.plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.plan-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.plan-status.pending {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.plan-status.in_progress {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.plan-status.completed {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.plan-status.overdue {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.plan-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

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

.plan-stat-number {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
}

.plan-stat-label {
    font-size: 11px;
    color: #666;
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

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

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

/* 优先级指示器 */
.plan-card.high-priority {
    border-left-color: #dc3545;
}

.plan-card.medium-priority {
    border-left-color: #ffc107;
}

.plan-card.low-priority {
    border-left-color: #28a745;
}

.plan-card.ai-recommended::before {
    content: "🤖 AI推荐";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.plan-card.ai-recommended {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(255, 255, 255, 0.97) 100%);
}

/* 旧的plan-item样式已被新的plan-card样式替代 */

.plan-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin: 0;
    color: #333;
}

.plan-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.plan-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* 番茄钟样式 */
.pomodoro-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.pomodoro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pomodoro-header h4 {
    font-size: 1.4rem;
    margin: 0;
    color: #333;
}

.ai-recommendation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 模式选择 */
.mode-selection {
    margin-bottom: 30px;
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.mode-tab {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-tab:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.mode-tab.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.mode-icon {
    font-size: 1.2rem;
}

.mode-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.mode-timing {
    font-size: 0.75rem;
    color: #666;
}

.mode-description {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    background: rgba(102, 126, 234, 0.05);
    padding: 10px;
    border-radius: 8px;
}

/* 自定义时间设置 */
.custom-timer-settings {
    margin-top: 15px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.custom-time-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-input-group label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.time-input-group input {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 16px;
    padding: 8px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.time-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* 情绪建议样式 */
.emotion-recommendations {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.emotion-suggestion {
    background: rgba(76, 175, 80, 0.2);
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    color: #2E7D32;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.plan-recommendations {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* 计时器圆环 */
.pomodoro-timer {
    text-align: center;
    margin-bottom: 30px;
}

.timer-display {
    margin-bottom: 25px;
}

.timer-circle {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 200px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 2;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.timer-status {
    font-size: 1rem;
    color: #666;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 1.1rem;
}

/* 会话信息 */
.session-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.session-round, .session-type {
    text-align: center;
}

.session-info .label {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.session-info .value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.pomodoro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    background: rgba(58, 95, 205, 0.05);
    border-radius: 15px;
    padding: 20px;
}

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

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3A5FCD;
}

/* 情绪打卡样式 */
.emotion-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.emotion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.emotion-header h4 {
    font-size: 1.3rem;
    margin: 0;
    color: #333;
}

.emotion-streak {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.streak-label {
    opacity: 0.8;
}

.streak-count {
    font-weight: 600;
}

.emotion-prompt {
    margin-bottom: 25px;
    color: #666;
    font-size: 1rem;
    text-align: center;
}

.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.emotion-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.emotion-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.emotion-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.emotion-icon {
    font-size: 2.5rem;
    margin-bottom: 2px;
}

.emotion-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.emotion-desc {
    font-size: 0.75rem;
    color: #666;
    opacity: 0.8;
}

.emotion-note-section {
    margin-bottom: 20px;
}

.note-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.emotion-note-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.emotion-note-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.emotion-suggestion {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7e6 100%);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.suggestion-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.suggestion-text {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.4;
}

.emotion-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalOpen 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3A5FCD;
    box-shadow: 0 0 0 3px rgba(58, 95, 205, 0.1);
}

.btn-block {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 300px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-right {
        justify-content: flex-start;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plans-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .filter-controls {
        flex-direction: row;
        gap: 10px;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .timer {
        font-size: 3rem;
    }
    
    .pomodoro-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .emotion-options {
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        margin: 2.5% auto;
    }
}

@media (max-width: 480px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .filter-controls {
        flex-direction: column;
    }
}

/* 分组卡片区 */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.pomodoro-info h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.pomodoro-points {
    margin: 0 0 12px 18px;
    color: #555;
    line-height: 1.6;
}

.pomodoro-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mode-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(58, 95, 205, 0.08);
    color: #3A5FCD;
    border: 1px solid rgba(58, 95, 205, 0.2);
}

/* 筛选条 */
.filter-bar {
    margin: 10px 0 15px 0;
    display: flex;
    justify-content: flex-end;
}

.filter-bar .filter-controls {
    flex-direction: row;
    gap: 10px;
}

/* AI推荐增强样式 */
.ai-recommendation.ai-powered {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-recommendation.ai-powered::before {
    content: "🤖 ";
    font-size: 1em;
}

.ai-recommendation.ai-powered .recommendation-text {
    font-weight: 500;
}

 
 / *   wƋaSGr7h_  * / 
 . c a r d - i t e m   { 
         b a c k g r o u n d :   w h i t e ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         p a d d i n g :   2 0 p x ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
         b o x - s h a d o w :   0   2 p x   8 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 2 s   e a s e ,   b o x - s h a d o w   0 . 2 s   e a s e ; 
 } 
 
 . c a r d - i t e m : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 6 p x   r g b a ( 0 , 0 , 0 , 0 . 1 5 ) ; 
 } 
 
 . c a r d - h e a d e r   { 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         p a d d i n g - b o t t o m :   1 0 p x ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   # e e e ; 
 } 
 
 . c a r d - t y p e   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 6 6 7 e e a   0 % ,   # 7 6 4 b a 2   1 0 0 % ) ; 
         c o l o r :   w h i t e ; 
         p a d d i n g :   4 p x   1 2 p x ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         f o n t - s i z e :   1 2 p x ; 
         f o n t - w e i g h t :   5 0 0 ; 
 } 
 
 . c a r d - s u m m a r y   { 
         f o n t - s i z e :   1 6 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
         c o l o r :   # 3 3 3 ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         l i n e - h e i g h t :   1 . 5 ; 
 } 
 
 . c a r d - s e c t i o n   { 
         m a r g i n - b o t t o m :   1 2 p x ; 
 } 
 
 . c a r d - s e c t i o n   s t r o n g   { 
         c o l o r :   # 4 9 5 0 5 7 ; 
         f o n t - s i z e :   1 4 p x ; 
 } 
 
 . c a r d - s e c t i o n   u l   { 
         m a r g i n :   8 p x   0   0   0 ; 
         p a d d i n g - l e f t :   2 0 p x ; 
 } 
 
 . c a r d - s e c t i o n   l i   { 
         m a r g i n - b o t t o m :   4 p x ; 
         c o l o r :   # 6 c 7 5 7 d ; 
         f o n t - s i z e :   1 4 p x ; 
         l i n e - h e i g h t :   1 . 4 ; 
 } 
 
 . c a r d - c o n t e n t   { 
         c o l o r :   # 4 9 5 0 5 7 ; 
         l i n e - h e i g h t :   1 . 6 ; 
 }  
 