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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 防止文本选择拖动时出现的虚线轮廓 */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #D3AF58;
    outline-offset: 2px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    transition: padding 0.3s ease;
}

/* 响应式容器调整 */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 10px;
    }
}

/* 导航栏完整样式 */
.navbar {
    background: linear-gradient(135deg, #2E7D32, #388E3C);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    transition: flex-direction 0.3s ease;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

/* 导航菜单基础样式 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-menu li {
    margin: 0 1rem;
    transition: margin 0.3s ease;
}

/* 导航菜单链接样式 - 默认白色 */
.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    position: relative;
    overflow: hidden;
}

.nav-menu a i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.nav-menu a:hover i {
    transform: scale(1.2);
}

/* 鼠标悬停动态效果 */
.nav-menu a:hover {
    color: #F0C14B;
    transform: translateY(-2px) scale(1.05);
    transition: all 0.3s ease;
}

/* 当前活动标签样式 */
.nav-menu a.active {
    color: #F0C14B;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
}

/* 添加下划线效果 */
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D3AF58;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { width: 0; left: 50%; }
    to { width: 100%; left: 0; }
}

/* 登录注册按钮样式 */
.auth-btn {
    display: inline-block;
    background: #D3AF58;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    background: #C29A47;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.auth-btn-outline:hover {
    background: white;
    color: #2E7D32;
    border-color: #D3AF58;
}

/* 语言选择器样式 - 旧版用于保留兼容性 */
.language-selector {
    margin-left: 2.5rem;
    transition: margin 0.3s ease;
}

/* 语言选择器容器 - 新版布局 */
.language-container {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.language-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.language-btn::after {
    content: "ⅴ";
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.language-btn:hover::after {
    transform: rotate(180deg);
}

.language-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.language-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    background-color: #D3AF58;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #C29A47;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 响应式按钮尺寸 */
@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        min-width: auto;
        margin: 0.3rem 0;
    }
}

/* 响应式设计 - 大平板和小笔记本 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu li {
        margin: 0 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .auth-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* 响应式设计 - 平板设备 */
@media (max-width: 992px) {
    .navbar-content {
        padding: 0.5rem 0;
    }
    
    .nav-menu li {
        margin: 0 0.6rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
    
    .auth-btn {
        padding: 0.4rem 0.9rem;
    }
}

/* 响应式设计 - 小平板和大屏手机 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-content {
        min-height: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #2E7D32, #388E3C);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        animation: slideDown 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            max-height: 500px;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
        max-height: 500px;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        animation: fadeInUp 0.3s ease-out forwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu li:nth-child(1) { animation-delay: 0.05s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.15s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(5) { animation-delay: 0.25s; }
    .nav-menu li:nth-child(6) { animation-delay: 0.3s; }
    
    .nav-menu a {
        padding: 0.8rem 0;
        justify-content: center;
        font-size: 1.1rem;
    }
    
    .nav-buttons {
        display: flex;
        flex-direction: column;
        margin-left: 1rem;
        opacity: 0;
        animation: fadeIn 0.5s ease-out 0.35s forwards;
    }
    
    .auth-btn {
        margin: 0.5rem 0;
        padding: 0.6rem 1.2rem;
    }
    
    .language-selector {
        margin-top: 0.5rem;
        margin-left: 0;
        text-align: center;
    }
    
    .language-container {
        display: none;
    }
    
    /* 活动状态样式 - 移动端 */
    .nav-menu a.active {
        color: #F0C14B;
        font-weight: bold;
        position: relative;
    }
    
    .nav-menu a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 25%;
        width: 50%;
        height: 2px;
        background-color: #D3AF58;
        animation: slideIn 0.3s ease-out;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 576px) {
    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        min-height: 60px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.7rem 0;
    }
    
    .nav-buttons {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .auth-btn {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem;
    }
    
    .language-selector {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .language-btn {
        width: 100%;
        justify-content: center;
    }
    
    .language-container {
        display: none;
    }
}

/* 微信聊天模块样式 */
.wechat-module {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    cursor: move;
}

.wechat-icon {
    width: 60px;
    height: 60px;
    background-color: #D3AF58;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    user-select: none;
}

.wechat-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wechat-dropdown {
    position: absolute;
    right: 70px;
    bottom: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 10px;
    display: none;
    width: 140px;
    z-index: 1000;
}

.wechat-module:hover .wechat-dropdown {
    display: block;
}

.wechat-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.wechat-item span {
    flex: 1;
    text-align: center;
}

.wechat-item:last-child {
    border-bottom: none;
}

.wechat-item:hover {
    color: #07C160;
}

.wechat-item i {
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 20px;
}

.qrcode-popup {
    position: absolute;
    right: 100%;
    bottom: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: none;
    z-index: 1001;
}

.wechat-item:hover .qrcode-popup {
    display: block;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-image {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qrcode-text {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.qrcode-row {
    display: flex;
    gap: 10px;
}

.back-to-top-btn {
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn i {
    margin-right: 6px;
    flex-shrink: 0;
}

.back-to-top-btn span {
    flex: 1;
    text-align: center;
}

.back-to-top-btn:hover {
    background: #e0e0e0;
    color: #07C160;
}

/* 微信聊天模块响应式样式 */
@media (max-width: 768px) {
    .wechat-chat {
        right: 20px;
        bottom: 20px;
    }
    
    .wechat-icon {
        width: 50px;
        height: 50px;
    }
    
    .wechat-dropdown {
        width: 220px;
        padding: 1rem;
        bottom: 70px;
        right: 0;
    }
    
    .wechat-qrcode {
        width: 150px;
        height: 150px;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(46, 125, 50, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2E7D32;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 返回顶部按钮响应式样式 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 响应式工具类 */

/* 显示/隐藏控制 */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* 响应式显示控制 */
@media (max-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (max-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

/* 文本对齐 */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

@media (max-width: 768px) {
    .text-md-center { text-align: center !important; }
    .text-md-left { text-align: left !important; }
    .text-md-right { text-align: right !important; }
}

/* 间距工具类 */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.5rem !important; }
.m-2 { margin: 1rem !important; }
.m-3 { margin: 1.5rem !important; }
.m-4 { margin: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }

/* 响应式图片和媒体 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive-16by9::before { padding-top: 56.25%; }
.embed-responsive-4by3::before { padding-top: 75%; }

.embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 过渡动画工具类 */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 延迟动画类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* 表格响应式样式 */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.table { width: 100%; max-width: 100%; border-collapse: collapse; border-spacing: 0; }

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D3AF58;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 悬停缩放效果 */
.hover-zoom { transition: transform 0.3s ease; }
.hover-zoom:hover { transform: scale(1.05); }

/* 悬停上浮效果 */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* 无障碍访问增强 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 特性卡片样式 */
.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 3px solid #D3AF58;
}

.feature-card i {
    font-size: 2.5rem;
    color: #2E7D32;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* 产品卡片样式 */
.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 1.2rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #D3AF58;
    box-shadow: 0 0 0 3px rgba(211, 175, 88, 0.2);
}

.form-control::placeholder {
    color: #9E9E9E;
}

/* 标签样式 */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* 复选框和单选按钮样式 */
.checkbox-group, .radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* 响应式卡片和表单 */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.2rem;
        min-height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .feature-card i {
        font-size: 2rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        min-height: auto;
        padding: 1rem;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .product-card-content {
        padding: 1rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .checkbox-group, .radio-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkbox-group input[type="checkbox"],
    .radio-group input[type="radio"] {
        margin-right: 0.5rem;
    }
}