/**
 * PC端展会系统 - 全局样式
 * 重置样式 + 通用样式 + 动画效果
 */

/* ==================== CSS Reset ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #409EFF;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input, textarea {
    outline: none;
    border: none;
}

/* ==================== 布局容器 ==================== */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* ==================== 主要内容区 ==================== */
.main-content {
    padding-top: 160px;
    min-height: calc(100vh - 160px);
}

/* ==================== 顶部通栏 ==================== */
.top-bar {
    background: #2c3e50;
    color: white;
    height: 36px;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar .separator {
    color: #5a6c7d;
}

.top-bar a {
    color: #ecf0f1;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #667eea;
}

.top-bar .login-link,
.top-bar .register-link {
    color: #667eea;
    font-weight: 600;
}

.top-bar .help-link {
    color: #ecf0f1;
}

/* ==================== 顶部导航 - 三层设计 ==================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-top {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo-group {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: #95a5a6;
    letter-spacing: 0.8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 45px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    color: #2d3748;
    white-space: nowrap;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #667eea;
}

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

.nav-item.active {
    color: #667eea;
    font-weight: 600;
}

.nav-item.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* ==================== 搜索区域 ==================== */
.search-wrapper {
    flex: 1;
    max-width: 600px;
}

.search-box-large {
    position: relative;
    width: 100%;
}

.search-input-large {
    width: 100%;
    height: 48px;
    padding: 0 60px 0 20px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2d3748;
}

.search-input-large::placeholder {
    color: #a0aec0;
}

.search-input-large:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn-large {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-btn-large:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== 联系信息 ==================== */
.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.phone-icon {
    font-size: 36px;
}

.phone-text {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 12px;
    color: #718096;
}

.phone-number {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 底部导航 ==================== */
.header-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

.nav-separator {
    color: #cbd5e0;
    font-size: 14px;
}

.hot-badge {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ==================== 导航按钮区 ==================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-btn svg {
    flex-shrink: 0;
}

/* 用户中心按钮 */
.nav-btn-user {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.nav-btn-user:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* 登录按钮 */
.nav-btn-login {
    color: #667eea;
    background: white;
    border: 2px solid #667eea;
}

.nav-btn-login:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 注册按钮 - 紫色渐变 */
.nav-btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== 按钮样式 - 紫色主题 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.45);
}

.btn-outline {
    border-color: #667eea;
    color: #667eea;
    background: white;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.35);
}

.btn-text {
    color: #606266;
}

.btn-text:hover {
    color: #409EFF;
}

/* ==================== 卡片样式 ==================== */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

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

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ==================== 标签样式 ==================== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    background: #f0f2f5;
    color: #606266;
}

.tag-primary {
    background: #ecf5ff;
    color: #409EFF;
}

.tag-success {
    background: #f0f9ff;
    color: #67C23A;
}

.tag-warning {
    background: #fdf6ec;
    color: #E6A23C;
}

.tag-danger {
    background: #fef0f0;
    color: #F56C6C;
}

/* ==================== 底部样式 ==================== */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #409EFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

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

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

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.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;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .container {
        width: 960px;
    }
}

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

@media (max-width: 768px) {
    .container {
        width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
    }
}
