/* shared.css - 共享样式文件 */

/* 基础样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --background-color: #fff;
    --text-color: #333;
    --border-color: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0.5rem 1rem;
    height: 70px;
    margin-bottom: 30px;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.navbar-brand {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    width: 200px;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    width: calc(100% - 400px);
    justify-content: center;
}

.nav-item {
    text-align: center;
    padding: 0 15px;
}

.nav-link {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    padding: 0.8rem 1rem;
    text-align: center;
    white-space: nowrap;
    display: block;
}

.navbar-toggler {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem 0.75rem;
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
    }
    
    .navbar .container {
        padding: 0 15px;
    }
    
    .navbar-brand {
        position: static;
        transform: none;
        width: auto;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,.1);
    }
    
    .navbar-nav {
        width: 100%;
        padding: 0;
        flex-direction: column;
    }
    
    .nav-item {
        width: 100%;
        padding: 0;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* 底部样式 */
.footer {
    background: #f8f9fa;
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
}

.banqing {
    margin-bottom: 15px;
    width: 100%;
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.cont-link {
    margin-bottom: 15px;
    width: 100%;
}

.cont-link ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cont-link li {
    margin: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.cont-link a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 3px 8px;
    display: inline-block;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.cont-link a:hover {
    color: #007bff;
}

.cont-link .ti {
    font-weight: bold;
    color: #333;
    padding-right: 5px;
}

.copy-text {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 15px auto;
    line-height: 1.4;
    max-width: 1000px;
}

.red {
    color: #dc3545 !important;
}

@media (max-width: 1200px) {
    .cont-link ul {
        gap: 5px;
        padding: 0 10px;
    }
    
    .cont-link a {
        font-size: 12px;
        padding: 2px 6px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 15px 0;
    }
    
    .banqing {
        margin-bottom: 10px;
    }
    
    .cont-link {
        margin-bottom: 10px;
    }
    
    .cont-link ul {
        gap: 4px;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 0 5px;
    }
    
    .cont-link a {
        font-size: 12px;
        padding: 2px 4px;
    }
    
    .copy-text {
        font-size: 12px;
        margin: 10px auto;
        padding: 0 10px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .cont-link ul {
        gap: 3px;
    }
    
    .cont-link a {
        font-size: 11px;
        padding: 1px 3px;
    }
}

/* 客服按钮样式 */
#customer-service {
    position: fixed;
    right: 0;
    top: 200px;
    z-index: 1000;
    width: 60px;
    background: #007bff;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cs-qq img {
    width: 79px;
    height: 25px;
    object-fit: cover;
    display: block;
}

.cs-qq {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.cs-qq:hover {
    background: #f5f5f5;
}

.cs-button {
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    color: white;
    transition: all 0.3s ease;
    padding: 10px 5px;
    box-sizing: border-box;
}

.cs-button:hover {
    background: rgba(0, 123, 255, 0.8);
}

.cs-button i {
    font-size: 24px;
    margin-bottom: 8px;
}

.cs-button span {
    display: block;
    font-size: 16px;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    line-height: 1.2;
}

.cs-content {
    position: absolute;
    right: 60px;
    top: 0;
    background: #fff;
    width: 240px;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 1001;
    transform: translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cs-content.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.cs-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.cs-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.cs-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.cs-close:hover {
    color: #f00;
}

.cs-body {
    padding: 15px;
}

.cs-qq:last-child {
    margin-bottom: 0;
}

.cs-qq:hover {
    background-color: #f5f5f5;
}

.cs-qq span {
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    #customer-service {
        top: 150px;
        width: 50px;
    }
    
    .cs-button {
        height: 70px;
    }
    
    .cs-button i {
        font-size: 20px;
    }
    
    .cs-button span {
        font-size: 14px;
    }
    
    .cs-content {
        right: 50px;
        width: 200px;
    }
}