/* ========================================
   极简白色风 - 完整样式
   ======================================== */

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none !important;
    color: inherit;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

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

/* ========== 头部 ========== */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

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

/* ========== Logo 美化 ========== */
.logo {
    flex-shrink: 0;
    z-index: 1001;
}

.logo a {
    text-decoration: none !important;
}

.logo a:hover,
.logo a:focus,
.logo a:active {
    text-decoration: none !important;
}

/* Logo 图片 */
.logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

/* Logo 文字 - 美化版 */
.text-logo {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.text-logo:hover,
.text-logo:focus,
.text-logo:active {
    text-decoration: none !important;
}

/* 主标题 - 带渐变 */
.logo-main {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #1a1a2e 0%, #4f46e5 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
}

/* 副标题 - 小字 */
.logo-sub {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 8px;
    font-weight: 300;
    margin-top: 0px;
    -webkit-text-fill-color: #94a3b8;
    text-decoration: none !important;
}

/* ========== 桌面端导航 ========== */
.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav ul li {
    position: relative;
    white-space: nowrap;
}

.nav ul li a {
    color: #999;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

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

.nav ul li a:hover,
.nav ul li a.active {
    color: #2c2c2c;
    text-decoration: none !important;
}

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

/* ========== 汉堡菜单按钮 ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #2c2c2c;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 汉堡 → X 动画 */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== 移动端遮罩 ========== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block !important;
    opacity: 1;
}

/* ========== 轮播图 ========== */
.banner-slider {
    margin: 0 0 80px;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    display: block;
}

/* ========== 产品网格 ========== */
.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 5px;
    margin: 80px 0 60px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.product-item {
    text-align: center;
    transition: opacity 0.4s;
    background: #fff;
}

.product-item:hover {
    opacity: 0.8;
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f8f8f8;
}

.product-item a {
    text-decoration: none !important;
    display: block;
}

.product-item a:hover {
    text-decoration: none !important;
}

.product-item h3 {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2c2c2c;
    transition: all 0.3s;
}

.product-item h3:hover {
    overflow: visible;
    white-space: normal;
    background: #fff;
    position: relative;
    z-index: 10;
    padding: 0 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.price {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
    font-weight: 300;
}

/* ========== 产品详情 ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin: 60px 0;
}

.product-images .main-image img {
    width: 100%;
}

.thumb-list {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.thumb-list img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumb-list img:hover {
    opacity: 1;
}

.product-info h1 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.product-info .price {
    font-size: 28px;
    color: #2c2c2c;
    font-weight: 300;
}

/* ========== 表单 ========== */
.message-form {
    max-width: 500px;
    margin: 60px auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
    font-family: inherit;
    letter-spacing: 1px;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #2c2c2c;
}

.btn-submit {
    background: transparent;
    color: #2c2c2c;
    border: 1px solid #2c2c2c;
    padding: 15px 60px;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #2c2c2c;
    color: #fff;
}

/* ========== 底部 ========== */
.footer {
    border-top: 1px solid #f0f0f0;
    padding: 60px 0;
    margin-top: 80px;
    text-align: center;
    font-size: 12px;
    color: #ccc;
    letter-spacing: 2px;
}

.footer a {
    color: #999;
    text-decoration: none !important;
}

.footer a:hover {
    color: #2c2c2c;
    text-decoration: none !important;
}

/* ========================================
   响应式设计
   ======================================== */

/* ========== 平板端 ========== */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ========== 手机端 ========== */
@media (max-width: 768px) {
    /* 容器 */
    .container {
        padding: 0 16px;
    }
    
    /* 头部 */
    .header {
        padding: 12px 0;
    }
    
    .header .container {
        height: 56px;
    }
    
    /* Logo 手机端 */
    .logo img {
        max-height: 32px;
    }
    
    .logo-main {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .logo-sub {
        font-size: 10px;
        letter-spacing: 5px;
    }
    
    /* ===== 显示汉堡菜单 ===== */
    .menu-toggle {
        display: flex !important;
    }
    
    /* ===== 导航 - 从右侧滑出 ===== */
    .nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        max-width: 80% !important;
        height: 100vh !important;
        background: #ffffff !important;
        padding: 80px 25px 30px !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1) !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    
    .nav.active {
        right: 0 !important;
    }
    
    /* ===== 移动端菜单列表 ===== */
    .nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    
    .nav ul li {
        width: 100% !important;
        border-bottom: 1px solid #f5f5f5 !important;
        white-space: normal !important;
        list-style: none !important;
    }
    
    .nav ul li:last-child {
        border-bottom: none !important;
    }
    
    .nav ul li a {
        display: block !important;
        padding: 14px 0 !important;
        font-size: 14px !important;
        letter-spacing: 2px !important;
        color: #2c2c2c !important;
        text-transform: uppercase !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
        width: 100% !important;
        text-decoration: none !important;
    }
    
    .nav ul li a::after {
        display: none !important;
    }
    
    .nav ul li a:hover,
    .nav ul li a.active {
        color: #2c2c2c !important;
        background: #f8f8f8 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 -15px !important;
        border-radius: 4px !important;
        text-decoration: none !important;
    }
    
    /* ===== 遮罩 ===== */
    .nav-overlay.active {
        display: block !important;
    }
    
    /* ===== 锁定滚动 ===== */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* 轮播图 */
    .banner-slider {
        margin: 0 0 40px;
    }
    
    /* 产品网格 */
    .section-title {
        font-size: 20px;
        letter-spacing: 3px;
        margin: 40px 0 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-item img {
        height: 200px;
    }
    
    .product-item h3 {
        font-size: 13px;
        letter-spacing: 1px;
        margin-top: 12px;
    }
    
    .price {
        font-size: 13px;
        margin-top: 4px;
    }
    
    /* 产品详情 */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px 0;
    }
    
    .product-info h1 {
        font-size: 20px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }
    
    .product-info .price {
        font-size: 22px;
    }
    
    /* 表单 */
    .message-form {
        margin: 30px auto;
        padding: 0 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .btn-submit {
        padding: 12px 40px;
        font-size: 12px;
        letter-spacing: 3px;
        width: 100%;
    }
    
    /* 底部 */
    .footer {
        padding: 40px 0;
        margin-top: 40px;
        font-size: 11px;
    }
}

/* ========== 小屏手机 ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .header .container {
        height: 50px;
    }
    
    .logo img {
        max-height: 28px;
    }
    
    .logo-main {
        font-size: 17px;
        letter-spacing: 3px;
    }
    
    .logo-sub {
        font-size: 8px;
        letter-spacing: 4px;
    }
    
    .nav {
        width: 260px !important;
        padding: 70px 20px 20px !important;
    }
    
    .nav ul li a {
        padding: 12px 0 !important;
        font-size: 13px !important;
        letter-spacing: 2px !important;
    }
    
    .menu-toggle {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .product-grid {
        gap: 12px;
    }
    
    .product-item img {
        height: 160px;
    }
    
    .product-item h3 {
        font-size: 12px;
        margin-top: 8px;
        letter-spacing: 0.5px;
    }
    
    .price {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
        letter-spacing: 2px;
        margin: 30px 0 20px;
    }
}

/* ========================================
   工具类
   ======================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}