/* 头部导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo样式 */
.logo {
    flex: 0 0 auto;
    padding: 10px 0;
}

.logo a {
    display: block;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo a:hover img {
    opacity: 0.8;
}

/* 主导航样式 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    line-height: 1.5;
    transition: color 0.3s;
}

/* 导航项下划线动画 */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    width: 100%;
}

/* 搜索框样式 */
.search-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.search-box:hover {
    background: #e8e8e8;
}

.search-box input {
    border: none;
    background: none;
    padding: 6px 12px;
    width: 180px;
    font-size: 14px;
    outline: none;
    color: var(--text-color);
}

.search-box button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-box button:hover {
    color: var(--primary-color);
}

/* 搜索图标 */
.search-icon {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.search-icon::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 7px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .main-nav ul {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        margin: 0 20px;
    }

    .search-box input {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: auto;
        padding: 15px;
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav {
        margin: 15px 0;
    }

    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 300px;
    }
}

/* 页脚样式 - 苹果官网风格 */
.footer {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 22px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
    margin-bottom: 20px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #6e6e73;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

.footer-section ul li:not(:has(a)) {
    color: #6e6e73;
    font-size: 12px;
    line-height: 1.4;
}

.footer-contact-list .footer-contact-icon {
    display: inline-block;
    width: 1.1em;
    margin-right: 6px;
    text-align: center;
    vertical-align: middle;
}

.footer-contact-list .footer-contact-icon.icon-whatsapp {
    width: 18px;
    height: 18px;
    line-height: 1;
}

.footer-contact-list .footer-contact-icon.icon-whatsapp svg {
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-icon {
    color: #6e6e73;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

.footer-qr-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
    padding-top: 4px;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-qr-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.footer-qr-label {
    font-size: 11px;
    color: #6e6e73;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #d2d2d7;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #6e6e73;
    font-size: 11px;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 16px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
} 