/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --background-color: #fff;
    --gray-light: #f5f6fa;
    --gray: #95a5a6;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --hero-background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --gradient-blue-purple: linear-gradient(120deg, #4169E1 0%, #9370DB 100%);
    --gradient-text-start: #4169E1;  /* 皇家蓝 */
    --gradient-text-end: #9370DB;    /* 中等紫色 */
    --gradient-button-start: #4169E1; /* 皇家蓝 */
    --gradient-button-end: #9370DB;   /* 中等紫色 */
}

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 布局容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* 导航栏样式 */
.header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-unit);
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a90e2;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #4a90e2;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: #bdc3c7;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4a90e2;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 通用网格布局 */
.projects-grid,
.books-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem var(--spacing-unit);
    max-width: var(--container-width);
    margin: 0 auto;
}

/* 页面标题样式 */
h1 {
    text-align: center;
    color: var(--primary-color);
    margin: 2rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

/* 主页样式 */
.hero-section {
    min-height: auto;
    padding: 3rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.title-group {
    margin-bottom: 1rem;
    text-align: left;
}

.title-group > * {
    display: block;
    width: 100%;
}

.hero-text h1.gradient-text {
    font-size: 3rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
}

.hero-text .gradient-text.subtitle {
    font-size: 1.5rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
}

.hero-image {
    flex: 0 0 auto;
    width: 507px;
    height: 507px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.intro-content {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.typewriter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 1.5rem 0;
    max-width: 100%;
}

.typewriter-line {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 0.5rem;
}

.typewriter-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    visibility: hidden;
    position: relative;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.typewriter-text.current {
    visibility: visible;
}

.typewriter-text.typed {
    visibility: visible;
}

/* 光标效果 */
.typewriter-text.typing::after {
    content: '|';
    position: relative;
    display: inline-block;
    color: var(--text-color);
    font-weight: normal;
    animation: blink 0.7s infinite;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 响应式调整 */
@media (min-width: 768px) and (max-width: 1024px) {
    .typewriter-text {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
}
}

@media (max-width: 767px) {
    .typewriter-text {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .typewriter {
        margin: 1rem 0;
}
}

@media (max-width: 480px) {
    .typewriter-text {
        font-size: 0.9rem;
        max-width: 100%;
}

    .typewriter {
        margin: 0.8rem 0;
}
}

@media (max-width: 350px) {
    .typewriter-text {
        font-size: 0.85rem;
        max-width: 100%;
}

    .typewriter {
        margin: 0.6rem 0;
    }
}

/* 增加移动端自动换行支持 */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .hero-text {
        text-align: center;
    }

    .hero-text h1.gradient-text {
        text-align: center;
    }
    
    .hero-text .gradient-text.subtitle {
        text-align: center;
    }

    .typewriter-text {
        font-size: 0.95rem;
        text-align: center;
        max-width: 100%;
    }
    
    .typewriter {
        margin: 1rem 0;
        align-items: center;
    }

    .typewriter-line {
        justify-content: center;
    }

    .hero-image {
        width: 325px;
        height: 325px;
        margin: 0 auto 1rem;
    }
    
    .title-group {
        text-align: center !important;
    }
    
    .title-group > * {
        text-align: center !important;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .mobile-break {
        display: inline;
    }
}

@media (max-width: 480px) {
    .hero-text h1.gradient-text {
        font-size: 2rem;
    }
    
    .hero-text .gradient-text.subtitle {
        font-size: 1.1rem;
    }
    
    .typewriter-text {
        font-size: 0.85rem;
        text-align: center;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .typewriter-text#line1,
    .typewriter-text#line3,
    .typewriter-text#line5,
    .typewriter-text#line6,
    .typewriter-text#line7 {
        max-width: 100%;
    }
    
    .typewriter {
        width: 100%;
    }
    
    .hero-image {
        width: 260px;
        height: 260px;
    }
    
    .mobile-break {
        display: inline;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .container {
        padding: 0 0.8rem;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text h1.name {
        font-size: 2.8rem;
    }

    .hero-text .subtitle {
        font-size: 1.6rem;
    }

    .profile-image {
        width: 264px;
        height: 264px;
    }
}

/* 联系方式部分样式 */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info-card,
.message-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info-card h3,
.message-form-card h3 {
    color: #333;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: #4a90e2;
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* 留言表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #4a90e2;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #357abd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        padding: 40px 0;
    }
}

/* 表单提交反馈样式 */
.form-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 16px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 项目预览部分样式 */
.projects-preview-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.projects-preview-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #333;
}

.projects-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.project-description {
    color: #666;
    line-height: 1.6;
}

.view-more-container {
    text-align: center;
}

.view-more-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-blue-purple);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: linear-gradient(120deg, #9370DB 0%, #4169E1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .projects-preview-section {
        padding: 3rem 1rem;
    }

    .projects-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }
}

/* 博客预览部分样式 */
.blog-preview-section {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.blog-preview-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.blog-preview-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4a90e2;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--gray-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.read-more:hover {
    color: var(--primary-color);
}

/* 博客预览部分的响应式调整 */
@media (max-width: 768px) {
    .blog-preview-section {
        padding: 3rem 1rem;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }
}

/* 项目页面样式 */
.projects-hero {
    padding: 4rem 0;
    background-color: var(--gray-light);
    text-align: center;
}

.projects-hero h1 {
    margin-bottom: 1.5rem;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.projects-filter {
    padding: 2rem 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--gray-light);
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    background: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 1rem;
}

.filter-tag:hover,
.filter-tag.active {
    background-color: var(--secondary-color);
    color: var(--background-color);
}

.projects-grid-section {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-info .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 项目页面响应式调整 */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 3rem 1rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .projects-filter {
        padding: 1.5rem 1rem;
    }

    .filter-tags {
        gap: 0.5rem;
    }

    .filter-tag {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .projects-grid-section {
        padding: 2rem 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card img {
        height: 180px;
    }
}

/* 书籍页面样式 */
.books-hero {
    padding: 80px 0;
    background: var(--hero-background);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.books-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/backgrounds/patterns/dots.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.books-hero .container {
    position: relative;
    z-index: 2;
}

.books-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.books-filter {
    padding: 2rem 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--gray-light);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.filter-tag {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-tag:hover,
.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .filter-tags {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
    
    .filter-tag {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .filter-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

.books-grid-section {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.book-card {
    display: flex;
    flex-direction: column;
    background: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.book-image {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-light) 0%, #f8f9fa 100%);
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
}

.book-card:hover .book-image img {
    transform: scale(1.03);
}

.book-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.book-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-highlights {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    min-height: 150px;
}

.book-highlights h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.book-highlights ul {
    list-style: none;
    padding-left: 0;
}

.book-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.book-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.book-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
    margin-top: auto;
    align-self: flex-start;
}

.book-link:hover {
    background-color: var(--primary-color);
}

/* 书籍页面响应式调整 */
@media (max-width: 768px) {
    .books-hero {
        padding: 3rem 1rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .books-filter {
        padding: 1.5rem 1rem;
    }

    .books-grid-section {
        padding: 2rem 1rem;
    }

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

    .book-content {
        padding: 1.25rem;
    }

    .book-highlights {
        padding: 1.25rem;
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .books-hero h1 {
        font-size: 1.75rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* 博客页面样式 */
.blog-hero {
    padding: 80px 0;
    background: var(--hero-background);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/backgrounds/patterns/dots.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-filter {
    padding: 2rem 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--gray-light);
}

.filter-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.filter-tag {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
}

.blog-grid-section {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: var(--container-width);
    padding: 0 var(--spacing-unit);
}

.blog-card {
    background: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.blog-image {
    position: relative;
    padding-top: 66.67%; /* 保持3:2的图片比例 */
    overflow: hidden;
    background-color: var(--gray-light);
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--primary-color);
}

.blog-description {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    list-style: none;
    padding: 0;
    margin: 0.5em 0 0 0;
}

.blog-tag {
    display: inline-block;
    background: #f0f4fa;
    color: #3578e5;
    font-size: 0.92em;
    padding: 0.25em 0.9em;
    border-radius: 1em;
    border: 1px solid #e0e6ef;
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.blog-tag:hover {
    background: #3578e5;
    color: #fff;
    border-color: #3578e5;
    transform: translateY(-2px);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more .arrow {
    margin-left: 0.5rem;
    transition: transform var(--transition-speed);
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 0;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-card h2 {
        font-size: 1.1rem;
    }
}

/* 博客文章页面样式 */
.blog-post {
    background-color: var(--background-color);
}

.post-header {
    padding: 4rem 0;
    background-color: var(--gray-light);
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-category {
    color: var(--secondary-color);
    font-weight: 500;
}

.post-date {
    color: var(--gray);
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
    color: var(--primary-color);
}

.read-time {
    font-size: 0.9rem;
    color: var(--gray);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.post-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.post-text p {
    margin-bottom: 1.5rem;
}

.post-text ul,
.post-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-text li {
    margin-bottom: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0;
}

.post-tags .tag {
    padding: 0.3rem 1rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.post-navigation {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.next-post {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.next-post .arrow {
    margin-left: 0.5rem;
    transition: transform var(--transition-speed);
}

.next-post:hover .arrow {
    transform: translateX(5px);
}

/* 博客文章页面响应式调整 */
@media (max-width: 768px) {
    .post-header {
        padding: 3rem 1rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content {
        padding: 0 1rem;
    }

    .post-text {
        font-size: 1rem;
    }

    .post-text h2 {
        font-size: 1.5rem;
    }
}

/* 博客列表页面样式 */
.blog-list-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-search input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 250px;
}

.blog-search button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.blog-search button:hover {
    background: var(--primary-color-dark);
}

.blog-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-color);
    color: white;
}

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

.blog-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: #f0f4fa;
    color: #3578e5;
    font-size: 0.92em;
    padding: 0.25em 0.9em;
    border-radius: 1em;
    border: 1px solid #e0e6ef;
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary-color);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search input {
        min-width: 0;
        flex: 1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* 博客详情页面样式 */
.blog-detail-section {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

.blog-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-meta {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-meta > * {
    margin: 0 0.5rem;
}

.blog-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-title {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-tag {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-cover {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.blog-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-text {
    line-height: 1.8;
    color: var(--text-primary);
}

.blog-text h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.blog-text h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.blog-text p {
    margin-bottom: 1.5rem;
}

.blog-text ul, .blog-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-text li {
    margin-bottom: 0.5rem;
}

.blog-text code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

.blog-text pre {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* 作者信息样式 */
.author-info {
    margin: 4rem auto;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex-grow: 1;
}

.author-details h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.author-bio {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: var(--primary-color);
}

/* 相关文章样式 */
.related-posts {
    margin: 4rem auto;
    max-width: var(--container-width);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 返回按钮样式 */
.back-to-list {
    margin: 3rem 0;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .author-social {
        justify-content: center;
    }

    .blog-text {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.75rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-meta > * {
        margin: 0;
    }
}

/* 评论区域样式 */
.comments-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.comments-section h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.comment-form {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.comment-form h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-color-dark);
}

.comments-list {
    margin-top: 3rem;
}

.comments-list h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#commentCount {
    color: var(--text-secondary);
    font-size: 1rem;
}

.comment-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    animation: fadeIn 0.5s ease;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 500;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
}

.comment-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.comment-action {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: var(--primary-color);
}

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

    .submit-btn {
        width: 100%;
    }
}

/* 渐变文字样式 */
.gradient-text {
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    display: inline-block;
}

.hero-text h1.gradient-text {
    font-size: 3rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
}

.hero-text .gradient-text.subtitle {
    font-size: 1.5rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
}

.read-more .arrow {
    transition: transform 0.3s ease;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* 打字效果样式 */
.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    opacity: 0;
    font-size: 1.2em;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 8px;
}

.typewriter-text.typing {
    opacity: 1;
    animation: typing 1.5s steps(25, end);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* 优化动画效果 */
.typewriter-text.typing {
    transition: opacity 0.3s ease-in-out;
    will-change: width;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 留言列表样式 */
.messages-container {
    margin-top: 60px;
}

.messages-container h3 {
    color: #333;
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

.messages-list {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.message-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.9rem;
}

.message-author {
    font-weight: 500;
    color: #4a90e2;
}

.message-date {
    color: #999;
}

.message-content h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.message-content p {
    color: #666;
    line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .messages-list {
        padding: 0 20px;
    }
}

/* 表单样式优化 */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #357abd;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 优化导航栏响应式 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem var(--spacing-unit);
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

/* 移动端断行显示样式 */
.mobile-break {
    display: inline;
}

/* 修复行显示问题 */
.typewriter-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .intro-line {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0.1rem 0;
    }
    
    .hero-image {
        max-width: 220px;
        width: 220px;
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1.gradient-text {
        font-size: 1.8rem;
    }

    .hero-text .gradient-text.subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .intro-line {
        font-size: 0.85rem;
        line-height: 1.3;
        padding: 0.05rem 0;
    }
    
    .intro-lines {
        gap: 0;
    }
    
    .hero-image {
        max-width: 180px;
        width: 180px;
        height: 180px;
        margin-bottom: 0.5rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 350px) {
    .hero-text h1.gradient-text {
        font-size: 1.6rem;
    }
    
    .hero-text .gradient-text.subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .intro-line {
        font-size: 0.7rem;
        line-height: 1.2;
        padding: 0.04rem 0;
    }
    
    .hero-image {
        max-width: 195px;
        width: 195px;
        height: 195px;
        margin-bottom: 0.4rem;
    }
    
    .container {
        padding: 0 0.3rem;
    }
}

/* 个人介绍部分样式更新 */
.intro-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    margin-top: 0;
}

.intro-line {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 0.15rem 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.intro-line#line1,
.intro-line#line2,
.intro-line#line3,
.intro-line#line4,
.intro-line#line5,
.intro-line#line6,
.intro-line#line7,
.intro-line#line8,
.intro-line#line9,
.intro-line#line10,
.intro-line#line11,
.intro-line#line12,
.intro-line#line13,
.intro-line#line14 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: normal;
    line-height: 1.8;
}

/* 媒体查询 - 桌面设备 */
@media (min-width: 1025px) {
    .hero-text h1.gradient-text {
        font-size: 3rem;
    }
    
    .hero-text .gradient-text.subtitle {
        font-size: 1.5rem;
    }
    
    .hero-image {
        width: 507px;
        height: 507px;
    }
}

/* 媒体查询 - 平板电脑 */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-text h1.gradient-text {
        font-size: 2.5rem;
    }
    
    .hero-text .gradient-text.subtitle {
        font-size: 1.3rem;
    }
    
    .hero-image {
        max-width: 325px;
        width: 325px;
        height: 325px;
        margin-bottom: 1.5rem;
    }
}

/* 媒体查询 - 手机 */
@media (max-width: 767px) {
    .hero-text h1.gradient-text {
        font-size: 2.2rem;
    }
    
    .hero-text .gradient-text.subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        max-width: 286px;
        width: 286px;
        height: 286px;
        margin-bottom: 1.5rem;
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 关注产业部分样式 */
.focus-section {
    padding: 60px 0;
    background-color: #fff;
}

.focus-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.focus-category {
    text-align: left;
}

.focus-category h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.focus-category h3::before {
    content: '►';
    color: #4a90e2;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    color: #495057;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
    transform: translateY(-2px);
}

/* 统一的section标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4a90e2;
}

/* 平板端优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-text h1.gradient-text {
        font-size: 2.5rem;
    }
    
    .hero-text .gradient-text.subtitle {
        font-size: 1.3rem;
    }
    
    .hero-image {
        max-width: 250px;
        width: 250px;
        height: 250px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .focus-tags {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .focus-category h3 {
        font-size: 1.3rem;
    }
    
    .tags-group {
        gap: 0.8rem;
    }
    
    .tag {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .focus-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
} 