/* 资源详情页样式 */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .container {
        grid-template-columns: 3fr 1fr;
    }
}

.resource-breadcrumb {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.resource-breadcrumb a {
    color: var(--text-light);
}

.resource-breadcrumb a:hover {
    color: var(--primary-color);
}

.resource-detail {
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 15px var(--shadow-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

.resource-detail h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.resource-intro {
    margin-bottom: 2rem;
}

.resource-banner {
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-icon {
    font-size: 5rem;
}

.resource-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.content-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.content-section p, .content-section ul {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.content-section ul {
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* 原则卡片 */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.principle-card {
    background-color: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.principle-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 技巧样式 */
.technique-item {
    margin-bottom: 2.5rem;
}

.technique-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.technique-example {
    background-color: var(--background-alt);
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--accent-color);
}

/* 练习样式 */
.exercise-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.exercise-card {
    background-color: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.exercise-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.exercise-btn {
    margin-top: 1rem;
}

.exercise-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 动作区域 */
.resource-action {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-alt);
    border-radius: 8px;
    margin-top: 3rem;
}

.action-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
}

.download-btn:before {
    content: "⬇️";
    margin-right: 0.5rem;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 侧边栏 */
.resource-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-section {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 0.8rem;
}

.sidebar-links a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.sidebar-cta h3 {
    margin-bottom: 1rem;
}

.sidebar-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.sidebar-cta .btn-small {
    background-color: white;
    color: var(--primary-color);
}

.sidebar-cta .btn-small:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* 内联链接 */
.inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.inline-link:hover {
    color: var(--secondary-color);
}

/* 资源详情页面样式 */
.resource-content {
    display: flex;
    gap: 30px;
    margin: 30px auto;
    max-width: 1200px;
}

.resource-image-large {
    flex: 0 0 280px;
    height: 280px;
    background-color: #f5f7ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.resource-icon-large {
    font-size: 80px;
}

.article {
    flex: 1;
}

.article h3 {
    font-size: 22px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.article p {
    line-height: 1.7;
    color: #444;
}

.article ul, .article ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.article li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article strong {
    font-weight: 600;
    color: #333;
}

.downloadable-resource {
    background-color: #f5f9ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.downloadable-resource h3 {
    margin-top: 0;
    font-size: 18px;
}

.downloadable-resource .btn {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.next-steps {
    margin-top: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.next-steps h3 {
    margin-top: 0;
    font-size: 18px;
}

.next-steps ul {
    padding-left: 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.tool-item h4 {
    margin-top: 0;
    color: #333;
}

.question-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.question-type {
    background-color: #f9f9fa;
    border-radius: 8px;
    padding: 15px;
}

.question-type h4 {
    margin-top: 0;
    color: #4a6bdf;
}

.question-obstacles {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.question-obstacles th,
.question-obstacles td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.question-obstacles th {
    background-color: #f5f7ff;
    font-weight: 500;
}

.question-obstacles tr:nth-child(even) {
    background-color: #fafafa;
}

.question-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.template {
    background-color: #f5f9ff;
    border-radius: 8px;
    padding: 15px;
}

.template h4 {
    margin-top: 0;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .resource-content {
        flex-direction: column;
    }
    
    .resource-image-large {
        margin: 0 auto 20px;
    }
    
    .question-types, 
    .question-templates,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* 引用动画样式 */
.quote-animation {
    font-size: 1.2em;
    font-style: italic;
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeInLeft 1.2s ease-out;
    transition: transform 0.3s, box-shadow 0.3s;
}

.quote-animation:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.quote-author {
    display: block;
    margin-top: 8px;
    font-weight: 500;
    text-align: right;
    color: #2980b9;
    animation: fadeIn 1.5s ease-out 0.7s forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 检查文件是否存在，如果不存在则创建一个基本样式文件 */

/* 资源详情页面样式 */
.page-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.resource-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.resource-detail {
    flex: 1;
    min-width: 65%;
    padding-right: 2rem;
}

.resource-sidebar {
    flex: 0 0 28%;
    min-width: 250px;
    margin-top: 1rem;
}

.resource-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.resource-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.resource-breadcrumb a:hover {
    text-decoration: underline;
}

.resource-intro {
    margin-bottom: 2rem;
}

.resource-banner {
    background-color: #f0f7ff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.resource-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.resource-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.principle-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.principle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.principle-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #444;
}

.principle-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.technique-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.technique-item:last-child {
    border-bottom: none;
}

.technique-item h3 {
    margin-top: 0;
    color: #444;
}

.technique-example {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.exercise-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.exercise-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.exercise-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #444;
    font-size: 1.1rem;
}

.exercise-card p {
    margin-bottom: 1rem;
    color: #666;
}

.btn-small {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #4a89dc;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-small:hover {
    background-color: #3a71c2;
}

.exercise-btn {
    display: block;
    text-align: center;
}

.resource-action {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.resource-action h3 {
    margin-top: 0;
    color: #333;
}

.action-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid #4a89dc;
    border-radius: 6px;
    color: #4a89dc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #4a89dc;
    color: white;
}

.download-btn {
    background-color: #4a89dc;
    color: white;
}

.download-btn:hover {
    background-color: #3a71c2;
    border-color: #3a71c2;
}

.sidebar-section {
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.8rem;
}

.sidebar-links li:last-child {
    margin-bottom: 0;
}

.sidebar-links a {
    color: #4a89dc;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: #3a71c2;
}

.sidebar-cta {
    background-color: #eff6ff;
    text-align: center;
}

.sidebar-cta p {
    margin-bottom: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .resource-content {
        flex-direction: column;
    }
    
    .resource-detail {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

/* 文章页样式 */
.resource-image-large {
    text-align: center;
    margin-bottom: 2rem;
}

.resource-icon-large {
    font-size: 6rem;
    background-color: #f5f5f5;
    width: 150px;
    height: 150px;
    line-height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article ul, .article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article li {
    margin-bottom: 0.5rem;
}

.next-steps {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2.5rem;
}

.next-steps h3 {
    margin-top: 0;
}

.next-steps ul {
    margin-bottom: 0;
}

/* 视频相关样式 */
.video-container {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container video {
    display: block;
    width: 100%;
    background-color: #000;
}

.video-container h4 {
    margin: 0;
    padding: 1rem;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1.1rem;
}

.video-caption {
    margin: 0;
    padding: 0.8rem 1rem;
    background-color: #f5f5f5;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid #eee;
} 