/* 题型技巧模块样式 */

/* 页面标题样式 */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.1" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.5;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 题型导航样式 */
.skills-nav {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.skills-tab {
    padding: 12px 24px;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skills-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.skills-tab:hover::before {
    left: 100%;
}

.skills-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.skills-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 技能内容区域 */
.skills-content {
    padding: 60px 0;
    display: none;
    animation: fadeIn 0.5s ease;
}

.skills-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-content h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

.skills-content h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.skills-section {
    margin-bottom: 60px;
}

.skills-section h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-section h4 i {
    color: var(--primary-color);
}

/* 策略卡片样式 */
.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.strategy-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.strategy-card h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.strategy-card h5 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.strategy-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 技巧卡片样式 */
.tip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.tip-card h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card ul li {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.tip-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 实例分析卡片 */
.example-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.example-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.example-card h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.example-card h5 i {
    color: var(--primary-color);
}

/* 完形填空样式 */
.cloze-passage {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.cloze-passage p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cloze-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.option {
    padding: 10px 20px;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.option:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.option.correct {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.option.incorrect {
    background-color: #f44336;
    color: white;
    border-color: #f44336;
}

.cloze-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.cloze-feedback.correct {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.cloze-feedback.incorrect {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

/* 阅读理解样式 */
.reading-passage {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.reading-passage p {
    line-height: 1.8;
    color: var(--text-color);
}

.reading-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.question p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.question .options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reading-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

/* 补全对话样式 */
.dialogue-example {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.dialogue {
    margin-bottom: 20px;
}

.dialogue-line {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.speaker {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 50px;
}

.speech {
    background-color: var(--card-background);
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    position: relative;
}

.speech::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--border-color);
}

.speech::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 13px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid var(--card-background);
}

.dialogue-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dialogue-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

/* 句型转换样式 */
.transformation-example {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.transformation-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.transformation-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.original-sentence {
    margin-bottom: 10px;
    font-style: italic;
    color: var(--text-secondary);
}

.transformation-requirement {
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.transformation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.transformation-feedback {
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

/* 学习进度卡片 */
.skills-progress {
    padding: 40px 0;
    background-color: var(--background-light);
}

.skills-progress h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.progress-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.progress-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.progress-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--background-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .skills-tabs {
        gap: 10px;
        padding: 15px;
    }
    
    .skills-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .skills-content {
        padding: 40px 0;
    }
    
    .skills-content h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .strategy-cards,
    .tip-cards {
        grid-template-columns: 1fr;
    }
    
    .option-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .option-group .options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .dialogue-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .speaker {
        min-width: auto;
    }
    
    .speech {
        width: 100%;
    }
    
    .speech::before,
    .speech::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .skills-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .skills-section h4 {
        font-size: 1.3rem;
    }
    
    .strategy-card,
    .tip-card,
    .example-card {
        padding: 20px;
    }
    
    .cloze-passage,
    .reading-passage,
    .dialogue-example,
    .transformation-example {
        padding: 20px;
    }
}
