/* 江原颂主题主样式文件 */

/* ===== 基础样式 ===== */
:root {
    /* 品牌色彩 */
    --primary-red: #9c1a1c;
    --primary-black: #1a1a1a;
    --primary-gold: #c9a86a;
    --primary-blue: #3a5b7a;
    --primary-green: #556b2f;
    
    /* 中性色 */
    --paper-white: #f5f1e8;
    --ink-gray: #6b675c;
    --shadow-brown: #d4c9b1;
    --border-color: #e6e1d5;
    
    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Serif SC", "思源宋体", serif;
    color: var(--primary-black);
    background-color: var(--paper-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ===== 排版 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--primary-black);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
    border-left: 4px solid var(--primary-gold);
    padding-left: var(--space-sm);
}

h3 {
    font-size: var(--text-2xl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    border-left: none;
    padding-left: 0;
}

/* ===== 链接 ===== */
a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* ===== 按钮 ===== */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button:hover {
    background-color: var(--primary-gold);
    color: var(--primary-black);
    text-decoration: none;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.button-secondary:hover {
    background-color: var(--primary-red);
    color: white;
}

/* ===== 首页样式 ===== */
.homepage .hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: var(--space-lg);
}

.hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-sm);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    color: var(--primary-gold);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* 价值三角 */
.value-triangle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.value-item {
    text-align: center;
    padding: var(--space-lg);
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-md);
}

.value-item.culture .value-icon {
    background: var(--primary-red);
}

.value-item.agriculture .value-icon {
    background: var(--primary-green);
}

.value-item.cooperation .value-icon {
    background: var(--primary-blue);
}

/* 风物网格 */
.fengwu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.fengwu-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fengwu-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fengwu-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fengwu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.fengwu-thumbnail {
    height: 200px;
    overflow: hidden;
}

.fengwu-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fengwu-card:hover .fengwu-thumbnail img {
    transform: scale(1.05);
}

.fengwu-content {
    padding: var(--space-md);
}

.fengwu-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
}

.fengwu-meta {
    color: var(--ink-gray);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.fengwu-excerpt {
    margin-bottom: var(--space-sm);
    color: var(--primary-black);
}

.fengwu-link {
    display: inline-block;
    color: var(--primary-red);
    font-weight: bold;
}

/* 时节显示 */
.seasonal-display {
    background: white;
    border-radius: 8px;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.seasonal-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.current-term {
    font-size: var(--text-3xl);
    color: var(--primary-red);
    margin-top: var(--space-xs);
}

/* ===== 风物详情页样式 ===== */
.fengwu-detail .back-button {
    display: inline-block;
    margin: var(--space-md) 0;
    color: var(--ink-gray);
}

.fengwu-detail .back-button:hover {
    color: var(--primary-red);
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.product-gallery .main-image {
    margin-bottom: var(--space-sm);
}

.product-gallery .main-image img {
    width: 100%;
    border-radius: 8px;
}

.gallery-thumbs {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-red);
}

.product-identity {
    padding: var(--space-md);
}

.product-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-xs);
}

.alternative-name {
    font-size: var(--text-lg);
    color: var(--ink-gray);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.product-meta {
    margin: var(--space-md) 0;
}

.meta-item {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: flex-start;
}

.meta-label {
    font-weight: bold;
    min-width: 80px;
    color: var(--primary-black);
}

.meta-value {
    color: var(--ink-gray);
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.product-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: bold;
}

.tag-nonei {
    background-color: #ffeaea;
    color: var(--primary-red);
}

.tag-geo {
    background-color: #eaf4ff;
    color: var(--primary-blue);
}

.tag-traditional {
    background-color: #fff8e1;
    color: #b8860b;
}

.tag-organic {
    background-color: #e8f5e9;
    color: var(--primary-green);
}

/* 详情导航 */
.detail-navigation {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: var(--space-sm) 0;
    overflow-x: auto;
}

.nav-list li {
    margin: 0 var(--space-sm);
}

.nav-list a {
    white-space: nowrap;
    color: var(--ink-gray);
    padding: var(--space-xs) var(--space-sm);
}

.nav-list a:hover {
    color: var(--primary-red);
}

/* 详情区块 */
.detail-section {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-of-type {
    border-bottom: none;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.producer-profile {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.producer-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: var(--primary-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
}

.producer-info {
    flex: 1;
}

.producer-name {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.producer-story blockquote {
    font-style: italic;
    color: var(--ink-gray);
    border-left: 3px solid var(--primary-gold);
    padding-left: var(--space-md);
    margin: var(--space-md) 0;
}

/* 通达之径 */
.path-notice {
    text-align: center;
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
    color: var(--primary-black);
}

.path-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.path-button {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 8px;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.path-button:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* 模态框 */
.producer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-field {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.modal-notice {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    background: #f8f9fa;
    border-radius: 4px;
    font-size: var(--text-sm);
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
    }
    
    h1 {
        font-size: var(--text-3xl);
    }
    
    h2 {
        font-size: var(--text-2xl);
    }
    
    .visual-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .value-triangle,
    .fengwu-grid.columns-3,
    .fengwu-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .producer-profile {
        flex-direction: column;
    }
    
    .nav-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: var(--space-xs) 0;
    }
    
    .nav-list li {
        margin: 0 var(--space-xs);
    }
    
    .path-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .path-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 100%;
        max-width: 300px;
        margin-bottom: var(--space-xs);
    }
}