/* Tokenim钱包文章页面专用样式 */

/* 文章页主视觉 */
.article-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    position: relative;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

/* 面包屑导航 */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.article-breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--transition);
}

.article-breadcrumb a:hover {
    color: var(--primary);
}

.article-breadcrumb span {
    color: var(--gray-500);
}

/* 文章元信息 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.article-category {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
}

.article-date {
    color: var(--gray-600);
}

.article-read-time {
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章标题 */
.article-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 700px;
}

/* 作者信息 */
.article-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.article-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章封面图 */
.article-cover {
    margin: 40px auto;
    max-width: 900px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition);
}

.article-cover:hover img {
    transform: scale(1.02);
}

.cover-caption {
    padding: 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

/* 文章内容区域 */
.article-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 主要内容区域 */
.main-content {
    max-width: 800px;
}

/* 文章导语 */
.article-intro {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 24px;
}

.intro-text strong {
    color: var(--primary);
}

.intro-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-text {
    flex: 1;
    line-height: 1.6;
    color: var(--gray-800);
}

.highlight-text strong {
    color: var(--primary);
}

/* 文章章节 */
.article-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
}

.article-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-section h2::before {
    content: '';
    width: 30px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
    display: block;
}

.article-section h3 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--dark);
}

.article-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.article-section ul,
.article-section ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--gray-800);
}

.article-section li strong {
    color: var(--primary);
}

/* 特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-item {
    text-align: center;
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
}

.feature-item p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--gray-600);
}

/* 区块链网格 */
.blockchain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.blockchain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.blockchain-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.blockchain-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.blockchain-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* 特性演示 */
.feature-demo {
    margin: 32px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.feature-demo img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-caption {
    padding: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

/* 性能统计 */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* 安全特性 */
.security-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.security-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.security-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.security-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.security-content {
    flex: 1;
}

.security-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.security-content p {
    margin: 0;
    color: var(--gray-700);
}

/* UI展示 */
.ui-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;
}

.ui-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.ui-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.ui-item:hover img {
    transform: scale(1.02);
}

.ui-description h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.ui-description p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

/* 开发者特性 */
.dev-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.dev-card {
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.dev-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.dev-card h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.dev-card ul {
    margin: 0;
    padding-left: 20px;
}

.dev-card li {
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* 更新步骤 */
.update-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.step-content p {
    margin: 0 0 12px 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.update-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.update-link:hover {
    gap: 8px;
}

.update-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    margin: 32px 0;
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.note-content {
    flex: 1;
}

.note-content strong {
    color: var(--warning);
}

/* 路线图 */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-date {
    width: 100px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-content h5 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.timeline-content p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

/* 结语 */
.conclusion-message {
    display: flex;
    gap: 24px;
    margin: 32px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(123, 97, 255, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.message-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin-bottom: 16px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--gray-800);
}

.message-content p:last-child {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* 文章标签 */
.article-tags {
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tag-title {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
}

.tag {
    padding: 6px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 32px;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 目录导航 */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-item {
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all var(--transition);
    position: relative;
}

.toc-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

.toc-item.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.toc-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn {
    padding: 12px 20px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.share-btn.telegram:hover {
    background: #0088CC;
    border-color: #0088CC;
    color: white;
}

.share-btn.link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* 相关文章 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    padding: 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.related-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.related-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.related-meta {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* 下载提醒 */
.download-reminder {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    color: white;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.reminder-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.reminder-content {
    flex: 1;
}

.reminder-content h5 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: white;
}

.reminder-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

/* 评论区域 */
.comments-section {
    max-width: 800px;
    margin: 80px auto 0;
    padding-top: 60px;
    border-top: 1px solid var(--gray-200);
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 40px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 评论表单 */
.comment-form {
    margin-bottom: 40px;
    padding: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
}

.form-header {
    margin-bottom: 24px;
}

.form-header h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-header p {
    color: var(--gray-600);
    margin: 0;
}

.comment-input-form .form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-input-form .form-input {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--gray-800);
    transition: border-color var(--transition);
}

.comment-input-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--gray-800);
    resize: vertical;
    transition: border-color var(--transition);
    font-family: var(--font-sans);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.form-tips small {
    color: var(--gray-600);
    font-size: 0.75rem;
}

/* 评论列表 */
.comments-list {
    margin-bottom: 40px;
}

.comment-item {
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.comment-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-author .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-author .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.comment-content {
    margin-bottom: 16px;
}

.comment-content p {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

/* 加载更多 */
.comments-load {
    text-align: center;
}

.load-more-btn {
    padding: 12px 32px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.load-more-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .ui-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .comment-input-form .form-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 120px 0 40px;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .article-subtitle {
        font-size: 1.125rem;
    }
    
    .article-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .article-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .feature-grid,
    .performance-stats,
    .dev-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blockchain-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-section h2 {
        font-size: 1.75rem;
    }
    
    .feature-grid,
    .performance-stats,
    .dev-features {
        grid-template-columns: 1fr;
    }
    
    .blockchain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comment-form {
        padding: 24px;
    }
}