:root {
    --primary-color: #00831c;
    --secondary-color: #0f28b8;
    --tertiary-color: #364ed4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
    padding: 6px;
    min-height: 100vh;
    max-width: 1500px;
    margin: 0 auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 顶部导航栏样式 */
.header-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-brand {
    font-size: 1.2rem;
    font-weight: 500;
}

.header-brand a {
    color: white;
    text-decoration: none;
}

.header-brand a:hover {
    text-decoration: underline;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-username {
    font-weight: 500;
}

.header-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

/* 内容区域样式 */
.content-container {
    padding: 2rem 1rem;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    transition: all 0.3s ease;
}

.grid-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-icon {
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
}

.card-icon img {
    width: 100%;
    height: 40px;
    object-fit: contain;
}

.card-content {
    padding: 1rem;
    flex-grow: 1;
    text-align: center;
}

.card-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-title.featured {
    color: var(--primary-color);
}

.article-section {
    margin-bottom: 3rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.article-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-link {
    color: #333;
    text-decoration: none;
}

.article-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.875rem;
    color: #666;
}

/* 站点信息区域样式 */
.site-profile {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-logo img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-domain {
    font-size: 0.875rem;
    color: #666;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.profile-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #333;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-tags a {
    padding: 0.25rem 0.5rem;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #333;
    transition: all 0.2s ease;
}

.profile-tags a:hover {
    background: #e0e0e0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.action-primary {
    background: var(--primary-color);
    color: white;
}

.action-primary:hover {
    background: #006b16;
    transform: translateY(-1px);
}

.action-edit {
    background: #f0f0f0;
    color: #333;
}

.action-edit:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.action-recommend {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.action-recommend:hover {
    background: #e8f4ea;
    transform: translateY(-1px);
}

.profile-rankings {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-item img {
    height: 20px;
    width: auto;
}

/* 信息区域样式优化 */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--primary-color);
}

.info-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    word-break: break-word;
}

/* 特定信息区域样式 */
.site-time .info-item {
    border-left-color: #4CAF50;
}

.site-beian .info-item {
    border-left-color: #2196F3;
}

.site-links-container .info-item {
    border-left-color: #FF9800;
}

.site-other .info-item {
    border-left-color: #9C27B0;
}

.site-synopsis {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.7;
}

.site-synopsis h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.site-synopsis h3 {
    font-size: 1.2rem;
    color: #444;
    margin: 1.2rem 0 0.8rem;
}

.site-synopsis h4 {
    font-size: 1.1rem;
    color: #666;
    margin: 1rem 0 0.6rem;
}

.site-synopsis p {
    margin: 0.8rem 0;
    color: #333;
}

.site-synopsis ul,
.site-synopsis ol {
    margin: 0.8rem 0;
    padding-left: 2rem;
}

.site-synopsis li {
    margin: 0.4rem 0;
    padding-left: 0.5rem;
}

.site-synopsis ul {
    list-style-type: disc;
}

.site-synopsis ol {
    list-style-type: decimal;
}

.site-synopsis a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.site-synopsis a:hover {
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff8e1;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* 推荐页面区块样式 */
.main-title {
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.main-title h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.main-tips {
    background-color: #f0f9ff;
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.main-tips p {
    margin: 0.5rem 0;
    color: #333;
}

.main-steps {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.main-steps h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.main-steps p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.main-steps code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.main-site-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.main-site-info p {
    margin: 0.8rem 0;
    display: flex;
}

.main-site-info span {
    min-width: 80px;
    color: #666;
}

.main-site-info code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.main-site-list {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.main-site-list .title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.main-duration-options {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-duration-options label {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-duration-options label:hover {
    background: #e8f4ea;
}

.main-duration-options input[type="radio"] {
    margin-right: 0.5rem;
}

.main-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-button:hover {
    background: #006b16;
    transform: translateY(-2px);
}

/* 联系页面区块样式 */
.main-list {
    margin: 0 auto;
    padding: 2rem 1rem;
}

.main-list h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.main-list .main-tips {
    background-color: #fff8e1;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.main-list .main-tips p {
    margin: 0.5rem 0;
    color: #555;
}

.main-list .section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.main-list .section .title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.main-list .section .content {
    padding-left: 1rem;
}

.main-list .section .list {
    list-style-type: none;
}

.main-list .section .list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
}

.main-list .section .list li:last-child {
    border-bottom: none;
}

.main-list .section .list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 文章页面区块样式 */
.article-info {
    margin-bottom: 2rem;
}

.article-header {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.article-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.article-content {
    margin-top: 1.5rem;
}

.article-synopsis {
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-other {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* 卡片容器 - 宽高比4:2 */
.wxcard-container {
    margin: auto;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4 / 2;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
}

/* 左侧内容区域 - 完全居中布局 */
.wxcard-left-section {
    width: 60%;
    background: linear-gradient(180deg, #27ae60 0%, #219653 100%);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直居中 */
    align-items: center;
    /* 水平居中 */
    padding: 30px;
    text-align: center;
}

/* 装饰元素 */
.wxcard-decor-element {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.wxcard-decor1 {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: -40px;
}

.wxcard-decor2 {
    width: 60px;
    height: 60px;
    top: 30px;
    right: 30px;
}

/* 头像区域 - 居中显示 */
.wxcard-avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wxcard-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wxcard-account-name {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.2;
    margin: 0.6em;
    background: unset;
}

.wxcard-verified {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.wxcard-verified-icon {
    margin-right: 8px;
}

.wxcard-description {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 90%;
    color: aliceblue;
}

/* 右侧内容区域 */
.wxcard-right-section {
    width: 40%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.wxcard-qrcode-container {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.wxcard-qrcode {
    width: 160px;
    height: 160px;
    object-fit: cover;
}

.wxcard-qrcode-text {
    text-align: center;
    margin-bottom: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

.wxcard-follow-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 13px 40px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wxcard-follow-btn:hover {
    background-color: #219653;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wxcard-container {
        flex-direction: column;
        aspect-ratio: auto;
        height: auto;
    }

    .wxcard-left-section,
    .wxcard-right-section {
        width: 100%;
    }

    .wxcard-left-section {
        padding: 40px 20px;
    }

    .wxcard-right-section {
        padding: 30px 20px;
    }

    .wxcard-qrcode {
        width: 140px;
        height: 140px;
    }
}

/* 人物百科推荐区块样式 */
.actor-recommend {
    margin: 2rem 0;
}

.actor-recommend .title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.actor-recommend .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.actor-recommend .item {
    transition: all 0.3s ease;
}

.actor-recommend .item:hover {
    transform: translateY(-5px);
}

.actor-recommend .item-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.actor-recommend .item-icon {
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
}

.actor-recommend .item-icon img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.actor-recommend .item-info {
    padding: 1rem;
    text-align: center;
}

.actor-recommend .item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .actor-recommend .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .actor-recommend .item-icon img {
        height: 100px;
    }
}

/* 关于页面signboard区块样式 */
.info-signboard {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.info-signboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.info-signboard h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.info-signboard h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.info-signboard .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-signboard .info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-signboard .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-signboard .info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-signboard .info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.info-signboard .info-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-signboard .info-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.info-signboard .load-value {
    display: inline-block;
    margin-right: 0.8rem;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .info-signboard {
        padding: 1.5rem;
    }

    .info-signboard h2 {
        font-size: 1.5rem;
    }

    .info-signboard .info-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .info-signboard .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 蜘蛛统计表格样式 */
.spider-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.spider-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

.spider-table th a {
    color: white;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.spider-table th a:hover {
    color: #e0e0e0;
}

.spider-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.spider-table tr:nth-child(odd) {
    background-color: white;
}

.spider-table tr:hover {
    background-color: #e8f4ea;
}

.spider-table td {
    padding: 0.8rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.spider-table tr:last-child td {
    border-bottom: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .spider-table {
        display: block;
        overflow-x: auto;
    }

    .spider-table th,
    .spider-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

.footer {
    background-color: #f8f9fa;
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #e7e7e7;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
}

.footer-link-wrapper {
    display: inline-flex;
    align-items: center;
}

.footer-link {
    color: #666;
    text-decoration: none;
    padding: 0 12px;
    font-size: 14px;
}

.footer-link-divider {
    color: #ccc;
    font-size: 14px;
}

.footer-copyright {
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

.footer p {
    margin: 5px 0;
    text-align: center;
    color: #999;
    line-height: 1.2;
    font-size: 12px;
}

@media screen and (max-width: 768px) {
    .footer-links {
        gap: 5px;
        padding: 0 5px;
    }

    .footer-link-wrapper {
        flex-shrink: 0;
    }

    .footer-link {
        padding: 0 6px;
        font-size: 13px;
    }

    .footer-link-divider {
        font-size: 13px;
    }
}