:root {
    --primary-color: #e74c3c;
    --secondary-color: #34495e;
    --text-color: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 首页区域 */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/ui/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-primary:hover {
    background: #c0392b;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--text-color);
}

/* 特性区域 */
.features-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 产品展示 */
.products-section {
    padding: 5rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-images {
    position: relative;
    overflow: hidden;
    height: 700px;
}

.product-image,
.product-detail {
    width: 100%;
    max-height: 800px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card:hover .product-detail {
    display: block;
    animation: fadeIn 0.3s ease;
}

.product-card h3 {
    padding: 1rem;
}

.product-card ul {
    list-style: none;
    padding: 0 1rem;
}

.product-card li {
    margin-bottom: 0.5rem;
}

.btn-detail {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-detail:hover {
    background: #c0392b;
}

/* 联系我们 */
.contact-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 页脚 */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    display: inline;
}

.beian-info {
    display: inline;
    margin-left: 5px;
}

.beian-info a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

/* 响应式处理 */
@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: row;
        font-size: 0.8rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .btn {
        display: block;
        margin: 1rem auto;
        width: 80%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .product-image,
    .gallery-image {
        height: 200px;
    }
}

/* 图片通用样式 */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 产品图片样式 */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-image:hover {
    transform: scale(1.05);
}

/* 缩略图样式 */
.thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* 图片画廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-item {
    position: relative;
    cursor: pointer;
}

.social-icon {
    font-size: 2rem;
    color: var(--white);
    transition: color 0.3s;
}

.social-icon:hover {
    color: #f1f1f1;
}

.qr-code {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.qr-code img {
    width: 120px;
    height: 120px;
    display: block;
}

.social-item:hover .qr-code {
    display: block;
}

/* 直接显示的二维码区域 */
.qr-display {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.qr-box {
    text-align: center;
}

.qr-box img {
    width: 100px;
    height: 100px;
    display: block;
    background: white;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.qr-box p {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0;
}

/* 保持原有的悬浮二维码样式 */
.social-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .qr-display {
        justify-content: center;
    }
    
    .qr-box img {
        width: 80px;
        height: 80px;
    }
}

/* 加盟模式部分样式 */
.franchise-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.franchise-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.franchise-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.card-price {
    text-align: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.unit {
    color: #666;
    font-size: 1rem;
}

.card-content {
    padding: 1.5rem;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-content li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .franchise-grid {
        grid-template-columns: 1fr;
    }
    
    .franchise-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .product-images {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .product-images {
        height: 400px;
    }
}