/* 德丰粮仓样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #2c1810;
    background-color: #f8f4e8;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #cd853f 100%);
    color: #f8f4e8;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #f8f4e8;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #f8f4e8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 80%;
}

/* 英雄区域 */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f4e8 0%, #e6d7c3 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 69, 19, 0.05) 10px, rgba(139, 69, 19, 0.05) 20px);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0522d;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #2c1810;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #f8f4e8;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #8b4513;
    border-color: #8b4513;
}

.btn-secondary:hover {
    background-color: #8b4513;
    color: #f8f4e8;
    transform: translateY(-2px);
}

/* 复古相框 */
.vintage-frame {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transform: rotate(-2deg);
}

.vintage-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    pointer-events: none;
}

.frame-content {
    background: #f8f4e8;
    padding: 2rem;
    border-radius: 6px;
    text-align: center;
    color: #2c1810;
}

.frame-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #8b4513;
}

.frame-content p {
    font-size: 1.1rem;
    color: #a0522d;
    font-style: italic;
}

/* 关于我们 */
.about {
    padding: 4rem 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #2c1810;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f4e8 0%, #e6d7c3 100%);
    border-radius: 10px;
    border: 2px solid #d2b48c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #a0522d;
    font-weight: 600;
}

/* 产品区域 */
.products {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f4e8 0%, #e6d7c3 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #d2b48c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(160, 82, 45, 0.1) 100%);
}

.product-image.rice {
    background-image: url('https://images.unsplash.com/photo-1586201375761-83865001e31c?w=400&h=300&fit=crop');
    background-size: cover;
    background-position: center;
}

.product-image.wheat {
    background-image: url('https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?w=400&h=300&fit=crop');
    background-size: cover;
    background-position: center;
}

.product-image.corn {
    background-image: url('https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?w=400&h=300&fit=crop');
    background-size: cover;
    background-position: center;
}

.product-image.beans {
    background-image: url('https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?w=400&h=300&fit=crop');
    background-size: cover;
    background-position: center;
}

.product-image.sorghum {
    background-image: url('https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?w=400&h=300&fit=crop');
    background-size: cover;
    background-position: center;
}

.product-image.glutinous {
    background-image: url('https://images.unsplash.com/photo-1586201375761-83865001e31c?w=400&h=300&fit=crop');
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.product-info h3 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #2c1810;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a0522d;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #f8f4e8 0%, #e6d7c3 100%);
    border-radius: 6px;
    border: 1px solid #d2b48c;
    margin-top: auto;
    align-self: center;
    min-width: 150px;
}

/* 联系我们 */
.contact {
    padding: 4rem 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: #8b4513;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: #8b4513;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #2c1810;
    font-size: 1.1rem;
}

.notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f4e8 0%, #e6d7c3 100%);
    border-radius: 8px;
    border-left: 4px solid #8b4513;
}

.notice h4 {
    color: #8b4513;
    margin-bottom: 1rem;
}

.notice p {
    color: #2c1810;
    margin-bottom: 0.5rem;
}

/* 表单样式 */
.contact-form h3 {
    color: #8b4513;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #8b4513;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #d2b48c;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f8f4e8;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 100%);
    color: #f8f4e8;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #d2b48c;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #f8f4e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d2b48c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.products-grid,
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}

/* 装饰元素 */
.vintage-frame::after {
    content: '❦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #8b4513;
    background: #f8f4e8;
    padding: 0 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
} 