/* responsive.css - 响应式样式 */
/* 在较大屏幕上保持一行四个 */
@media (min-width: 768px) {
    .footer-section {
        flex: 0 0 calc(25% - 30px);
    }
}

/* 在小屏幕上显示为2x2 */
@media (max-width: 767px) {
    .footer-section {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .gift-detail {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gift-grid {
        grid-template-columns: 1fr;
    }
}

/* responsive.css - 添加导航栏响应式样式 */

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .nav-btn {
        padding: 7px 16px;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none; /* 移动端隐藏导航链接，可以添加汉堡菜单 */
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .language-selector {
        border-left: none;
        padding-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-primary {
        font-size: 1.1rem;
        padding: 16px 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    font-weight: 500;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.message-success { background: #38a169; }
.message-error { background: #e53e3e; }
.message-warning { background: #dd6b20; }
.message-info { background: #3182ce; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 用户信息样式 */
@media (max-width: 768px) {
    .user-status {
        margin-right: 10px;
    }
    
    .user-welcome {
        display: none; /* 在小屏幕上隐藏欢迎文字 */
    }
    
    .login-register-buttons {
        gap: 5px;
    }
    
    .login-btn, .register-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .logout-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
}


@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .field-value {
        text-align: left;
        margin-right: 0;
    }
    
    .field-actions {
        align-self: flex-end;
    }
    
    .order-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .order-product-image {
        justify-self: center;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* 关于我们和联系我们页面响应式 */
@media (max-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 200px;
        order: -1;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section h3 {
        font-size: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-year {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}