﻿/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 完全取消所有超链接的下划线（包括悬停状态） */
a,
a:hover,
a:active,
a:focus,
a:visited {
    text-decoration: none !important;
}

/* 确保标签内的链接也没有下划线 */
.tag a,
.tag a:hover,
.tag a:active,
.tag a:focus,
.tag a:visited {
    text-decoration: none !important;
}

/* 确保文章内容中的链接也没有下划线 */
.article-content a,
.article-content a:hover,
.article-content a:active,
.article-content a:focus,
.article-content a:visited {
    text-decoration: none !important;
}

/* 移除文章内容中链接的蓝色，使用默认颜色 */
.article-content a,
.article-content a:link,
.article-content a:visited,
.article-content a:hover,
.article-content a:active,
.article-content a:focus {
    color: inherit !important;
}

/* 确保所有链接状态都没有下划线 */
a:link,
a:-webkit-any-link {
    text-decoration: none !important;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片通用样式 */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* 顶部图片卡片样式 */
.top-card {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.05);
}

.article-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    text-align: center;
}

.title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.small-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.article-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    margin-bottom: 20px;
}

.combined-info {
    background-color: rgba(55, 55, 55, 0.80);
    border-radius: 10px;
    padding: 15px 20px 25px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.separator {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
    height: auto;
}

.info-section {
    flex: 1;
}

.price-section .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-section .price-item:last-child {
    border-bottom: none;
}

.resource-section .resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-section .resource-item:last-child {
    border-bottom: none;
}

.user-type, .resource-label {
    font-weight: 400;
    color: #f0f0f0;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.price, .resource-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.price {
    color: #ff6b6b;
}

.price-item.recommended .price {
    color: #51cf66;
}

.resource-value {
    color: #3498db;
}

/* 按钮容器样式（保留居中，内部由bottom-main.css的按钮组接管） */
.download-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

/* 原下载按钮样式已移除，因为按钮由JS动态生成，使用bottom-main.css中的按钮组样式 */

/* 文章内容卡片样式 */
.content-card {
    padding: 20px 40px 20px;
    position: relative;
}

.tab-header {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.tab-button {
    padding: 8px 20px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.tab-button i {
    margin-right: 6px;
    font-size: 0.95rem;
}

.tab-button.active {
    color: #3498db;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px 3px 0 0;
}

.tab-button:hover {
    color: #3498db;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 常见问题样式 */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.faq-question {
    padding: 16px 20px;
    background-color: #f9f9f9;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.faq-question:hover {
    background-color: #f0f7ff;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #3498db;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #e6f7ff;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.faq-answer.active {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 10px;
    line-height: 1.6;
    width: 100%;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* 文章内容样式 */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
    display: block;
}

.article-content * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    max-width: 100% !important;
}

.article-content a {
    word-break: break-all !important;
}

.article-content pre,
.article-content code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-x: auto !important;
    display: block;
    width: 100%;
    max-width: 100%;
}

.article-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    word-break: break-all !important;
}

.article-content td,
.article-content th {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.article-content span,
.article-content div,
.article-content p,
.article-content li {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

.article-content h2 {
    color: #2c3e50;
    margin: 30px 0 15px;
    font-size: 1.8rem;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.article-content h3 {
    color: #34495e;
    margin: 25px 0 12px;
    font-size: 1.5rem;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.article-content blockquote {
    border-left: 4px solid #3498db;
    background-color: #f9f9f9;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.article-content ul, .article-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* 文章底部标签区域样式 */
.article-tags-section {
    margin-top: 15px;
    padding-top: 10px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #f0f8ff;
    color: #3498db;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.8rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid #e1f0ff;
}

.tag:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* VIP弹窗和遮罩层样式 */
.vip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.vip-popup {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease;
    position: relative;
    z-index: 10000;
}

.vip-popup-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vip-popup-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.vip-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.vip-popup-close:hover {
    transform: scale(1.2);
}

.vip-popup-content {
    padding: 30px 25px;
}

.vip-message {
    text-align: center;
    margin-bottom: 30px;
}

.vip-message i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

.vip-message p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.vip-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.vip-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.vip-btn i {
    font-size: 1.2rem;
}

.vip-btn-paid {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.vip-btn-paid:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(39, 174, 96, 0.3);
}

.vip-btn-close {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.vip-btn-close:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(192, 57, 43, 0.3);
}

.vip-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

.vip-loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 30px;
    animation: slideUp 0.5s ease;
}

.loading-spinner {
    margin-bottom: 25px;
}

.loading-spinner i {
    font-size: 3.5rem;
    color: #3498db;
}

.loading-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.loading-text {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.5;
    opacity: 0.9;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 20px;
    }
    
    .top-card {
        height: 350px;
    }
    
    .article-title-overlay {
        padding: 20px;
    }
    
    .title-content {
        padding: 10px;
        max-width: 100%;
    }
    
    .article-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .small-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
        max-width: 90%;
    }
    
    .combined-info {
        max-width: 100%;
        padding: 12px 15px 20px;
    }
    
    .info-inner {
        gap: 15px;
    }
    
    .separator {
        margin: 0 8px;
    }
    
    .download-btn-container {
        margin-top: 15px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .tab-button {
        padding: 7px 12px;
        font-size: 0.9rem;
    }
    
    .tab-button i {
        font-size: 0.9rem;
        margin-right: 5px;
    }
    
    .tab-header {
        margin-bottom: 12px;
    }
    
    .faq-question {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
    
    .faq-answer.active {
        padding: 18px;
        font-size: 0.85rem;
    }
    
    .article-meta, .article-content {
        padding: 0;
    }
    
    .article-tags-section {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .tag {
        padding: 5px 12px;
        font-size: 0.75rem;
        border-radius: 16px;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-content pre,
    .article-content code {
        font-size: 0.9rem;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .top-card {
        height: 320px;
    }
    
    .article-title-overlay {
        padding: 15px;
    }
    
    .title-content {
        padding: 5px;
    }
    
    .article-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .small-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
        border-width: 3px;
        max-width: 85%;
    }
    
    .combined-info {
        padding: 10px 12px 18px;
        background-color: rgba(55, 55, 55, 0.85);
    }
    
    .info-inner {
        gap: 10px;
    }
    
    .separator {
        margin: 0 6px;
    }
    
    .download-btn-container {
        margin-top: 12px;
    }
    
    .user-type, .resource-label {
        font-size: 0.75rem;
        font-weight: 300;
    }
    
    .price, .resource-value {
        font-size: 0.8rem;
        font-weight: 400;
    }
    
    .content-card {
        padding: 12px;
    }
    
    .tab-button {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 6px 4px;
        font-size: 0.85rem;
    }
    
    .tab-button i {
        font-size: 0.85rem;
        margin-right: 4px;
    }
    
    .tab-header {
        margin-bottom: 10px;
    }
    
    .faq-question {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .faq-answer.active {
        padding: 16px;
        font-size: 0.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-item {
        margin-bottom: 10px;
    }
    
    .article-tags-section {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 0.7rem;
        border-radius: 14px;
    }
}

@media (max-width: 360px) {
    .top-card {
        height: 300px;
    }
    
    .small-image {
        width: 70px;
        height: 70px;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .combined-info {
        padding: 8px 10px 15px;
    }
    
    .info-inner {
        gap: 8px;
        flex-direction: column;
    }
    
    .separator {
        display: none;
    }
    
    .download-btn-container {
        margin-top: 10px;
    }
    
    .user-type, .resource-label {
        font-size: 0.7rem;
    }
    
    .price, .resource-value {
        font-size: 0.75rem;
    }
    
    .content-card {
        padding: 10px;
    }
    
    .tab-button {
        padding: 5px 3px;
        font-size: 0.8rem;
    }
    
    .tab-button i {
        font-size: 0.8rem;
        margin-right: 3px;
    }
    
    .tab-header {
        margin-bottom: 8px;
    }
    
    .faq-question {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .faq-answer.active {
        padding: 14px;
        font-size: 0.75rem;
    }
    
    .tags-container {
        gap: 8px;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 0.65rem;
        border-radius: 12px;
    }
}

/* 响应式调整VIP弹窗 */
@media (max-width: 768px) {
    .vip-popup {
        width: 95%;
        max-width: 400px;
    }
    
    .vip-popup-header {
        padding: 18px 20px;
    }
    
    .vip-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .vip-popup-content {
        padding: 25px 20px;
    }
    
    .vip-message i {
        font-size: 2.5rem;
    }
    
    .vip-message p {
        font-size: 1.1rem;
    }
    
    .vip-popup-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .vip-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .vip-loading-content {
        max-width: 320px;
        padding: 25px;
    }
    
    .loading-spinner i {
        font-size: 3rem;
    }
    
    .loading-title {
        font-size: 1.5rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vip-popup {
        width: 95%;
        border-radius: 12px;
    }
    
    .vip-popup-header {
        padding: 15px 18px;
    }
    
    .vip-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .vip-popup-content {
        padding: 20px 18px;
    }
    
    .vip-message i {
        font-size: 2.2rem;
    }
    
    .vip-message p {
        font-size: 1rem;
    }
    
    .vip-popup-buttons {
        gap: 10px;
    }
    
    .vip-btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .vip-loading-content {
        max-width: 280px;
        padding: 20px;
    }
    
    .loading-spinner i {
        font-size: 2.5rem;
    }
    
    .loading-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .loading-text {
        font-size: 0.95rem;
    }
}