/* === IZUMIKAWA STUDIO - MAIN HOMEPAGE STYLES === */

/* === VISUAL ARCHIVE STYLE === */
:root {
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-sub: #777777;
    --accent: #d00000;
    --nav-bg: rgba(255,255,255,0.9);
    --border: #e5e5e5;
}

body.dark-mode {
    --bg-color: #0a0a0a;
    --text-main: #ffffff;
    --text-sub: #888888;
    --nav-bg: rgba(10,10,10,0.9);
    --border: #333333;
}

body { 
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-main); 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    transition: background 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    box-sizing: border-box;
}

/* === Header & Hero === */
.header {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -1px;
}

.header-controls {
    display: flex;
    gap: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'Times New Roman', serif;
    font-size: 6vw;
    margin: 0;
    letter-spacing: -0.02em;
}

.hero-meta {
    margin-top: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    text-transform: uppercase;
}

/* === PROJECT LIST === */
.project-list {
    max-width: 1200px;
    margin: 0 auto 150px;
    padding: 0 40px;
}

/* 通用项目样式 */
.project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    transition: all 0.3s ease;
}

.p-image { 
    width: 55%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f0f0; 
}

.p-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: grayscale(20%);
}

.project-row:hover .p-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.p-info {
    width: 35%;
}

.p-num {
    font-size: 60px;
    font-weight: 900;
    color: var(--border);
    margin-bottom: 20px;
    line-height: 1;
}

.p-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.p-cat {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.p-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    text-align: justify;
}

.project-row:nth-child(even) {
    flex-direction: row-reverse;
}

.project-row:nth-child(even) .p-info,
.project-row:nth-child(even) .p-desc {
    text-align: right;
}

/* ================================================================= */
/* BD 项目特殊样式 */
/* ================================================================= */
.bd-special {
    border: 2px solid #000; 
    padding: 0; 
    position: relative; 
    background: #fff;
    overflow: hidden;
    margin-bottom: 150px;
    cursor: pointer;
}

.bd-marquee {
    background: #000;
    color: #fff;
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: 2px solid #000;
}

.bd-marquee span {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace; 
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.bd-inner {
    display: flex;
    align-items: stretch;
    height: 320px;
}

.bd-img-box {
    width: 50%;
    border-right: 2px solid #000;
    overflow: hidden;
    position: relative;
}

.bd-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: grayscale(100%) contrast(1.2);
    transition: 0.2s;
}

.bd-text-box {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.bd-code {
    position: absolute;
    top: 20px;
    right: 20px;
    border: 1px solid #000;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
}

.bd-h {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    line-height: 0.9;
    text-transform: uppercase;
}

.bd-sub {
    font-size: 14px;
    margin-top: 15px;
    color: #666;
}

.bd-special:hover .bd-img-box img {
    filter: invert(1);
    transform: scale(1.1);
}

.bd-special:hover .bd-text-box {
    background: #000;
    color: #fff;
}

.bd-special:hover .bd-code {
    border-color: #fff;
}

.bd-special:hover .bd-sub {
    color: #ccc;
}

/* ================================================================= */
/* MIRROR SITE 项目特殊样式 */
/* ================================================================= */
.mirror-special {
    border: 3px solid #000;
    padding: 0;
    background: #000;
    color: #fff;
    overflow: hidden;
    margin-bottom: 150px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}

.mirror-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.6s;
}

.mirror-special:hover::before {
    left: 100%;
}

.mirror-inner {
    padding: 80px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mirror-num {
    font-size: 120px;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    line-height: 1;
    margin-bottom: 20px;
}

.mirror-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.mirror-cat {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: block;
    opacity: 0.7;
}

.mirror-desc {
    font-size: 15px;
    color: #ccc;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.mirror-special:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mirror-special:hover .mirror-num {
    color: rgba(255,255,255,0.15);
}

.mirror-special:hover .mirror-title {
    letter-spacing: 6px;
}

/* === Footer === */
.footer {
    padding: 50px 0;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }
    
    .project-list {
        padding: 0 20px;
    }
    
    /* BD卡片适配 */
    .bd-inner {
        flex-direction: column;
        height: auto;
    }
    
    .bd-img-box {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 2px solid #000;
    }
    
    .bd-text-box {
        width: 100%;
        padding: 30px 20px;
    }
    
    /* Mirror卡片适配 */
    .mirror-inner {
        padding: 60px 30px;
    }
    
    .mirror-num {
        font-size: 80px;
    }
    
    .mirror-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    /* 普通项目适配 */
    .project-row {
        flex-direction: column !important;
        gap: 20px;
    }
    
    .p-image,
    .p-info {
        width: 100%;
        text-align: left !important;
    }
    
    .p-desc {
        display: none;
    }
}