/* ===== 重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #333;
    --accent: #B71C1C;
    --light: #f9f9f9;
    --gold: #D4AF37;
    --gray: #e0e0e0;
    --dark-gray: #888;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 40px 0 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
}

/* ===== 头部导航 ===== */
.homeheader {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 333;
    padding: 15px 0;
}

.homeheader .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand-section {
    flex: 0 0 25%;
    text-align: center;
    padding: 0 15px;
}

.nav-section {
    flex: 0 0 15%;
    text-align: center;
}

.headerh1 {
    position: relative;
}

.logo-circle {
    width: auto-fit;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 5px;
    transition: var(--transition);
    margin: 0 auto;
    overflow: hidden;
}

.headerh1:hover .logo-circle {
    transform: scale(1.05);
    border-color: var(--accent);
}

.headerh1_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.headerh1 h1 {
    font-size: 2.2rem;
    margin-top: 15px;
    letter-spacing: 2px;
    font-weight: 400;
}

.headerh1 p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.headerh2 {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: var(--transition);
}

.headerh2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.headerh2:hover {
    color: var(--accent);
}

.headerh2:hover:after {
    width: 80%;
}
/* 滚动时的收缩状态 */
/*.homeheader.scrolled {
    padding: 5px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03);
    transform: translateY(-100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}*/
/* 配套CSS优化 */
.homeheader.scrolled {
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.homeheader.scrolled .headerh1 {
    display: none;
}

.homeheader.scrolled .headerh2 {
    font-size: 1rem;
    padding: 8px 12px;
}

/* 补充CSS变量定义 */
:root {
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary: #333;
    --accent: #e74c3c;
}

/* 过渡效果定义 */
@keyframes collapseHeader {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* ===== 轮播图 ===== */
.lunbo {
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lunbo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease;
}

/* ===== 产品特点 ===== */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 50px 0;
    gap: 20px;
}

.feature {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature p {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* ===== 产品展示区 ===== */
.reactions {
    margin: 60px 0;
}

.reactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.reaction {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 350px;
    transition: var(--transition);
}

.reaction:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.reaction_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.reaction_p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    z-index: 333;
}

.reaction:hover .reaction_p {
    opacity: 1;
}

.reaction:hover .reaction_img {
    transform: scale(1.05);
}

/* ===== 尺码指南 ===== */
.size-guide {
    margin: 60px 0;
}

.size-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

th {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* ===== 固定按钮 ===== */
.fixed_button {
    position: fixed;
    right: 30px;
    top: 63%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 15px 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    border: 1px solid #eee;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 8px 0;
    font-size: 1.5rem;
    background: var(--light);
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-icon:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 8px 0;
    font-size: 1.8rem;
    background: var(--accent);
    color: white;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}

.buy-btn:hover {
    background: #8B0000;
    transform: scale(1.1);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer .container {
    position: relative;
}

.footer_img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.footer-section {
    padding: 0 10px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-section p {
    margin-bottom: 15px;
    color: #ddd;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    transition: var(--transition);
    color: #ddd;
}

.footer-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .homeheader .container {
        flex-wrap: wrap;
    }
    
    .brand-section {
        flex: 0 0 100%;
        order: -1;
        margin-bottom: 20px;
    }
    
    .nav-section {
        flex: 0 0 50%;
        margin-bottom: 15px;
    }
    
    .lunbo {
        height: 50vh;
    }
    
    .fixed_button {
        top: auto;
        bottom: 20px;
        top: unset;
        transform: none;
        flex-direction: row;
        border-radius: 30px;
        padding: 10px 15px;
    }
    
    .fixed_button a {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .headerh1 h1 {
        font-size: 1.8rem;
    }
    
    .headerh2 {
        font-size: 1rem;
        padding: 10px;
    }
    
    .lunbo {
        height: 40vh;
        min-height: 300px;
    }
    
    .reactions-grid {
        grid-template-columns: 1fr;
    }
    
    .feature {
        min-width: 100%;
    }
    
    .fixed_button {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .buy-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .headerh1 h1 {
        font-size: 1.6rem;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .fixed_button {
        padding: 6px 10px;
    }
}