/* 效率页面样式 */

/* 主要布局 */
.efficiency-main {
    min-height: 100vh;
    background: url('../images/back.png') center/cover no-repeat;
    padding: 0;
}

/* 页面标题区域 */
.efficiency-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.efficiency-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.efficiency-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 300;
}

/* 翻页时钟区域 */
.flip-clock-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.8);
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.5s ease;
}

.flip-clock-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    border-radius: 0;
}

.flip-clock-section.fullscreen .flip-clock {
    transform: scale(clamp(1.2, 2vw, 2));
    gap: clamp(20px, 4vw, 40px);
}

.flip-clock-section.fullscreen .flip-card {
    width: min(120px, 15vw);
    height: min(160px, 20vw);
}

.flip-clock-section.fullscreen .flip-card-front,
.flip-clock-section.fullscreen .flip-card-back {
    font-size: clamp(3rem, 8vw, 5rem);
}

.flip-clock-section.fullscreen .time-group {
    gap: clamp(8px, 2vw, 16px);
}

.flip-clock-section.fullscreen .section-title {
    color: #ffffff;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 50px;
}

.flip-clock-section.fullscreen .time-separator {
    color: #ffffff;
    font-size: clamp(3rem, 8vw, 6rem);
}

.flip-clock-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.flip-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 20px);
    margin: 30px 0;
    transition: transform 0.5s ease;
}

.time-group {
    display: flex;
    gap: clamp(4px, 1vw, 8px);
    position: relative;
}

.time-group::after {
    content: attr(data-label);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-card {
    width: min(60px, 8vw);
    height: min(80px, 10vw);
    perspective: 1000px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipping .flip-card-inner {
    transform: rotateX(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.flip-card-front::before,
.flip-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0;
}

.flip-card-back {
    transform: rotateX(180deg);
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
}

.time-separator {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: #34495e;
    display: flex;
    align-items: center;
    animation: blink 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 全屏切换按钮 */
.fullscreen-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.fullscreen-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.fullscreen-toggle i {
    font-size: 1.2rem;
    color: #34495e;
}

.flip-clock-section.fullscreen .fullscreen-toggle {
    background: rgba(255, 255, 255, 0.2);
    top: 30px;
    right: 30px;
}

.flip-clock-section.fullscreen .fullscreen-toggle i {
    color: #ffffff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
    .flip-clock {
        gap: clamp(8px, 3vw, 15px);
        margin: 20px 0;
    }
    
    .flip-card {
        width: min(50px, 12vw);
        height: min(65px, 15vw);
    }
    
    .flip-card-front,
    .flip-card-back {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
    
    .time-separator {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin: 0 5px;
    }
    
    .time-group::after {
        font-size: 0.7rem;
        bottom: -15px;
    }
}

@media (max-width: 480px) {
    .flip-clock {
        gap: clamp(5px, 4vw, 12px);
        flex-wrap: wrap;
    }
    
    .flip-card {
        width: min(40px, 15vw);
        height: min(55px, 18vw);
    }
    
    .flip-card-front,
    .flip-card-back {
        font-size: clamp(1rem, 6vw, 1.8rem);
    }
    
    .time-separator {
        font-size: clamp(1.2rem, 7vw, 2rem);
        margin: 0 3px;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

@media (min-width: 1200px) {
    .flip-clock-section.fullscreen .flip-card {
        width: min(150px, 12vw);
        height: min(200px, 16vw);
    }
    
    .flip-clock-section.fullscreen .flip-card-front,
    .flip-clock-section.fullscreen .flip-card-back {
        font-size: clamp(4rem, 6vw, 6rem);
    }
}

/* 功能区域布局 */
.efficiency-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 代做清单样式 */
.todo-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.todo-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#todo-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

#todo-input:focus {
    border-color: #74b9ff;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
}

.add-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.4);
}

.todo-lists {
    space-y: 20px;
}

.active-todos,
.completed-todos {
    margin-bottom: 25px;
}

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

.toggle-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(127, 140, 141, 0.1);
    transform: scale(1.1);
}

.toggle-btn.rotated {
    transform: rotate(180deg);
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-list.collapsed {
    display: none;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

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

.todo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.todo-item.completed {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.2);
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #7f8c8d;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #00b894;
}

.todo-text {
    flex: 1;
    font-size: 1rem;
    color: #2c3e50;
    word-break: break-word;
}

.delete-btn {
    background: none;
    border: none;
    color: #e17055;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.delete-btn:hover {
    background: rgba(225, 112, 85, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

/* 英语卡片样式 */
.flashcard-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.flashcard-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.control-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #34495e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.control-btn:hover,
.control-btn.active {
    border-color: #74b9ff;
    background: #74b9ff;
    color: white;
    transform: translateY(-2px);
}

.flashcard-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.flashcard {
    width: 100%;
    max-width: 350px;
    height: 250px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flashcard-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: rotateY(180deg);
}

.word-content,
.meaning-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.word {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.phonetic {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    margin: 0;
}

.meaning {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.example {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.star-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.star-btn.starred {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
}

.flip-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #34495e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flip-btn:hover {
    background: #74b9ff;
    color: white;
    border-color: #74b9ff;
    transform: scale(1.1) rotate(180deg);
}

.flashcard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 350px;
}

.nav-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    color: #34495e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.nav-btn:hover {
    border-color: #74b9ff;
    background: #74b9ff;
    color: white;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.card-counter {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .efficiency-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .flip-clock {
        gap: 10px;
    }
    
    .flip-card {
        width: 45px;
        height: 60px;
    }
    
    .flip-card-front,
    .flip-card-back {
        font-size: 1.5rem;
    }
    
    .time-separator {
        font-size: 2rem;
    }
    
    .efficiency-title {
        font-size: 2rem;
    }
    
    .flashcard {
        height: 200px;
    }
    
    .word {
        font-size: 1.5rem;
    }
    
    .meaning {
        font-size: 1.2rem;
    }
    
    .flashcard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .flip-clock-section,
    .todo-section,
    .flashcard-section {
        margin: 10px;
        padding: 20px;
    }
    
    .efficiency-hero {
        padding: 40px 15px 30px;
    }
    
    .flip-card {
        width: 35px;
        height: 50px;
    }
    
    .flip-card-front,
    .flip-card-back {
        font-size: 1.2rem;
    }
    
    .flashcard {
        height: 180px;
    }
    
    .flashcard-front,
    .flashcard-back {
        padding: 20px;
    }
}