﻿/* ======================
   澶撮儴鏍峰紡锛圥C+绉诲姩绔悎骞惰彍鍗曪級
====================== */
header {
    background-color: #1a1a1a;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: #ff8c00;
    z-index: 101;
    text-decoration: none;
}

.logo-image {
    width: 236px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(255, 140, 0, 0.2));
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* 鏍稿績瀵艰埅 - PC+绉诲姩绔叡鐢?*/
.nav {
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: #ffffff;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff8c00;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* 绉诲姩绔眽鍫℃寜閽?*/
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 101;
}

/* 澶撮儴鍥炬爣 */
.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    z-index: 101;
}

.header-icons a {
    color: #ffffff;
    font-size: 1.1rem;
}

.header-icons a:hover,
.logo:hover .logo-image {
    filter: drop-shadow(0 14px 26px rgba(255, 140, 0, 0.3));
    transform: translateY(-1px);
}

/* ======================
   閫氱敤缁勪欢鏍峰紡
====================== */
/* 鎸夐挳鏍峰紡 */
.btn {
    background-color: #ff4500;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: #ff6347;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #ff8c00;
    color: #ff8c00;
}

.btn-secondary:hover {
    background-color: #ff8c00;
    color: white;
}

/* 琛ㄥ崟鏍峰紡 */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    background-color: #2f2f2f;
}

/* 澶嶉€夋鏍峰紡 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .custom-checkbox {
    background-color: #ff8c00;
    border-color: #ff8c00;
}

.checkbox-input:checked + .custom-checkbox::after {
    content: '鉁?;
    color: white;
    font-size: 12px;
}

.checkbox-input {
    display: none;
}

/* 琛ㄦ牸鏍峰紡 */
.product-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.product-table th, .product-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.product-table th {
    color: #ff8c00;
    white-space: nowrap;
}

/* ======================
   椤佃剼鏍峰紡
====================== */
footer {
    background-color: #1a1a1a;
    padding: 2rem 1rem;
    text-align: center;
    color: #cccccc;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ======================
   鍝嶅簲寮忛€傞厤锛堟牳蹇冿級
====================== */
/* 绉诲姩绔?(767px浠ヤ笅) */
@media (max-width: 767px) {
    /* 瀵艰埅閫傞厤 */
    .menu-toggle {
        display: block;
        order: 3;
        margin-left: 0.35rem;
        font-size: 1.6rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 0;
        height: 100vh;
        background-color: #1a1a1a;
        z-index: 100;
        overflow: hidden;
        padding-top: 6rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        width: 80%;
        max-width: 300px;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .nav-list a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        border-bottom: 1px solid #2a2a2a;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list a:hover {
        color: #ff8c00;
    }

    /* 閫氱敤缁勪欢閫傞厤 */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .product-table {
        font-size: 0.9rem;
    }

    .product-table th, .product-table td {
        padding: 0.8rem 0.5rem;
    }

    /* 澶撮儴閫傞厤 */
    .header-inner {
        padding: 0 1rem;
        gap: 0.35rem;
    }

    .header-icons {
        order: 2;
        gap: 0.55rem;
        margin-left: auto;
        margin-right: 0;
    }

    .header-icon,
    .header-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
    }

    /* 椤佃剼閫傞厤 */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 骞虫澘 (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-list {
        gap: 1.5rem;
    }
}


@media (max-width: 767px) {
    .logo {
        max-width: calc(100% - 104px);
    }

    .logo-image {
        width: 168px;
    }
}
