/* ==========================================================
   SEO 必备结构化模块样式 - H1-H4层级、对比表、评价、FAQ
   ProtonVPN Edition I
   ========================================================== */

/* ========== 语义层级 ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: 40px; }
h3 { font-size: 1.5rem; margin-top: 30px; }
h4 { font-size: 1.2rem; margin-top: 20px; color: var(--secondary); }

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 100px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb .current {
    color: var(--light);
}

/* ========== 文章资讯页 ========== */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(109, 74, 255, 0.2);
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-tag {
    background: rgba(109, 74, 255, 0.2);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light);
}

.author-info strong {
    display: block;
    margin-bottom: 3px;
}

.author-info span {
    color: var(--gray);
    font-size: 0.85rem;
}

.article-image {
    width: 100%;
    height: 360px;
    background: var(--gradient);
    border-radius: 16px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0,0,0,0.3));
}

/* ========== 文章内容 ========== */
.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.article-body h2 {
    color: var(--light);
    margin-top: 50px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 25px;
}

.article-body h2::before {
    content: '▌';
    color: var(--primary);
    margin-right: 10px;
}

.article-body h3 {
    color: var(--secondary);
    margin-top: 35px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 20px 0 25px 25px;
}

.article-body li {
    margin-bottom: 10px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body blockquote {
    background: rgba(109, 74, 255, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    font-style: italic;
}

.article-body code {
    background: rgba(109, 74, 255, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.95em;
    color: var(--secondary);
}

.article-body pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid rgba(109, 74, 255, 0.3);
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

/* ========== 文章目录 ========== */
.toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(109, 74, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.toc h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    margin-top: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(109, 74, 255, 0.15);
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    color: var(--light);
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
}

.toc-list a:hover {
    color: var(--secondary);
}

.toc-list .num {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ========== 文章评价模块 ========== */
.review-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(109, 74, 255, 0.2);
}

.review-header {
    text-align: center;
    margin-bottom: 40px;
}

.review-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(109, 74, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.review-score {
    text-align: center;
    padding: 20px 30px;
    background: rgba(109, 74, 255, 0.1);
    border-radius: 12px;
}

.review-score-num {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.review-score-stars {
    color: #ffbe0b;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin: 10px 0;
}

.review-score-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.review-bars {
    padding: 10px 0;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review-bar-label {
    width: 50px;
    color: var(--light);
    font-weight: 600;
}

.review-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
}

.review-bar-count {
    color: var(--gray);
    width: 60px;
    text-align: right;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.review-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(109, 74, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.review-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.review-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--light);
    flex-shrink: 0;
}

.review-item-info {
    flex: 1;
}

.review-item-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.review-item-info span {
    color: var(--gray);
    font-size: 0.8rem;
}

.review-item-stars {
    color: #ffbe0b;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.review-item-text {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-item-date {
    color: #666;
    font-size: 0.8rem;
}

/* ========== 文章关联推荐 ========== */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(109, 74, 255, 0.2);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(109, 74, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.related-card-tag {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.related-card-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card-excerpt {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========== 通用对比表 ========== */
.comparison-section {
    padding: 60px 20px;
}

.comparison-table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(109, 74, 255, 0.2);
    border-radius: 16px;
    overflow-x: auto;
    margin-top: 30px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(109, 74, 255, 0.1);
}

.comparison-table th {
    background: rgba(109, 74, 255, 0.15);
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--gray);
    font-weight: 600;
}

.comparison-table tr:hover td {
    background: rgba(109, 74, 255, 0.05);
}

.comparison-table .highlight-col {
    background: rgba(109, 74, 255, 0.12);
    color: var(--secondary);
    font-weight: 700;
}

.comparison-table .winner-badge {
    background: var(--gradient);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* ========== 文章分享 ========== */
.article-share {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    color: var(--gray);
    margin-right: 10px;
}

.share-btn {
    padding: 8px 16px;
    background: rgba(109, 74, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: var(--primary);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .article-title { font-size: 1.8rem; }
    .article-image { height: 220px; font-size: 4rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .review-summary-box { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .review-score-num { font-size: 3rem; }
}
