* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --max-width: 1200px;
    --radius: 8px;
    --link-unvisited: rgb(180, 180, 180);
    --link-visited: #9a9a9a;
    --link-hover: rgb(51, 116, 255);
    --link-active: pink;
    --pageddd-text: #172B4C;
    --pageddd-hover-bg: #172B4C;
    --pageddd-hover-text: #fff;
    --pageddd-default-text: #494949;
    --border-color: #ccc;
    --input-bg: #eee;
    --input-text: #000;
    --article-meta-color: #666;
    --friend-link-color: rgba(255, 255, 255, 0.8);
    --tag-bg: rgba(255, 255, 255, 0.1);
    --copyright-color: rgba(255, 255, 255, 0.6);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 增强导航 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.hover {
    color: var(--pageddd-text);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-box {
    width: 28px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    transition: transform 0.15s ease;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

.hamburger.active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::before {
    transform: translateY(8px) rotate(-45deg);
}

.hamburger.active .hamburger-inner::after {
    transform: translateY(-8px) rotate(45deg);
    opacity: 0;
}

/* 主内容区 */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 80px 0 2rem;
}

@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: 3fr 1fr;
    }
}

/* 文章列表样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
}

.article-card.with-image {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.article-image {
    flex: 0 0 200px;
    height: 150px;
    border-radius: var(--radius);
    object-fit: cover;
}

.article-content {
    flex: 1;
}

.article-meta {
    color: var(--article-meta-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;
    padding: 20px;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 页脚增强 */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.friend-links a {
    color: var(--friend-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-links a:hover {
    color: var(--secondary-color);
}

.global-tags {
    margin: 2rem 0;
    text-align: center;
}

.global-tags .tag {
    background: var(--tag-bg);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.3rem;
    display: inline-block;
}

a {
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    color: var(--copyright-color);
}

.copyright a {
    color: white;
}

.copyright img {
    width: 20px;
    height: 20px;
}

/* 定义超链接的默认样式 */
a:link {
    color: var(--link-unvisited);
}

/* 定义已访问的链接样式 */
a:visited {
    color: var(--link-visited);
}

/* 定义鼠标悬停时的样式 */
a:hover {
    color: var(--link-hover);
}

/* 定义鼠标按下时的样式 */
a:active {
    color: var(--link-active);
}

.tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.3rem;
    font-size: 0.9rem;
}

.pageddd {
    text-align: center;
    height: auto;
    width: 100%;
    display: block;
    margin-top: 10px;
}

.pageddd a,
.pageddd span {
    border: 1px solid var(--border-color);
    min-width: 30px;
    display: inline-block;
    margin: 8px 8px;
    padding: 5px 8px;
}

.pageddd span {
    color: var(--pageddd-text);
}

.pageddd span.hover {
    color: var(--pageddd-hover-text);
    border: 1px solid var(--pageddd-hover-bg);
    background: var(--pageddd-hover-bg);
}

.pageddd a {
    color: var(--pageddd-default-text);
}

.pageddd a:hover {
    color: var(--pageddd-text);
}

.sosuos {
    margin-bottom: 10px;
}

.sosuos input {
    border-radius: 6px;
    padding: 0px 10px;
    font-size: 16px;
    background: var(--input-bg);
    border: none;
    color: var(--input-text);
    height: 40px;
    line-height: 40px;
    width: 188px;
}

.sosuos .soico {
    display: inline-block;
    position: relative;
    left: 6px;
    top: 8px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .article-card.with-image {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
    }

    .sidebar {
        display: none;
    }
}

@media screen and (max-width: 992px) {
    .pageddd a.kuo_page {
        display: none;
    }
}

@media screen and (max-width: 767.98px) {
    .pageddd a.kuo_page {
        display: none;
    }

    .pageddd .kuo_weiye,
    .pageddd .kuo_home,
    .pageddd .kuo_dqdi {
        display: none;
    }
}