* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f4e8;
    background-image: url('images/china-pattern.png');
    background-repeat: repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(248, 244, 232, 0.9), rgba(248, 244, 232, 0.95));
    z-index: -1;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #c12c1f;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 60px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

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

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav ul li a:hover {
    color: #c12c1f;
    background-color: rgba(193, 44, 31, 0.1);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c12c1f;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

main {
    margin-top: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5%;
}

.main-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0d6c2;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2, #c12c1f);
}

.video-section {
    flex: 1;
    position: relative;
}

.video-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    border: 2px solid #e0d6c2;
    transition: transform 0.3s;
}

video:hover {
    transform: scale(1.02);
}

.featured-section {
    flex: 1;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.featured-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    width: 100%;
    border: 1px solid #e0d6c2;
    position: relative;
}

.featured-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2);
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item h3 {
    padding: 1.2rem;
    text-align: center;
    color: #c12c1f;
    font-weight: 500;
    font-size: 1.2rem;
}

section {
    padding: 3rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2, #c12c1f);
}

h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #c12c1f;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2, #c12c1f);
}

#featured {
    padding-top: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e0d6c2;
}

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

footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2, #c12c1f);
}

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

.contact-info h3,
.social-media h3 {
    margin-bottom: 1.5rem;
    color: #c12c1f;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.4rem;
}

.contact-info h3::after,
.social-media h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.qrcode-item {
    position: relative;
    cursor: pointer;
}

.social-icon {
    width: 45px;
    height: 45px;
    transition: all 0.3s;
    border-radius: 50%;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qrcode-item:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    width: 180px;
    text-align: center;
    border: 1px solid #e0d6c2;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.qrcode-item:hover .qrcode-popup {
    display: block;
}

.qrcode-popup img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.qrcode-popup p {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .video-section,
    .featured-section {
        width: 100%;
    }
    
    video {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .main-content {
        padding: 1rem;
        margin-top: 80px;
    }

    nav {
        flex-direction: column;
        padding: 0.5rem;
    }

    .logo {
        height: 50px;
    }

    nav ul {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    nav ul li {
        margin: 0.3rem;
    }

    nav ul li a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-item img {
        height: 150px;
    }

    .featured-item h3 {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .qrcode-popup {
        width: 130px;
    }
    
    .qrcode-popup img {
        width: 110px;
        height: 110px;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }

    .modal-content img {
        width: 180px;
        height: 180px;
    }

    button, 
    .social-button,
    .qrcode-item {
        min-height: 44px;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 0.8rem;
    }

    .featured-item img {
        height: 120px;
    }

    .modal-content {
        width: 95%;
        margin: 25% auto;
    }

    .modal-content img {
        width: 150px;
        height: 150px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img, a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0d6c2;
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2, #c12c1f);
}

.about-content p {
    margin-bottom: 1.8rem;
    line-height: 1.8;
    text-align: justify;
    font-size: 1.1rem;
    color: #444;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0d6c2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2, #c12c1f);
}

.contact-content .contact-info,
.contact-content .social-media {
    padding: 1.5rem;
}

.contact-content h3 {
    color: #c12c1f;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.4rem;
}

.contact-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c12c1f, #e0d6c2);
}

.contact-content p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #444;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-name h1 {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #c12c1f;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid #e0d6c2;
}

.company-name h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #c12c1f, transparent);
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .company-name h1 {
        font-size: 1.4rem;
        padding-left: 0;
        border-left: none;
        border-bottom: 2px solid #e0d6c2;
        padding-bottom: 0.5rem;
    }
    
    .company-name h1::after {
        display: none;
    }
}

.social-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
}

.social-button img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.social-button span {
    color: #333;
    font-size: 14px;
}

.social-button:hover {
    transform: scale(1.1);
}

.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.modal-content img {
    width: 200px;
    height: 200px;
    margin: 10px 0;
}

.modal-content p {
    color: #666;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .modal-content {
        width: 80%;
        margin: 30% auto;
    }
    
    .modal-content img {
        width: 150px;
        height: 150px;
    }
} 