/* ===== 内容页样式 ===== */
/* 文章头部 */
.article-header {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-category {
    display: inline-block;
    background: #2c80ff;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    margin-right: 5px;
    color: #2c80ff;
}

/* 文章与侧边栏布局 */
.article-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.article-main {
    flex: 1;
}

.article-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 文章内容 */
.article-content {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-down {
    margin-top: 25px;
    overflow: hidden;
    width: 100%;
}

.article-down h4 {
    font-size: 17px;
    margin: 10px 0 20px;
    border-top: 1px dashed #ececec;
    padding-top: 20px;
    font-weight: 700;
    background: url(../img/down.svg) left 23px no-repeat;
    background-size: 16px;
    padding-left: 20px;
}

.article-down a {
    background: #5298ff;
    color: #fff !important;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #5298ff;
    border-radius: 7px;
    text-align: center;
    display: block;
    text-decoration: none;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

.sbtn {
    display: inline-block;
    background: #2c80ff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sbtn:hover {
    background: #1a6de0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 128, 255, 0.3);
}

/* 重要提示 */
.compact-notice {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.notice-icon {
    background: #ff9800;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.notice-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 5px;
}

.notice-subtitle {
    color: #666;
    font-size: 14px;
}

.notice-content {
    margin-bottom: 25px;
}

.notice-item {
    display: flex;
    margin-bottom: 15px;
}

.item-icon-show {
    color: #2c80ff;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.notice-highlight {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.highlight-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #2c80ff;
    font-size: 16px;
}

.highlight-title i {
    margin-right: 10px;
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
}

.highlight-icon {
    background: #2c80ff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}

.notice-warning {
    display: flex;
    align-items: center;
    background: #fff3e0;
    border-radius: 8px;
    padding: 15px;
}

.warning-icon {
    color: #ff9800;
    font-size: 24px;
    margin-right: 15px;
}

.warning-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: #e65100;
}

.warning-text {
    color: #666;
}

.warning-link {
    color: #2c80ff;
    text-decoration: none;
}

/* 评论区域 */
.comments-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #222;
    font-size: 20px;
}

.section-title i {
    margin-right: 10px;
    color: #2c80ff;
}

.comment-count {
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

/* 上一篇/下一篇导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.nav-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 15px;
    width: 48%;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #2c80ff;
}

.nav-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 500;
}

/* 侧边栏内容样式 */
.sidebar-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-section .section-title {
    font-size: 18px;
    margin-bottom: 8px;
    padding-bottom: 10px;
    color: #333;
    border-bottom: none;
}

/* 相关推荐网格布局调整 */
.related-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-card {
    display: block;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}

.related-card:hover {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.related-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}

.related-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* 热门资讯样式调整 */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-card {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}

.hot-card:hover {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

.hot-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    color: white;
}

.hot-card:nth-child(1) .hot-rank {
    background-color: #ff5252;
}

.hot-card:nth-child(2) .hot-rank {
    background-color: #ff9800;
}

.hot-card:nth-child(3) .hot-rank {
    background-color: #03a9f4;
}

.hot-card:nth-child(4) .hot-rank {
    background-color: #4caf50;
}

.hot-card:nth-child(n+5) .hot-rank {
    background-color: #9e9e9e;
}

.hot-content {
    flex: 1;
}

.hot-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #333;
}

.hot-meta {
    font-size: 12px;
    color: #888;
}

/* 手机号码展示样式*/
.phone-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    margin: 25px auto;
    max-width: 600px;
    width: 90%;
}

.phone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.phone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    margin-bottom: 25px;
    width: 100%;
}

.phone-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.phone-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.phone-details {
    text-align: center;
    width: 100%;
}

.phone-details h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.phone-number {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    word-break: keep-all;
}

.phone-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 180px;
    font-size: 15px;
    min-height: 50px;
}

.action-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.action-btn.call {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.action-btn.call:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 成功提示 */
.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    transform: translateX(150%);
    transition: transform 0.4s;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-success.show {
    transform: translateX(0);
}

/* 装饰元素 */
.decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.decoration-1 {
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
}

.decoration-2 {
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
}

/* 文章内容样式 */
.article-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4a90e2;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    padding-left: 10px;
    border-left: 4px solid #3498db;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
    margin: 1.8rem 0 0.8rem;
    position: relative;
    padding-left: 15px;
}

.article-content h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

.article-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a6575;
    margin: 1.3rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    margin: 1.2rem 0 0.5rem;
    font-style: italic;
}

.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
}

.article-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.01);
}

.article-content figure {
    margin: 1.5rem 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 1.2rem 0;
    padding-left: 1.8rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.article-content ul li {
    list-style-type: none;
}

.article-content ul li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li {
    counter-increment: item;
    list-style-type: none;
}

.article-content ol li:before {
    content: counter(item) ".";
    color: #e74c3c;
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
    position: relative;
    font-style: italic;
    color: #555;
}

.article-content blockquote:before {
    content: "\201C";
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    left: 10px;
    top: 5px;
    font-family: Georgia, serif;
}

.article-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #c7254e;
}

.article-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.article-content th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background: #f8f9fa;
}

.article-content tr:hover {
    background: #edf2f7;
}

.article-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    margin: 2rem 0;
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #2c3e50;
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content mark {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

/* 内容页响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 20px;
        border-radius: 12px;
    }

    h1 {
        font-size: 22px;
    }

    .phone-card {
        padding: 25px 20px;
        border-radius: 12px;
        margin: 25px auto;
        max-width: 90%;
    }

    .phone-info {
        margin-bottom: 20px;
    }

    .phone-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .phone-number {
        font-size: 24px;
    }

    .phone-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .action-btn {
        width: 100%;
        max-width: 250px;
        padding: 16px 20px;
        min-height: 55px;
    }

    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        width: 100%;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-card {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 22px;
    }

    .article-header,
    .article-content,
    .compact-notice,
    .comments-section {
        padding: 20px;
    }

    .article-container {
        padding: 20px;
    }

    .article-content h1 {
        font-size: 1.8rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .phone-number {
        font-size: 22px;
    }

    .action-btn {
        font-size: 16px;
        padding: 14px 18px;
    }

    .phone-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
}

@media (max-width: 992px) {
    .related-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* 平板和桌面端 */
@media (min-width: 768px) {
    .article-down a {
        float: left;
        margin: 1%;
        width: 13%;
        min-width: 120px;
    }
}

/* 小屏平板 */
@media (max-width: 767px) and (min-width: 481px) {
    .article-down a {
        float: left;
        margin: 1%;
        width: 48%;
    }
}