:root {
    --primary-blue: #1e88e5;
    --primary-blue-dark: #1565c0;
    --primary-blue-light: #42a5f5;
    --secondary-blue: #0d47a1;
    --light-blue: #e3f2fd;
    --text-dark: #212121;
    --text-light: #757575;
    --white: #ffffff;
    --gray: #f5f5f5;
    --gray-dark: #e0e0e0;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    position: absolute;
    left: 20px;
}

.navbar-brand img {
    height: 50px;
    max-height: 50px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.navbar-nav a:hover {
    opacity: 0.8;
}

/* ========== 汉堡菜单 - 移动端 ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.hamburger:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 5px;
}

/* 汉堡按钮激活状态 - 变为关闭按钮 */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端响应式样式 */
@media (max-width: 992px) {
    .navbar {
        position: relative;
    }

    .navbar .container {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        order: 3;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        right: 15px;
        top: 100%;
        width: 33.33%;
        min-width: 200px;
        max-width: 300px;
        flex-direction: column;
        background: var(--primary-blue);
        padding: 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .navbar-nav.active {
        display: flex;
        width: 33.33%;
        min-width: 200px;
        max-width: 300px;
        right: 15px;
    }

    .navbar-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .navbar-nav li:last-child {
        border-bottom: none;
    }

    .navbar-nav a {
        display: block;
        padding: 14px 20px;
        text-align: center;
        font-size: 15px;
    }

    .navbar-nav a:hover {
        background: rgba(255,255,255,0.1);
        opacity: 1;
    }

    .navbar-brand {
        font-size: 20px;
        position: static;
        margin-right: auto;
    }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
}

.btn-success {
    background-color: var(--success);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-dark);
}

.table th {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    font-weight: bold;
}

.table tr:hover {
    background-color: var(--light-blue);
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-pending {
    background-color: var(--warning);
    color: var(--white);
}

.badge-signed {
    background-color: var(--success);
    color: var(--white);
}

.badge-rejected {
    background-color: var(--danger);
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-dark);
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--light-blue);
}

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

.main-content {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.footer {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

.footer p {
    text-align: center;
    opacity: 0.9;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 16px;
    opacity: 0.9;
}

.member-card {
    text-align: center;
    padding: 30px;
    border: 2px solid var(--gray-dark);
    border-radius: 10px;
    transition: all 0.3s;
}

.member-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.member-card.featured {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.member-card h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

.member-card .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.member-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.member-card ul li {
    padding: 8px 0;
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-blue);
}

.mt-4 {
    margin-top: 20px;
}

.mb-4 {
    margin-bottom: 20px;
}

.editor-toolbar {
    border: 1px solid var(--gray-dark);
    border-bottom: none;
    padding: 10px;
    background: var(--gray);
    border-radius: 5px 5px 0 0;
}

.editor-toolbar button {
    padding: 8px 12px;
    margin-right: 5px;
    border: 1px solid var(--gray-dark);
    background: var(--white);
    border-radius: 3px;
    cursor: pointer;
}

.editor-toolbar button:hover {
    background: var(--light-blue);
}

.editor-content {
    border: 1px solid var(--gray-dark);
    min-height: 300px;
    padding: 15px;
    border-radius: 0 0 5px 5px;
}

.editor-content:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 10px rgba(30, 136, 229, 0.1);
}

.payment-method-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-blue);
    margin-right: 20px;
}

.payment-method-info h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.payment-method-info p {
    color: var(--text-light);
    font-size: 14px;
}


   /* 微信弹出窗样式 */
    .wechat-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease;
    }

    .wechat-popup {
        background-color: #2c2c2c;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        text-align: center;
        max-width: 300px;
        width: 90%;
        animation: slideIn 0.3s ease;
    }

    .wechat-popup h3 {
        color: #4CAF50;
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    .wechat-qr {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .close-btn {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: background-color 0.3s ease;
    }

    .close-btn:hover {
        background-color: #45a049;
    }
    /* 客服弹窗 */
    .chat-icon {
        position: fixed;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: transform 0.3s ease;
    }

    .chat-icon:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

    .wechat-icon:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

    .chat-icon img {
        width: 60px;
        height: 60px;
    }

    .chat-text {
        position: fixed;
        top: calc(50% + 40px);
        right: 30px;
        width: 60px;
        text-align: center;
        color: white;
        font-size: 12px;
        z-index: 999;
    }

    .wechat-icon {
        top: calc(50% + 80px);
    }

    .wechat-text {
        top: calc(50% + 110px);
    }

    .chat-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .chat-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .chat-modal-content {
        background-color: #2c2c2c;
        border-radius: 10px;
        width: 90%;
        max-width: 500px;
        height: 80vh;
        max-height: 600px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        position: relative;
        overflow: hidden;
        animation: slideIn 0.3s ease;
    }

    .chat-modal-close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        color: #e0e0e0;
        cursor: pointer;
        z-index: 10;
        transition: color 0.3s ease;
    }

    .chat-modal-close:hover {
        color: #f44336;
    }

    .chat-iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideIn {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }