/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-brand {
    flex: 1;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: #4285f4;
}

.site-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4285f4;
    border-bottom-color: #4285f4;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

/* 主内容区域 */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* 文章样式 */
.posts {
    margin-bottom: 40px;
}

.post {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4285f4;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 12px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 2px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #4285f4;
    color: #fff;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-footer {
    text-align: right;
}

.read-more {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1a73e8;
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.page-number,
.next,
.prev {
    padding: 8px 16px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-number:hover,
.next:hover,
.prev:hover {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.page-number.current {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

/* 底部样式 */
.footer {
    background: #333;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-info a {
    color: #4285f4;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ccc;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4285f4;
}

/* 备案号悬挂处样式 */
.beian-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

.icp-beian,
.gongan-beian {
    margin-bottom: 10px;
}

.icp-beian a,
.gongan-beian a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.icp-beian a:hover,
.gongan-beian a:hover {
    color: #4285f4;
    text-decoration: underline;
}

.icp-beian i {
    font-size: 12px;
}

.gongan-icon {
    width: 16px;
    height: 16px;
    background: #ccc;
    border-radius: 2px;
}

.copyright-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.copyright-info span {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 15px 0;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .content {
        padding: 20px;
    }
    
    .post-title a {
        font-size: 24px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .beian-info {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .icp-beian a,
    .gongan-beian a {
        justify-content: center;
        font-size: 12px;
    }
    
    .copyright-info span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .post-title a {
        font-size: 20px;
    }
    
    .post-content {
        font-size: 14px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post {
    animation: fadeInUp 0.6s ease-out;
}

.post:nth-child(2) {
    animation-delay: 0.1s;
}

.post:nth-child(3) {
    animation-delay: 0.2s;
}

.post:nth-child(4) {
    animation-delay: 0.3s;
}

/* 代码高亮样式 */
pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #4285f4;
}

code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

pre code {
    background: none;
    padding: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 文章页面样式 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #4285f4;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.post-header .post-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.post-header .post-tags {
    justify-content: center;
}

.post-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4285f4;
    color: #333;
}

.post-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #444;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.model-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.model-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.model-card h3 {
    color: #4285f4;
    margin-bottom: 10px;
}

.model-card p {
    margin-bottom: 8px;
    font-size: 14px;
}

.tips-box {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.tips-box h4 {
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-box ul {
    margin-bottom: 0;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    gap: 20px;
}

.nav-prev, .nav-next {
    flex: 1;
    text-align: center;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nav-link {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1a73e8;
}

@media (max-width: 768px) {
    .post-header .post-title {
        font-size: 24px;
    }
    
    .model-comparison {
        grid-template-columns: 1fr;
    }
    
    .post-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-next {
        text-align: center;
    }
}

/* 关于页面样式 */
.about-page section {
    margin-bottom: 50px;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.avatar {
    font-size: 80px;
    color: #4285f4;
    margin-bottom: 20px;
}

.about-intro h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.skills-section h2,
.blog-info h2,
.contact-section h2,
.site-info h2,
.disclaimer h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-item {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.skill-icon {
    font-size: 40px;
    color: #4285f4;
    margin-bottom: 15px;
}

.skill-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.skill-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.skill-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, #4285f4, #34a853);
    height: 100%;
    border-radius: 4px;
    transition: width 2s ease;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #4285f4;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.1);
}

.blog-card .card-icon {
    font-size: 36px;
    color: #4285f4;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.blog-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #333;
}

.contact-item i {
    font-size: 20px;
    color: #4285f4;
    width: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.disclaimer-content {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    color: #856404;
}

.disclaimer-content p {
    margin-bottom: 15px;
}

.disclaimer-content ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.disclaimer-content li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .about-intro h1 {
        font-size: 24px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .skills-grid,
    .blog-cards {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
} 