/* 全局变量 */
:root {
    --primary-color: #07C160;
    --secondary-color: #000000;
    --background-color: #f7f7f7;
    --white-color: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 14px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 参考图片样式的导航栏 */
.header {
    background-color: var(--white-color);
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 50px;
    position: relative;
}

.header-left {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.header-right {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}

.logo {
    padding: 0;
}

.logo h1 {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.nav {
    height: 50px;
    margin-left: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-list > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
    padding: 0 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
    height: 50px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 简洁下拉菜单样式 */
.nav-dropdown {
    position: relative;
    height: 100%;
}

.dropdown-trigger {
    cursor: pointer;
    height: 100%;
}

.dropdown-arrow {
    display: none; /* 不显示箭头图标 */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 5px 0;
    min-width: 160px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-5px);
    transition: all 0.2s ease;
    list-style: none;
    z-index: 1001;
    border: 1px solid #e8e8e8;
    margin-top: 0;
}

/* 滚动条样式 */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: var(--text-color);
}

.dropdown-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 500;
}



/* 简洁认证按钮组 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.auth-buttons .btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 3px;
    font-weight: 400;
    min-width: 50px;
    text-align: center;
    border: 1px solid transparent;
}

/* 会员按钮特殊样式 */
.btn-vip {
    background-color: #ff6b35;
    color: var(--white-color);
    font-weight: 500;
    border: none;
}

.btn-vip:hover {
    background-color: #e55a2e;
}

/* 页脚样式 */
.footer {
    background-color: #404040;
    color: #cccccc;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(7, 193, 96, 0.6) 50%, transparent 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
    justify-content: center;
    text-align: left;
}

.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-brand p {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0.9;
}

.footer-links {
    text-align: left;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* 联系我们区域样式 */
.footer-contact {
    text-align: left;
}

.footer-contact h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.email-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.email-text svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

.btn-secondary {
    background-color: var(--white-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 输入框样式 */
.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--white-color);
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

/* 卡片样式 */
.card {
    background-color: var(--white-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 通用响应式设计 */
@media (max-width: 1024px) {
    .header-left {
        gap: 50px;
    }
    
    .nav {
        margin-left: 15px;
    }
    
    .auth-buttons {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        height: 50px;
        justify-content: space-between;
        position: static;
    }
    
    .header-left {
        position: static;
        left: auto;
    }
    
    .header-right {
        position: static;
        right: auto;
    }
    
    .logo {
        padding: 0;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .nav {
        flex: 1;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        margin: 0 25px;
    }
    
    .nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    .nav-list {
        gap: 20px;
        white-space: nowrap;
        min-width: max-content;
        justify-content: flex-start;
    }
    
    .nav-link {
        padding: 0 5px;
        font-size: 13px;
        height: 50px;
        min-width: fit-content;
    }
    
    .dropdown-menu {
        min-width: 140px;
        left: 0;
        transform: none;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }
    
    .dropdown-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .auth-buttons .btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact h4 {
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 16px;
    }
    
    .footer-links h4,
    .footer-brand h3 {
        text-align: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 45px;
    }
    
    .logo h1 {
        font-size: 14px;
    }
    
    .nav {
        margin: 0 20px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        padding: 0 3px;
        font-size: 12px;
        height: 45px;
    }
    
    .auth-buttons {
        gap: 6px;
    }
    
    .auth-buttons .btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 35px;
    }
    
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-brand h3 {
        font-size: 20px;
    }
    
    .footer-links h4 {
        font-size: 14px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-contact h4 {
        font-size: 14px;
    }
}

/* 更大屏幕的页尾样式 */
@media (max-width: 1200px) {
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand h3 {
        font-size: 22px;
    }
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* 导航VIP图标样式 */
.nav-vip-icon {
    height: 16px;
    width: auto;
    margin-left: 4px;
    margin-right: 4px;
    vertical-align: middle;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-vip-icon {
    opacity: 1;
    transform: scale(1.1);
} 