/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Montserrat', 'Noto Serif SC', sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* 页面一特定样式 */
.page1-body {
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.2s forwards;
}

.logo {
    max-width: 320px;
    height: auto;
    max-height: 120px;
    width: auto;
}

.name-line {
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.name-bold {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.title-line {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.title-link {
    margin: 0 0.8rem;
    color: #000;
    text-decoration: none;
    position: relative;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.title-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: width 0.3s ease;
}

.title-link:hover:after {
    width: 100%;
}

.title-link:hover {
    letter-spacing: 1px;
}

.contact-info {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #666;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.email-link {
    color: #000 !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.email-link:hover {
    background-color: #f5f5f5;
    text-decoration: underline;
}

.decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
    top: 10%;
    right: 10%;
}

.square {
    width: 150px;
    height: 150px;
    border: 1px solid #f0f0f0;
    bottom: 20%;
    left: 15%;
    transform: rotate(45deg);
}

.line {
    height: 1px;
    width: 100px;
    background-color: #f0f0f0;
    bottom: 30%;
    right: 20%;
}



/* 页面二特定样式 */
.page2-body {
    padding: 0;
}

.main-content {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 上部区域 - 顶部图片 */
.top-section {
    margin-bottom: 4rem;
    text-align: center;
}

.feature-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 下部区域 - 两栏布局 */
.two-column {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.left-column {
    flex: 1;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #222;
}

.contact-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-link:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-3px);
}

.icon-link i {
    font-size: 1.2rem;
    color: #000;
}

.icon-text {
    font-size: 0.85rem;
    color: #666;
}

/* 通用组件样式 */
/* 悬浮菜单 */
.floating-menu {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-icon:hover {
    background-color: #000;
    transform: scale(1.05);
}

.menu-icon i {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* 全屏菜单 */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.menu-links a {
    color: #000;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    position: relative;
}

.menu-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-links a:hover::after {
    width: 100%;
}

/* 二维码弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.modal-content img {
    width: 100%;
    margin-bottom: 1rem;
}

.close-modal {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
}

/* 底部区域 */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.copyright {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 400;
}

.copyright-notice {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.beian {
    margin-top: 0.5rem;
}

.beian a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.beian a:hover {
    color: #888888;
    text-decoration: underline;
}

/* 动画 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 900px) {
    .two-column {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .page1-body {
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .name-line {
        font-size: 2.5rem;
    }
    
    .title-line {
        font-size: 1.5rem;
    }
    
    .logo {
        max-width: 280px;
        max-height: 100px;
    }
    
    .circle, .square, .line {
        display: none;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .menu-links a {
        font-size: 1.5rem;
    }
    
    .floating-menu {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .menu-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .menu-links a {
        font-size: 1.2rem;
    }
    
    .name-line {
        font-size: 2rem;
    }
    
    .title-line {
        font-size: 1.3rem;
    }
    
    .logo {
        max-width: 220px;
        max-height: 80px;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .contact-icons {
        justify-content: center;
    }
    
    .icon-link {
        width: 45px;
        height: 45px;
    }
    
    .title-link {
        display: block;
        margin: 0.5rem 0;
    }
    
    .floating-menu {
        top: 1rem;
        right: 1rem;
    }
    
    .menu-icon {
        width: 40px;
        height: 40px;
    }
}

/* 页面三特定样式 - 作品集页面 */

/* 页面四特定样式 - 观点页面 */
.page4-body {
    padding: 2rem;
    background-color: #f9f9f9;
}

.idea-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.idea-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
}

.idea-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    font-style: italic;
    font-size: 1.2rem;
}

.idea-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.idea-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.idea-text {
    line-height: 1.8;
}

.idea-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #444;
    position: relative;
    padding-bottom: 0.5rem;
}

.idea-text h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #333;
}

.idea-text p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #555;
}

blockquote {
    padding: 1.5rem;
    margin: 2rem 0;
    background-color: #f5f5f5;
    border-left: 4px solid #333;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6;
}

.idea-text.full-width {
    width: 100%;
}

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

.grid-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.grid-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.grid-item h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #333;
}

.grid-item p {
    font-size: 1rem;
    color: #666;
}

.idea-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.idea-list li {
    margin-bottom: 0.8rem;
    color: #555;
    position: relative;
}

.idea-list li:before {
    content: "•";
    color: #333;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.idea-conclusion {
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-top: 2rem;
}

.idea-conclusion h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.idea-conclusion h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* 响应式设计 */
@media (max-width: 900px) {
    .idea-container {
        padding: 1.5rem;
    }
    
    .idea-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page4-body {
        padding: 1rem;
    }
    
    .idea-container {
        padding: 1rem;
    }
    
    .idea-title {
        font-size: 1.8rem;
    }
    
    .idea-subtitle {
        font-size: 1rem;
    }
    
    .idea-text h2 {
        font-size: 1.5rem;
    }
    
    .idea-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .idea-title {
        font-size: 1.6rem;
    }
    
    .idea-text h2 {
        font-size: 1.3rem;
    }
    
    .idea-text p {
        font-size: 1rem;
    }
    
    blockquote {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .grid-item {
        padding: 1rem;
    }
}

/* PDF电子书页面样式 */
.pdf-body {
    padding: 1rem;
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ebook-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ebook-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
}

.ebook-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-style: italic;
}

.ebook-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.ebook-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-left, .control-center, .control-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.page-info {
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

#zoom-level {
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.page-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-input input {
    width: 60px;
    padding: 0.4rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.loading-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pdf-viewport {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    overflow: auto;
    background-color: #f0f2f5;
}

#pdf-canvas {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.thumbnail-container {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.thumbnail-container.open {
    right: 0;
}

.thumbnail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.thumbnail-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.thumbnails {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.thumbnail {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.thumbnail canvas {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail.active {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
}

/* 全屏模式 */
.ebook-viewer.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    border-radius: 0;
}

.ebook-viewer.fullscreen .ebook-controls {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .ebook-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-left, .control-center, .control-right {
        justify-content: center;
    }
    
    .pdf-viewport {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .pdf-body {
        padding: 0.5rem;
    }
    
    .ebook-title {
        font-size: 1.8rem;
    }
    
    .ebook-subtitle {
        font-size: 1rem;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
    }
    
    .thumbnail-container {
        width: 300px;
        right: -300px;
    }
    
    .thumbnails {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ebook-title {
        font-size: 1.6rem;
    }
    
    .control-center {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .floating-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
}