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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #F5E6D3;
}

header {
    background: #8B4513;
    color: #fff;
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
}

nav ul li a.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

nav ul li a:hover {
    color: #FFE4C4;
    transition: color 0.3s;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    padding: 0 1rem;
}

/* 添加响应式设计 */
@media screen and (max-width: 1200px) {
    nav ul li a {
        padding: 0.5rem 0.6rem;
        font-size: 13px;
    }
}

@media screen and (max-width: 992px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
}

/* Banner样式 */
.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 1rem;
    border: none;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Contact页面布局样式 */
#contact {
    max-width: 1200px;
    margin: 4rem auto;
}

/* 上部分样式 */
.contact-header {
    text-align: left;
    background-color: #FFF8EF;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
    padding: 2rem;
}

#contact h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.contact-intro {
    max-width: 800px;
}

.contact-intro h2 {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* 下部分样式 */
.contact-bottom {
    display: flex;
    background-color: #FFF8EF;
    border-radius: 0 0 8px 8px;
}

.contact-left {
    flex: 1;
    padding: 2rem;
    border-right: 1px solid #DEB887;
}

.contact-right {
    flex: 1;
    padding: 2rem;
}

.contact-left h3,
.contact-right h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 2rem;
}

.contact-desc {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #8B4513;
    font-size: 1.2rem;
    width: 24px;
}

/* 表单样式 */
#contactForm {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #DEB887;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #FFF;
}

textarea {
    height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background: #8B4513;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    width: 100%;
}

button[type="submit"]:hover {
    background: #A0522D;
}

/* 响应式调整 */
@media screen and (max-width: 992px) {
    .contact-bottom {
        flex-direction: column;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        border-right: none;
    }
}

@media screen and (max-width: 768px) {
    #contact {
        margin: 2rem auto;
    }

    #contact h1 {
        font-size: 2rem;
    }

    .contact-intro h2 {
        font-size: 1.5rem;
    }

    .contact-left h3,
    .contact-right h3 {
        font-size: 1.5rem;
    }
}

/* 新的 footer 样式 */
footer {
    background: #8B4513;
    color: #fff;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #FFE4C4;
}

.footer-section p {
    color: #FFE4C4;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #FFE4C4;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: #FFE4C4;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

.footer-section i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 228, 196, 0.2);
}

.footer-bottom p {
    color: #FFE4C4;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #FFE4C4;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-section ul li a:hover {
        padding-left: 0;
    }
}

/* Banner显示控制样式 */
#banner {
    transition: opacity 0.3s ease-in-out;
}

#banner.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 调整容区域的上边距 */
section:not(#banner) {
    margin-top: 2rem;
}

/* 当 banner 隐藏时，为其他部分添加额外的上边距 */
body:not([data-showing-banner]) section:not(#banner):first-of-type {
    margin-top: 6rem;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.nav-link.active {
    /* 可以添加一些激活状态的样式 */
    color: #your-active-color;
    font-weight: bold;
}

/* 通用section样式 */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8B4513;
}

/* Products section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: #FFF8EF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3, .product-card p {
    padding: 1rem;
    margin: 0;
}

/* Customization section */
.custom-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.custom-option {
    background: #FFF8EF;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.custom-option img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Cases section */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case {
    background: #FFF8EF;
    border-radius: 8px;
    overflow: hidden;
}

.case img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case h3, .case p {
    padding: 1rem;
    margin: 0;
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content img {
    width: 100%;
    border-radius: 8px;
}

/* Articles section */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #FFF8EF;
    border-radius: 8px;
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3, .article-card p {
    padding: 1rem;
    margin: 0;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 1rem;
    background: #8B4513;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .section-content {
        padding: 2rem 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
}

/* Home section 样式 */
.home-intro {
    background-color: #FFF8EF;
    padding: 4rem 2rem;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h1 {
    font-size: 2.8rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.4rem;
    color: #A0522D;
    margin-bottom: 3rem;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.4rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

.intro-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:first-child {
    background: #8B4513;
    color: #fff;
}

.cta-button.secondary {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

/* 响应式调整 */
@media screen and (max-width: 992px) {
    .intro-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .intro-content h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
    }
    
    .intro-cta {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Private Label section 样式 */
.trace-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #FFF8EF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
}

.trace-content {
    text-align: center;
}

.trace-content h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.trace-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.trace-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trace-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #DEB887;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.trace-form input:focus {
    outline: none;
    border-color: #8B4513;
}

.trace-form button {
    padding: 1rem 2rem;
    background: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.trace-form button:hover {
    background: #A0522D;
}

.trace-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.result-container {
    display: none;
    padding: 1.5rem;
    margin-top: 1rem;
    background: #fff;
    border-radius: 4px;
    text-align: left;
}

.result-container.success {
    display: block;
    border: 2px solid #4CAF50;
}

.result-container.error {
    display: block;
    border: 2px solid #f44336;
    color: #f44336;
}

.result-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-label {
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .trace-form {
        flex-direction: column;
    }
    
    .trace-form button {
        width: 100%;
    }
}

/* 语言切换按钮样式 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid #FFE4C4;
    color: #FFE4C4;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #FFE4C4;
    color: #8B4513;
}

.lang-btn.active {
    background: #FFE4C4;
    color: #8B4513;
}

@media screen and (max-width: 992px) {
    .language-switcher {
        margin: 1rem 0 0;
    }
}

/* 提示框样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #4CAF50;
}

.toast.error i {
    color: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 产品信息录入页面样式 */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #FFF8EF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
}

.product-form {
    display: grid;
    gap: 1.5rem;
}

.product-form .form-group {
    display: grid;
    gap: 0.5rem;
}

.product-form label {
    font-weight: 500;
    color: #8B4513;
}

.product-form input,
.product-form textarea {
    padding: 0.8rem;
    border: 2px solid #DEB887;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.product-form input:focus,
.product-form textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.submit-btn {
    background: #8B4513;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #A0522D;
}

.result-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #DEB887;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.trace-code {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #DEB887;
}

.copy-btn {
    background: none;
    border: none;
    color: #8B4513;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: #A0522D;
}

.download-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 0.8rem;
    background: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background: #A0522D;
}

@media screen and (max-width: 768px) {
    .admin-container {
        margin: 1rem;
        padding: 1rem;
    }
}

/* 产品信息摘要样式 */
.product-summary {
    width: 100%;
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #DEB887;
    margin-top: 1rem;
}

.product-summary h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.summary-item {
    display: flex;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item .label {
    font-weight: 500;
    color: #8B4513;
    width: 100px;
    flex-shrink: 0;
}

/* 溯源结果页面样式 */
.trace-result-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.trace-result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.company-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.trace-result-header h1 {
    color: #8B4513;
    font-size: 2rem;
    margin: 0;
}

.trace-info-card {
    background: #FFF8EF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    overflow: hidden;
}

.card-header {
    background: #8B4513;
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 1.8rem;
}

.card-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.info-grid {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.05);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #8B4513;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.info-value {
    color: #333;
    font-weight: 500;
}

/* 溯源结果页面的额外样式 */
.info-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.05);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: #FFF8EF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 1.5rem;
}

.info-content {
    margin-left: 1rem;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
}

.authenticity-badge {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: #f8fff8;
    border-radius: 8px;
    color: #4CAF50;
}

.authenticity-badge i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.authenticity-badge span {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.verify-time {
    font-size: 0.9rem;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.05);
}

.error-message i {
    font-size: 3rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.error-message p {
    color: #666;
    font-size: 1.1rem;
} 