/* 全局样式 - 简洁协调的设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #04314D;
    --secondary-color: #0eb754;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e8e8e8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --radius: 6px;
}

body {
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-light);
    min-height: 100vh;
    padding: 5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 460px;
    margin: 0 auto;
    background-color: var(--bg-white);
    box-shadow: 0 10px 30px rgba(4, 49, 77, 0.12);
    border-radius: 12px;
    font-size: 12px;
    overflow: hidden;
    border: 1px solid rgba(4, 49, 77, 0.08);
}

/* 头部样式 */
header {
    background-color: var(--bg-white);
    border-bottom: none;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #04314D, #064e79);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-img {
    height: 30px;
    max-width: 40%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.title {
    color: white;
    font-size: 15px;
    font-weight: normal;
    text-align: right;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 60%;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px 0;
}

.spinner {
    border: 3px solid rgba(4, 49, 77, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 内容区域 */
.content {
    padding: 15px;
    background: linear-gradient(to bottom, #ffffff, #f9fbfd);
}

.domain-info {
    margin-bottom: 15px;
    padding: 10px 15px;
    font-size: 15px;
    color: #000000;
    background-color: rgba(4, 49, 77, 0.04);
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid var(--primary-color);
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(4, 49, 77, 0.03);
}

.domain-highlight {
    color: #0066cc;
    font-weight: bold;
}

/* 认证信息区域 */
.cert-info-section {
    margin-bottom: 18px;
    border: 1px solid rgba(4, 49, 77, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(4, 49, 77, 0.05);
}

.section-title {
    background: linear-gradient(to right, rgba(4, 49, 77, 0.05), rgba(4, 49, 77, 0.02));
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(4, 49, 77, 0.08);
    letter-spacing: 0.3px;
}

.cert-table-container {
    padding: 8px 0;
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

/* 添加水印 */
.cert-table-container {
    position: relative;
}

.cert-table-container::before {
    content: "晓梦羊®博客集";
    position: absolute;
    top: 20%;
    left: 10%;
    pointer-events: none;
    z-index: 1;
    font-size: 18px;
    color: rgba(4, 49, 77, 0.05);
    font-weight: normal;
    letter-spacing: 1px;
    user-select: none;
    white-space: nowrap;
    transform: rotate(-25deg);
}

.cert-table-container::after {
    content: "晓梦羊®博客集";
    position: absolute;
    top: 50%;
    left: 60%;
    pointer-events: none;
    z-index: 1;
    font-size: 16px;
    color: rgba(4, 49, 77, 0.04);
    font-weight: normal;
    letter-spacing: 1px;
    user-select: none;
    white-space: nowrap;
    transform: rotate(15deg);
}

.cert-table-container {
    background-image:
        url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='100' y='100' font-family='Arial' font-size='16' fill='rgba(4, 49, 77, 0.03)' text-anchor='middle' dominant-baseline='middle' transform='rotate(-20, 100, 100)'%3E晓梦羊®博客集%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

.cert-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.cert-table tr:last-child {
    border-bottom: none;
}

.cert-table tr:hover {
    background-color: rgba(4, 49, 77, 0.01);
}

.cert-table td {
    padding: 9px 15px;
    font-size: 13px;
    vertical-align: middle;
}

.cert-table .label {
    width: 35%;
    color: #606266;
    font-weight: bold;
}

.cert-table .value {
    color: #606266;
}

/* 确保博客地址显示为普通文本样式 */
#blog-url {
    color: #606266 !important;
    text-decoration: none !important;
    cursor: default;
    pointer-events: none;
}

.non-clickable-link {
    color: #606266 !important;
    text-decoration: none !important;
    cursor: default;
    pointer-events: none;
}

.cert-table .more-details {
    text-align: right;
}

/* 自定义链接样式 */
.more-details a,
.non-clickable-link {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: default;
    pointer-events: none;
    font-weight: 500;
}

.more-details a:hover,
.non-clickable-link:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

.cert-table .more-details a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(0, 102, 204, 0.05);
    pointer-events: auto; /* 启用链接点击功能 */
}

.cert-table .more-details a:hover {
    color: #004499;
    background-color: rgba(0, 102, 204, 0.1);
}

/* 状态样式优化 */
.status-yes {
    color: #2ecc71; /* 绿色 */
    font-weight: bold;
    font-family: 'Arial Unicode MS', 'Microsoft YaHei', sans-serif;
    padding: 0 4px;
}

.status-no {
    color: #e74c3c; /* 暗红色 */
    font-weight: bold;
    font-family: 'Arial Unicode MS', 'Microsoft YaHei', sans-serif;
    padding: 0 4px;
}

.status-pending {
    color: #95a5a6; /* 灰色 */
    font-weight: bold;
    font-family: 'Arial Unicode MS', 'Microsoft YaHei', sans-serif;
    padding: 0 4px;
}

/* 安全特性区域 */
.security-features {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.security-feature {
    padding: 10px 12px;
    background: linear-gradient(to bottom, #ffffff, #f8fafd);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(4, 49, 77, 0.05);
    border: 1px solid rgba(4, 49, 77, 0.06);
    flex: 1;
    cursor: help;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.security-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 49, 77, 0.08);
}

.security-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(4, 49, 77, 0.06);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}

.security-icon img {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.security-content {
    flex: 1;
    text-align: left;
}

.security-content h3 {
    font-size: 12px;
    color: #04314D;
    font-weight: 600;
    margin: 0;
}

/* 免责声明 */
.disclaimer {
    margin-bottom: 10px;
    padding: 10px 16px;
    background-color: rgba(4, 49, 77, 0.02);
    border-radius: 8px;
    font-size: 11px;
    color: #555555;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 1px 5px rgba(4, 49, 77, 0.03);
}

.disclaimer p {
    margin-bottom: 5px;
    line-height: 1.5;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.email-copy {
    color: #555555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.email-copy:hover {
    opacity: 0.8;
}

/* 更多信息 */
.more-info {
    margin-bottom: 8px;
    text-align: center;
    padding: 8px 0;
    border-top: 1px solid rgba(4, 49, 77, 0.05);
    border-bottom: 1px solid rgba(4, 49, 77, 0.05);
    font-size: 11px;
    background-color: rgba(4, 49, 77, 0.01);
}

.more-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.more-info a:hover {
    background-color: rgba(4, 49, 77, 0.05);
}

/* 错误信息 */
.error {
    padding: 20px 15px;
    text-align: center;
}

.error h3 {
    color: #e54d42;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.error p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 13px;
}

.error-message {
    text-align: left;
    line-height: 1.6;
    padding: 0 5px;
}

.error-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(4, 49, 77, 0.1), rgba(4, 49, 77, 0.05), rgba(4, 49, 77, 0.01));
    margin: 15px 0;
}

.error a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.error a:hover {
    background-color: rgba(4, 49, 77, 0.05);
    text-decoration: underline;
}

/* 新增样式类 */
.domain-bold {
    font-weight: bold;
}

.normal-text {
    font-weight: normal;
}

.brand-bold {
    font-weight: bold;
}

.no-info {
    color: #dc3545;
    font-weight: bold;
}

.ssl-valid {
    color: #28a745;
    font-weight: bold;
}

.ssl-invalid {
    color: #dc3545;
    font-weight: bold;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #04314D, #064e79);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 8px;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.3px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    body {
        padding: 3px;
    }
}

/* 平板和桌面设备 */
@media (min-width: 768px) {
    .container {
        margin: 10px auto;
    }
}