/*!
 * CloudOps Theme - page.css
 * 单页 / 文章列表 / 文章详情 / 知识库 / 联系我们 / 优惠码活动页
 */

/* ============ 文章页主体 ============ */
.knowledge-base-section,
.article-section {
    padding: 60px 0 80px;
    background: var(--bg-soft);
    min-height: calc(100vh - 200px);
}

/* 文章主体卡片 */
.content-with-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
}
@media (max-width: 768px) {
    .content-with-sidebar { padding: 28px 24px; }
}

.content-with-sidebar h1,
.content-with-sidebar h2,
.content-with-sidebar h3,
.content-with-sidebar h4 {
    color: var(--ink);
    margin: 1.6em 0 0.8em;
    letter-spacing: -0.015em;
    font-weight: 700;
}
.content-with-sidebar h1 { font-size: 28px; }
.content-with-sidebar h2 { font-size: 22px; }
.content-with-sidebar h3 { font-size: 18px; }
.content-with-sidebar h4 { font-size: 16px; }
.content-with-sidebar p {
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 16px;
}
.content-with-sidebar ul,
.content-with-sidebar ol {
    padding-left: 24px;
    margin: 0 0 16px;
}
.content-with-sidebar li {
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 6px;
}
.content-with-sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}
.content-with-sidebar blockquote {
    border-left: 3px solid var(--blue);
    background: var(--bg-blue-soft);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--ink-2);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}
.content-with-sidebar code {
    background: var(--bg-soft);
    color: var(--blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}
.content-with-sidebar pre {
    background: var(--ink);
    color: #E8E8F0;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.6;
}
.content-with-sidebar pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.content-with-sidebar table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.content-with-sidebar table th,
.content-with-sidebar table td {
    padding: 12px 16px;
    border: 1px solid var(--line);
    font-size: 14px;
}
.content-with-sidebar table th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--ink);
}

.section-heading {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.section-heading h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
}

/* ============ 知识库/文章列表布局 ============ */
.module {
    padding: 60px 0 80px;
    background: var(--bg-soft);
    min-height: calc(100vh - 200px);
}

.knowledge-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: flex-start;
}
@media (max-width: 1024px) {
    .knowledge-layout { grid-template-columns: 1fr; }
}

/* 侧栏 */
.sidebar-left {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 1024px) {
    .sidebar-left { position: static; }
}

.widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.widget-title {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.widget-title h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}

/* 搜索 widget */
.widget-search form {
    position: relative;
    display: flex;
    align-items: center;
}
.widget-search input[type="search"],
.widget-search .form-control {
    flex: 1;
    padding-right: 44px;
}
.widget-search .search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    cursor: pointer;
    transition: all var(--t-fast);
}
.widget-search .search-button:hover {
    background: var(--bg-blue-soft);
    color: var(--blue);
}

/* 分类 widget */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.widget-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: var(--ink-2);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all var(--t-fast);
}
.widget-categories li a:hover {
    background: var(--bg-soft);
    color: var(--ink);
}
.widget-categories li.active a {
    background: var(--bg-blue-soft);
    color: var(--blue);
    font-weight: 600;
}
.widget-categories li a .float-right {
    color: var(--ink-faded);
    font-size: 12px;
}

/* ============ 文章列表 ============ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.post {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t-base);
}
.post:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-1);
    transform: translateY(-2px);
}
.post-wrapper {
    padding: 28px 32px;
}
.post-header { margin-bottom: 12px; }
.post-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.post-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--t-fast);
}
.post-title a:hover { color: var(--blue); }
.post-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--ink-dim);
}
.post-meta li::before { content: ''; }
.post-content {
    margin-bottom: 16px;
}
.post-content p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
.post-more {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.post-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 文章详情 post 单独样式 */
.article-section .post {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.article-section .post-wrapper {
    padding: 40px 48px;
}
@media (max-width: 768px) {
    .article-section .post-wrapper { padding: 28px 24px; }
}
.article-section .post-title {
    font-size: 28px;
    margin-bottom: 14px;
}
.article-section .post-content {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.article-section .post-content p,
.article-section .post-content {
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.85;
}

/* 分页 */
.custom-pagination-nav {
    margin-top: 24px;
    text-align: center;
}
.custom-pagination-nav .pagination {
    display: inline-flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.custom-pagination-nav .pagination li {
    display: inline-block;
}
.custom-pagination-nav .pagination li a,
.custom-pagination-nav .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--t-fast);
    cursor: pointer;
    font-size: 13.5px;
}
.custom-pagination-nav .pagination li a:hover,
.custom-pagination-nav .pagination li span:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.custom-pagination-nav .pagination li.active a,
.custom-pagination-nav .pagination li.active span {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.custom-pagination-nav .pagination li.disabled span,
.custom-pagination-nav .pagination li.disabled a {
    color: var(--ink-faded);
    cursor: not-allowed;
    background: var(--bg-soft);
}

/* ============ 优惠码活动页 (coupon.html) ============ */
.coupon-hero {
    background: linear-gradient(135deg, #001A66 0%, #003D99 50%, #0066FF 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.coupon-hero h1 {
    color: #fff;
    font-size: clamp(28px, 3.5vw, 38px);
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.coupon-hero p {
    color: var(--ink-white-soft);
    font-size: 15px;
    margin: 0;
}

.coupon-section {
    padding: 60px 0;
    background: var(--bg-soft);
}
.yhq-b {
    margin-bottom: 24px;
}
.yhq-b .title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.yhq-b .title::before {
    content: '';
    width: 4px; height: 22px;
    border-radius: 2px;
    background: var(--blue);
}

.yhq-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0;
    margin: 0 0 40px;
    list-style: none;
}
@media (max-width: 1024px) {
    .yhq-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .yhq-list { grid-template-columns: 1fr; }
}

.yhq-list li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t-base);
    position: relative;
}
.yhq-list li:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-2);
    transform: translateY(-3px);
}

.yhq-list-t {
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    padding: 20px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.yhq-list-t::before {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bg-soft);
    bottom: -12px; left: -12px;
}
.yhq-list-t::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bg-soft);
    bottom: -12px; right: -12px;
}
.yhq-list-t i {
    font-style: normal;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: monospace;
    color: #fff;
    word-break: break-all;
}

.yhq-list-b {
    padding: 18px 24px 20px;
    position: relative;
}
.yhq-list-b > div:first-child {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 12px;
}
.yhq-list-b > div:first-child span {
    display: block;
}

.yhq-sn {
    font-size: 13px;
    color: var(--ink-2);
}
.yhq-sn b {
    color: var(--danger);
    font-size: 20px;
    font-weight: 700;
    margin: 0 2px;
    font-feature-settings: "tnum";
}

.copy-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    background: var(--bg-blue-soft);
    color: var(--blue);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
    cursor: pointer;
    border: 1px solid transparent;
}
.copy-btn:hover {
    background: var(--blue);
    color: #fff;
}

/* ============ 联系我们 / 客户评价区 ============ */
.client-review-section {
    padding: 60px 0;
    background: #fff;
}
.single-testimonial {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
}
.single-testimonial p {
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.85;
    margin: 0;
}

/* ============ Domain Detail 用样式 ============ */
.detail-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}
.detail-panel-heading {
    padding: 16px 24px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-panel-heading::before {
    content: '';
    width: 4px; height: 14px;
    border-radius: 2px;
    background: var(--blue);
}
.detail-panel-content {
    padding: 20px 24px;
}

/* 联系表单 (conatct-form) */
.conatct-form .form-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    margin: 0;
}
.conatct-form .form-group .control-label {
    width: 110px;
    flex-shrink: 0;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 13.5px;
    padding-top: 2px;
}
.conatct-form .form-group .form-control-static {
    flex: 1;
    color: var(--ink);
    font-size: 13.5px;
    word-break: break-all;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.form-control-static .text-info {
    color: var(--blue);
    cursor: pointer;
    margin-left: 8px;
    font-size: 12.5px;
}
.form-control-static .text-info:hover { text-decoration: underline; }

/* WHOIS info */
.whois { cursor: pointer; }
.whois_item {
    display: flex;
    padding: 6px 0;
    font-size: 13.5px;
    line-height: 1.6;
    border-bottom: 1px dashed var(--line-soft);
}
.whois_item:last-child { border-bottom: 0; }
.whois_item .title {
    width: 120px;
    text-align: right;
    color: var(--ink-soft);
    padding-right: 16px;
    flex-shrink: 0;
}
.whois_item .value {
    flex: 1;
    color: var(--ink);
    word-break: break-all;
}
.contact-tit {
    font-weight: 700;
    padding: 12px 0 8px;
    border-bottom: 1px solid var(--line);
    margin: 14px 0 8px;
    color: var(--ink);
    font-size: 14px;
}
