/* 长沙探测 - 科研服务平台样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 顶部信息栏 - Logo和搜索、操作按钮 */
.top-info-bar {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.top-info-bar .container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-info-bar .logo-section {
    display: flex;
    align-items: center;
}

.top-info-bar .logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b00;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.top-info-bar .logo span:first-child {
    font-size: 36px;
    margin-right: 10px;
}

.top-info-bar .search-box {
    position: relative;
    width: 350px;
    margin-left: 40px;
}

.top-info-bar .search-box input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border: 2px solid #ff6b00;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.top-info-bar .search-box .search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.top-info-bar .user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-info-bar .btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.top-info-bar .btn-primary {
    background: #ff6b00;
    color: #fff;
}

.top-info-bar .btn-primary:hover {
    background: #e56000;
}

.top-info-bar .btn-outline {
    border: 1px solid #ff6b00;
    color: #ff6b00;
    background: #fff;
}

.top-info-bar .btn-outline:hover {
    background: #ff6b00;
    color: #fff;
}

.top-info-bar .btn-text {
    background: none;
    color: #333;
    padding: 8px 15px;
}

.top-info-bar .btn-text:hover {
    color: #ff6b00;
}

/* 顶部导航栏 */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    font-size: 12px;
}

.top-bar .container {
    width: 1200px;
    margin: 0 auto;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar a:hover {
    color: #ff6b00;
}

/* 主导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #ff6b00;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    color: #0c65ca;
    padding: 10px 0;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #ff6b00;
}

.nav-item .arrow {
    display: inline-block;
    margin-left: 5px;
    border: 4px solid transparent;
    border-top-color: #999;
    vertical-align: middle;
}

/* 导航下拉菜单 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    min-width: 180px;
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-dropdown li:hover {
    background: #f5f5f5;
    color: #ff6b00;
}

/* 用户操作区 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.search-box .search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: #ff6b00;
    color: #fff;
}

.btn-primary:hover {
    background: #e56000;
}

.btn-outline {
    border: 1px solid #ff6b00;
    color: #ff6b00;
    background: #fff;
}

.btn-outline:hover {
    background: #ff6b00;
    color: #fff;
}

/* 轮播图区域 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slider {
    height: 100%;
    display: flex;
    transition: transform 0.5s;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.banner-dot.active {
    background: #fff;
}

/* 主要分类区域 */
.category-section {
    padding: 40px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    font-size: 13px;
}

/* 功能服务区 */
.service-section {
    padding: 50px 0;
    background: #f5f5f5;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: #fff;
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.service-item:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.service-item .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.service-item h4 {
    font-size: 14px;
    color: #333;
}

/* 内容区域通用样式 */
.main-content {
    width: 1200px;
    margin: 0 auto;
    padding: 0px 0;
}

.content-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.content-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6b00;
}

.form-group .help-text {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.data-table tr:hover {
    background: #fafafa;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer .container {
    width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

.footer-section ul li a:hover {
    color: #ff6b00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #999;
}

/* 侧边悬浮客服 */
.side-bar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.side-bar-item {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.side-bar-item:hover {
    background: #ff6b00;
    color: #fff;
}

/* 登录注册弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.modal .form-group {
    margin-bottom: 15px;
}

.modal .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.modal-footer a {
    color: #ff6b00;
}

/* 会员特权区域 */
.vip-section {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    padding: 40px 0;
    color: #fff;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 1200px;
    margin: 0 auto;
}

.vip-card {
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.vip-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.vip-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 步骤流程 */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ff6b00;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.step p {
    color: #666;
    font-size: 13px;
}

.step-arrow {
    font-size: 24px;
    color: #ff6b00;
}

/* 列表页面 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-bar {
    display: flex;
    gap: 15px;
}

.filter-item {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-item.active,
.filter-item:hover {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

/* 详情页 */
.detail-header {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.detail-meta {
    color: #999;
    font-size: 14px;
}

.detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

/* 标签页 */
.tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-item {
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-item.active {
    border-bottom-color: #ff6b00;
    color: #ff6b00;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 通知提示 */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 1200px) {
    .container,
    .main-content,
    .category-grid,
    .service-grid,
    .vip-grid {
        width: 100%;
        padding: 0 20px;
    }
    
    .nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .category-grid,
    .service-grid,
    .vip-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
}

/* 页面特定样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: #fff;
}

.page-header .container {
    width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #ff6b00;
}

/* 登录页面 */
.login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 30px;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.login-footer a {
    color: #ff6b00;
}

/* 注册页面 */
.register-box {
    width: 500px;
}

.agreement {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.agreement a {
    color: #ff6b00;
}

/* 订单列表 */
.order-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-no {
    color: #666;
    font-size: 14px;
}

.order-status {
    color: #ff6b00;
    font-weight: 600;
}

.order-info {
    display: flex;
    gap: 30px;
}

.order-info-item {
    flex: 1;
}

.order-info-item label {
    display: block;
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* 个人中心 */
.profile-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.profile-menu li {
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.profile-menu li:hover,
.profile-menu li.active {
    background: #fff5ee;
    color: #ff6b00;
}

.profile-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
}

/* 浮动提示框 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 3000;
    display: none;
}

.toast.show {
    display: block;
    animation: slideIn 0.3s;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
