:root {
    /* Color Palette - Light Mode */
    --bg-color: #fcfcfc;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-color: #00A1D6;
    --border-color: #eaeaea;
    --input-bg: #f5f5f5;
    --link-hover: #000000;
    
    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 120px;
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-color: #121212;
    --bg-card: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --input-bg: #252525;
    --link-hover: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin-bottom: var(--section-spacing);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.dark-mode header {
    background: rgba(30, 30, 30, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: var(--font-main);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    padding: 8px 16px;
    border-radius: 20px;
    width: 240px;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.search-bar:focus-within {
    border-color: var(--accent-color);
    background-color: var(--bg-card);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar .search-icon {
    display: flex;
    align-items: center;
    color: #999;
    cursor: pointer;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--input-bg);
    color: var(--accent-color);
}

.theme-toggle svg {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Toggle Logic: Show/Hide Icons */
.theme-toggle .icon-moon {
    display: none;
}

.theme-toggle .icon-sun {
    display: block;
}

body.dark-mode .theme-toggle .icon-sun {
    display: none;
}

body.dark-mode .theme-toggle .icon-moon {
    display: block;
    animation: rotate-in 0.5s ease;
}

@keyframes rotate-in {
    from { transform: rotate(-90deg) scale(0.5); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

/* Hero Social Icons */
.hero-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Douyin Hover Effect */
.social-btn.douyin:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Instagram Hover Effect */
.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-color: transparent;
}

/* Dark Mode Adjustments for Social Icons */
body.dark-mode .social-btn.douyin:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Hero Section */
.hero {
    margin-bottom: var(--section-spacing);
    position: relative;
    width: 100%;
    padding: 140px 0; /* More vertical breathing room */
    background-image: url('../assets/images/IMG_3777.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin-top: 0;
}

/* Dark Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600; /* Bolder for better readability on image */
    margin-bottom: 24px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    max-width: 600px;
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-avatar {
    flex: 0 0 auto;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.hero-avatar img {
    width: auto;
    max-width: 110px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-avatar img.logo-transparent {
    width: auto;
    max-width: none; /* Allow width to scale with height */
    height: 140px; /* Fixed height for consistent sizing */
    /* Remove card styling for transparent look */
    border-radius: 0;
    box-shadow: none;
    background: none;
    backdrop-filter: none;
    transition: transform 0.3s ease;
}

.hero-avatar img.logo-transparent:hover {
    transform: translateY(-5px) scale(1.05);
}

.hero-avatar img:hover {
    transform: translateY(-5px);
}

/* Override Social Icons for Hero */
.hero .social-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero .social-btn:hover {
    transform: translateY(-3px);
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Mobile Responsive for Hero */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        margin-top: 0;
    }
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    .hero-text {
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        margin: 0 auto;
        font-size: 1rem;
    }
    .hero-social {
        justify-content: center;
    }
}

/* 318 Banner */
.full-width-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Photography Grid */
.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* Split Section Layout */
.split-section-container {
    display: flex;
    gap: 40px;
    margin-bottom: var(--section-spacing);
    align-items: stretch; /* Ensure both columns are same height */
}

.half-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .split-section-container {
        flex-direction: column;
        gap: 60px;
    }
}

/* Photography Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%; /* Fill the available height from flex stretch */
    min-height: 400px; /* Minimum height to ensure visibility if articles are short */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 3;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s; /* Delay to show after slide transition */
}

.carousel-slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    right: 30px; /* Align to right */
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    width: 20px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px; /* Fixed height on mobile */
    }
}

/* Gallery Grid */
/* ... (gallery styles can remain or be ignored) ... */

/* Article List in Split Layout */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%; /* Fill the container */
    flex: 1;
}

.article-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Fill the list container */
    padding: 35px; /* More padding for a substantial look */
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px; /* Match carousel radius */
    transition: all 0.3s ease;
    text-decoration: none; /* Ensure no underline on the block */
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.article-content-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.article-content-wrapper .article-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: block;
}

.article-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.article-arrow {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.article-item:hover .article-arrow {
    background: var(--text-primary);
    color: var(--bg-card);
    transform: translateX(5px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    height: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1; /* Square thumbnails */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.8);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease;
    transform: scale(1.05);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers area without distortion */
    object-position: center; /* Center focus */
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
    text-align: left;
}

.carousel-slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0; /* Hide initially, show on hover */
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: white;
    width: 45px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Article List */
.article-list {
    display: grid;
    gap: 20px;
}

.article-item {
    display: block;
    padding: 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.article-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.article-item .article-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Resume Section */
.resume-preview {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--text-primary);
    color: var(--bg-card);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.btn-download:hover {
    opacity: 0.8;
    color: var(--bg-card);
}

/* Guestbook Glassmorphism */
.guestbook-section {
    position: relative;
    padding: 40px 0;
}

.glass-container {
    position: relative;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

body.dark-mode .glass-container {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Decorative Blobs */
.glass-decoration {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 161, 214, 0.1), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.guestbook-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.dark-mode .glass-card {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Styling */
.guestbook-form h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 161, 214, 0.1);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.4);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Message Grid */
.guestbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-card {
    transition: transform 0.3s ease;
}

.message-card:hover {
    transform: translateY(-3px);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.meta {
    display: flex;
    flex-direction: column;
}

.message-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

.message-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Scrollbar for message grid */
.guestbook-grid::-webkit-scrollbar {
    width: 6px;
}

.guestbook-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.guestbook-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

body.dark-mode .guestbook-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .guestbook-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* Feedback Section Styles */
.feedback-section {
    margin-top: var(--section-spacing);
    margin-bottom: var(--section-spacing);
}

.feedback-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feedback-header {
    text-align: center;
    margin-bottom: 30px;
}

.feedback-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feedback-header span {
    color: var(--text-secondary);
}

.form-actions {
    text-align: right;
}

.btn-send {
    padding: 10px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-send:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: left;
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Essays / Notes Section Styles */
.section-subtitle {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-secondary);
    margin-left: 15px;
    letter-spacing: 1px;
}

.essays-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.essays-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Calendar Widget */
.calendar-widget {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

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

.calendar-nav {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.calendar-today-btn {
    font-size: 0.8rem;
    color: #00A8E8;
    background: rgba(0, 168, 232, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-days span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.calendar-days span:hover {
    background: var(--input-bg);
}

.calendar-days span.prev-month,
.calendar-days span.next-month {
    color: var(--text-secondary);
    opacity: 0.4;
}

.calendar-days span.active {
    background: #00A8E8;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 168, 232, 0.3);
}

/* Sidebar Text */
.sidebar-text {
    padding-left: 10px;
    position: relative;
}

.sidebar-text h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 5px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.sidebar-text h2 {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    opacity: 0.9;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.divider-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin-bottom: 20px;
    border-radius: 2px;
}

.sidebar-text p {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 6px;
    font-style: italic;
    opacity: 0.8;
}

/* Essay Content */
.essay-content {
    flex-grow: 1;
}

.paper-card {
    background: var(--bg-card);
    border-radius: 4px; /* Paper usually has sharp or small radius */
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
}

/* Add a rotated background paper effect */
.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border-radius: 4px;
    z-index: -1;
    transform: rotate(1deg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}

.paper-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.paper-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.paper-body {
    font-family: "Songti SC", "SimSun", serif; /* Serif font for essay feel */
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-primary);
}

.paper-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.paper-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.signature {
    color: var(--text-primary);
    font-family: "Brush Script MT", cursive;
    font-size: 1.5rem;
}

/* More Button */
.essays-more {
    text-align: center;
    margin-top: 60px;
}

.btn-more-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-more-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--input-bg);
}

/* Responsive */
@media (max-width: 900px) {
    .essays-container {
        flex-direction: column;
    }
    
    .essays-sidebar {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .sidebar-text {
        text-align: center;
    }
    
    .paper-card {
        padding: 30px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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