* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    padding: 16px 30px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

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

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.domain {
    font-size: 13px;
    opacity: 0.9;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.register-btn, .login-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.register-btn {
    background: rgba(255, 255, 255, 0.25);
}

.register-btn:hover, .login-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.divider {
    color: rgba(255, 255, 255, 0.4);
}

/* 主容器 */
.main-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* 侧边栏 */
.sidebar {
    width: 180px;
    background-color: white;
    padding: 10px 15px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    font-size: 22px;
    color: #FF9800;
    margin-bottom: 3px;
}

.logo h2 {
    font-size: 14px;
    color: #FF9800;
    font-weight: normal;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-item {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f5f5f5;
}

.nav-item.active {
    background-color: #FF9800;
    color: white;
}

/* 主内容区 */
.content {
    flex: 1;
    padding: 20px;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #FF9800;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.live-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.live-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.live-cover {
    position: relative;
    height: 150px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.live-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #f44336;
    color: white;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
}

.upcoming-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #FF9800;
    color: white;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
}

.live-info {
    padding: 12px;
}

.host-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.room-id {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.live-time {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
}

.enter-btn {
    width: 100%;
    padding: 10px;
    background-color: #FF9800;
    color: white;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.enter-btn:hover {
    background-color: #F57C00;
}

.enter-btn.disabled {
    background-color: #d0d0d0;
    cursor: not-allowed;
}

.enter-btn.disabled:hover {
    background-color: #d0d0d0;
}

.upcoming .live-cover img {
    filter: brightness(0.7);
}

/* 文档页面样式 */
.document-section {
    background-color: white;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

.document-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF9800;
}

.section-content {
    line-height: 1.8;
}

.section-content h2 {
    font-size: 18px;
    color: #FF9800;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section-content h3 {
    font-size: 16px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 12px;
}

.section-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    text-indent: 2em;
}

.section-content ul, .section-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.section-content li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.section-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.section-content table th,
.section-content table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.section-content table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.section-content table td {
    color: #666;
}

.promise-signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #ccc;
    text-align: center;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer p {
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.8;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* 登录注册页面 */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #FF9800;
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #FF9800;
}

.form-group input::placeholder {
    color: #999;
}

.code-input {
    display: flex;
    gap: 12px;
}

.code-input input {
    flex: 1;
}

.code-btn {
    padding: 12px 20px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #FF9800;
    border-radius: 8px;
    color: #FF9800;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.code-btn:hover {
    background: #FF9800;
    color: white;
}

.code-btn.disabled {
    background: #eee;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.checkbox-label input {
    margin-top: 2px;
}

.checkbox-label a {
    color: #FF9800;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #FF9800;
    text-decoration: none;
    font-size: 13px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    padding: 14px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #FF9800;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 15px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .nav-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .nav-item {
        padding: 8px 15px;
        font-size: 14px;
    }

    .live-grid {
        grid-template-columns: 1fr;
    }
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    background-color: #FF9800;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.modal-message {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-btn.primary {
    background-color: #FF9800;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #F57C00;
}

.modal-btn.secondary {
    background-color: #f5f5f5;
    color: #333;
}

.modal-btn.secondary:hover {
    background-color: #e0e0e0;
}

/* 资质证件页面样式 */
.license-content {
    padding-top: 10px;
}

.license-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
    margin-top: 0;
}

.license-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 700px;
    width: 100%;
}

.license-title {
    font-size: 20px;
    color: #333;
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.license-image-wrapper {
    padding: 20px;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.license-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.license-info {
    padding: 15px 25px;
    background-color: white;
}

.license-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.license-info p:last-child {
    margin-bottom: 0;
}

/* 404页面样式 */
.not-found-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.not-found-content {
    text-align: center;
    padding: 40px;
}

.error-code {
    font-size: 80px;
    font-weight: bold;
    color: #FF9800;
    margin-bottom: 20px;
}

.error-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.error-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF9800;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.back-home-btn:hover {
    background-color: #F57C00;
}