/* Font Face */
@font-face {
    font-family: 'PingFangQiaoMuTi';
    src: url('font/PingFangQiaoMuTi/PingFangQiaoMuTi-2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', 'Noto Serif SC', monospace;
    background-color: #fffef8;
    color: #2d2d2d;
    line-height: 1.7;
    font-size: 15px;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(252, 248, 227, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 251, 235, 0.4) 0%, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.container::before {
    content: none;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
}

.logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 5px;
}

.subtitle-chinese {
    font-size: 1.1em;
    color: #555;
    font-style: normal;
    font-family: 'Noto Serif SC', 'Courier Prime', serif;
    letter-spacing: 0.5px;
    font-weight: 400;
    margin-top: 2px;
    margin-bottom: 4px;
}

.dots-sequence {
    color: #888;
}

.dot-1 {
    animation: dot-1-blink 2s infinite;
}

.dot-2 {
    animation: dot-2-blink 2s infinite;
}

.dot-3 {
    animation: dot-3-blink 2s infinite;
}

.subtitle-english {
    font-size: 0.95em;
    color: #888;
    font-style: normal;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.3px;
    font-weight: 400;
    margin-bottom: 0;
}

/* Navigation */
nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.9em;
    padding: 6px 10px;
    border: 1px solid transparent;
    transition: color 0.2s ease;
    letter-spacing: 0.5px;
    font-family: 'Courier Prime', monospace;
}

.nav-link:hover {
    color: #333;
    border: none;
    background-color: transparent;
}



/* Sections */
.section {
    margin-bottom: 35px;
    padding: 0;
}

.section-title {
    font-family: 'Courier Prime', monospace;
    font-size: 1.3em;
    color: #666;
    margin-bottom: 25px;
    text-align: left;
    font-weight: normal;
    letter-spacing: 0.3px;
    position: relative;
}



.subsection-title {
    font-family: 'Courier Prime', 'Noto Serif SC', monospace;
    font-size: 1.4em;
    color: #333;
    margin: 30px 0 20px 0;
    font-weight: normal;
    letter-spacing: 0.5px;
    position: relative;
    text-align: left;
}

/* Terminal Window */
.terminal-window {
    border: 1px solid #e8e8e8;
    background-color: rgba(252, 252, 248, 0.8);
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.terminal-header {
    background-color: rgba(248, 248, 245, 0.9);
    color: #777;
    padding: 12px 20px;
    font-weight: normal;
    font-size: 0.85em;
    border-bottom: 1px solid #e8e8e8;
}

.terminal-title {
    font-family: 'Courier Prime', monospace;
}

.terminal-content {
    padding: 25px;
}

.typing-text {
    color: #444;
    font-weight: normal;
    margin-bottom: 15px;
}

.typing-text::after {
    content: '_';
    animation: blink 1.2s infinite;
    color: #888;
}

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

@keyframes dot-1-blink {
    0%, 16% { opacity: 1; }
    17%, 100% { opacity: 0.3; }
}

@keyframes dot-2-blink {
    0%, 16% { opacity: 0.3; }
    17%, 33% { opacity: 1; }
    34%, 100% { opacity: 0.3; }
}

@keyframes dot-3-blink {
    0%, 33% { opacity: 0.3; }
    34%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Content blocks */
.content-block {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-bottom: 30px;
    line-height: 1.8;
}

.content-block p {
    margin-bottom: 16px;
    color: #333;
}

.chinese-text {
    color: #555 !important;
    font-style: normal;
    padding-top: 15px;
    margin-top: 15px;
    font-family: 'Noto Serif SC', 'Courier Prime', serif;
}

.contact-email {
    margin-top: 12px;
    padding: 8px 0;
}

.email-text {
    color: #444;
    font-family: 'Courier Prime', monospace;
}

.contact-form {
    margin-top: 16px;
    padding: 8px 0;
}

.form-link {
    color: #555;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.form-link:hover {
    color: #333;
    text-decoration-color: #999;
}

/* Podcast grid */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.podcast-card {
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0; /* grid controls spacing */
    transition: transform 0.2s ease;
    position: relative;
}

.podcast-card:hover {
    transform: translateY(-1px);
}

.podcast-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #ddd;
    background-color: #fafafa;
    margin-bottom: 6px;
}

.podcast-cover-link:hover .podcast-cover {
    border-color: #bbb;
}

/* Responsive columns */
@media (max-width: 1024px) {
    .podcast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .podcast-grid { grid-template-columns: 1fr; }
}
.podcast-card:hover {
    transform: none;
}

.podcast-card h3 {
    font-family: 'Courier Prime', 'Noto Serif SC', monospace;
    font-size: 1.05em;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: normal;
}

.podcast-card h3 a {
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    cursor: pointer;
}

.podcast-card h3 a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #bbb;
    transition: width 0.25s ease;
}

.podcast-card h3 a:hover {
    color: #222;
}

.podcast-card h3 a:hover::after {
    width: 100%;
}

.podcast-desc {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.88em;
    line-height: 1.55;
    font-family: 'Noto Serif SC', 'Courier Prime', serif;
}

.podcast-links {
    display: inline-flex;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.podcast-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.72em;
    padding: 2px 7px;
    border: 1px solid #e0e0e0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-family: 'Courier Prime', monospace;
    background-color: rgba(250, 250, 250, 0.5);
}

.podcast-links a:hover {
    background-color: rgba(245, 245, 245, 0.9);
    border-color: #bbb;
    color: #444;
}

/* Footer */
footer {
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 12px;
    color: #777;
    font-size: 0.9em;
    font-family: 'Courier Prime', monospace;
}

.footer-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .typewriter-header h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }
    
    .typewriter-header h2 {
        font-size: 1em;
    }
    
    nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .podcast-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .podcast-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .typewriter-header h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .content-block {
        padding: 15px;
    }
    
    .podcast-card {
        padding: 15px;
    }
}

/* Glitch effect for special elements */
.glitch {
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 0;
}

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

/* Selection styling */
::selection {
    background-color: rgba(255, 235, 180, 0.8);
    color: #333;
}

/* Link styling */
a {
    color: #555;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 5px currentColor;
}

/* Contact page specific styles */
.nav-link.active {
    border: 1px solid #ddd;
    background-color: rgba(240, 240, 240, 0.5);
    box-shadow: none;
}

.contact-info {
    font-family: 'Courier Prime', monospace;
}

.contact-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.prompt {
    color: #666;
    font-weight: bold;
    margin-right: 8px;
}

.command {
    color: #888;
}

.output {
    color: #555;
    margin-bottom: 15px;
    margin-left: 20px;
}

.email-highlight {
    background-color: rgba(245, 245, 245, 0.8);
    padding: 5px 10px;
    border-left: 3px solid #ddd;
}

.services-list p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.typing-command {
    color: #666;
    animation: blink 1s infinite;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.method-card {
    border: 1px solid #ddd;
    background-color: rgba(250, 250, 250, 0.8);
    padding: 20px;
    transition: all 0.3s ease;
}

.method-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.method-card h4 {
    color: #555;
    font-family: 'Courier Prime', monospace;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-detail {
    background-color: rgba(245, 245, 245, 0.8);
    padding: 10px;
    border: 1px dotted #ccc;
    margin-top: 10px;
    text-align: center;
}

.ascii-art {
    margin-top: 40px;
    text-align: center;
}

.ascii-art pre {
    color: #777;
    font-size: 0.8em;
    background-color: rgba(245, 245, 245, 0.5);
    padding: 20px;
    border: 1px solid #ddd;
    display: inline-block;
} 

/* Overrides for podcast card alignment */
.podcast-card {
    display: flex;
    flex-direction: column;
}

.podcast-links {
    margin-top: auto;
} 