/* 全局样式 */
:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --bg-color: #f5f5f5;
    --card-color: #fff;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-color: #eaeaea;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --modal-section-spacing: 18px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #f6f7fa;
    color: #222;
}

.topbar {
    width: 100%;
    background: #223354;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 56px;
    box-sizing: border-box;
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-input {
    height: 32px;
    border: 1px solid #d0d3db;
    border-right: none;
    padding: 0 12px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: #222;
    min-width: 220px;
}

.search-btn {
    height: 34px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1741a6;
}

.main-content {
    max-width: 1200px;
    margin: 32px auto 0 auto;
    background: #fff;
    box-sizing: border-box;
    padding: 24px 24px 32px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(34,51,84,0.04);
}

.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-btn {
    border: 1px solid #d0d3db;
    background: #f6f7fa;
    color: #223354;
    font-size: 0.98rem;
    padding: 4px 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 2px;
}

.filter-btn.active, .filter-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.result-info {
    font-size: 0.98rem;
    color: #2563eb;
    margin-bottom: 10px;
    min-height: 22px;
}

.theories-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.theories-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.98rem;
}

.theories-table th, .theories-table td {
    border: 1px solid #e3e6ef;
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
}

.theories-table th {
    background: #f6f7fa;
    color: #223354;
    font-weight: 600;
}

.theories-table tr:hover {
    background: #f0f4ff;
    cursor: pointer;
}

.modal {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(34,51,84,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    min-width: 320px;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    color: #333;
    line-height: 1.6;
}

.modal-content h2 {
    text-align: center;
    color: #223354;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
}

.modal-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #4285f4, transparent);
    margin: 0 auto 15px;
    width: 60%;
}

.modal-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-top: 5px;
    margin-bottom: 22px;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 500;
}

.modal-section {
    margin-bottom: var(--modal-section-spacing);
    padding-bottom: var(--modal-section-spacing);
    border-bottom: 1px solid #f0f0f0;
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-content h3 {
    color: #223354;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0px;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
}

.modal-content h3:before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #4285f4;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
}

.modal-content p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-content ul, .modal-content ol {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.modal-content ul li, .modal-content ol li {
    margin-bottom: 6px;
    font-size: 0.93rem;
    line-height: 1.5;
}

.highlight {
    font-weight: 600;
    color: #4285f4;
}

.info-box {
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
}

.info-box p {
    margin: 5px 0;
    line-height: 1.5;
}

.modal-legal-note {
    font-size: 0.92rem;
    color: #555;
    background-color: #f9fafb;
    border-left: 3px solid #4285f4;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.modal-warning {
    font-weight: 500;
    color: #d93025;
    background-color: #fef7f6;
    border-left: 3px solid #d93025;
    padding: 12px 15px;
    margin: 12px 0;
    border-radius: 0 4px 4px 0;
}

.modal-list {
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px 12px 12px 32px;
    margin: 10px 0;
}

.permission-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.permission-item {
    background: #f9fafb;
    border-radius: 6px;
    padding: 10px 15px;
}

.permission-item strong {
    color: #223354;
    display: inline-block;
    width: 60px;
}

.citation-info {
    background: #f9fafb;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 10px 0;
}

.citation-info code {
    background: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    color: #4285f4;
    font-size: 0.88rem;
    border: 1px solid #e0e0e0;
}

.confirmation-box {
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
}

.confirmation-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin: 10px 0;
}

.modal-confirmation {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 25px;
}

.modal-confirm-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    background: #4285f4;
    border-color: #4285f4;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(66, 133, 244, 0.3);
    transition: all 0.2s ease;
}

.modal-confirm-btn:hover {
    background: #3367d6;
    border-color: #3367d6;
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.4);
    transform: translateY(-1px);
}

.close-button {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 1.3rem;
    color: #888;
    cursor: pointer;
}

@media (max-width: 700px) {
    .main-content {
        padding: 10px 2vw 18px 2vw;
    }
    .topbar {
        flex-direction: column;
        height: auto;
        padding: 10px 2vw;
        gap: 8px;
    }
    .theories-table th, .theories-table td {
        padding: 6px 4px;
        font-size: 0.92rem;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    gap: 8px;
}

.pagination-btn {
    padding: 6px 12px;
    background: #f6f7fa;
    border: 1px solid #d0d3db;
    border-radius: 3px;
    cursor: pointer;
    color: #223354;
    font-size: 0.9rem;
    transition: all 0.2s;
    min-width: 36px;
    text-align: center;
}

.pagination-btn:hover {
    background: #e6eeff;
}

.pagination-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 500;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 分页省略号样式 */
.pagination-ellipsis {
    display: inline-block;
    padding: 6px 5px;
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: bold;
}

.pagination-info {
    color: #555;
    font-size: 0.9rem;
    background: #f0f4ff;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid #dbe4ff;
    margin-right: 10px;
    font-weight: 500;
}

/* 小红书水印样式 */
.xiaohongshu-watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.xiaohongshu-watermark a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: rgba(34, 51, 84, 0.7);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background 0.2s ease;
}

.xiaohongshu-watermark a:hover {
    transform: scale(1.05);
    background: rgba(34, 51, 84, 0.9);
}

.xiaohongshu-watermark span {
    white-space: nowrap;
}

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

/* 高级商务风格弹窗 - 优化层级区分 */
.modal-content.business {
    background: #fff;
    min-width: 320px;
    max-width: 580px;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    color: #333;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-content.business .modal-header {
    background: #1a365d;
    padding: 0;
    text-align: center;
}

.modal-content.business h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    padding: 25px 30px 10px;
    letter-spacing: 0.5px;
    text-align: center;
}

.modal-content.business .modal-subtitle {
    background: #1a365d;
    padding: 0 30px 22px;
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-weight: 400;
    border-bottom: none;
    position: relative;
}

.modal-content.business .modal-subtitle:after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 10px auto 0;
}

.modal-content.business .modal-body {
    padding: 25px 30px 30px;
}

.modal-content.business .modal-info {
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 3px;
    border-left: 3px solid #4299e1;
    text-align: left;
}

.modal-content.business .modal-info p {
    color: #333;
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.modal-content.business .modal-details {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 12px;
}

.modal-content.business .modal-details li {
    padding: 3px 0;
    font-size: 0.85rem;
    color: #555;
    position: relative;
    padding-left: 8px;
}

.modal-content.business .modal-details li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4299e1;
}

.modal-content.business .modal-terms {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 25px;
}

.modal-content.business .term-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.modal-content.business .term-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.modal-content.business .term-header {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.modal-content.business .term-number {
    color: #1a365d;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-content.business .term-title {
    flex: 1;
}

.modal-content.business .term-content {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    padding-left: 34px;
    text-align: left;
}

.modal-content.business .term-row {
    display: flex;
    margin: 8px 0;
    align-items: baseline;
}

.modal-content.business .term-label {
    min-width: 45px;
    padding: 2px 8px;
    border-radius: 3px;
    text-align: center;
    font-size: 0.8rem;
    margin-right: 10px;
    font-weight: 500;
}

.modal-content.business .term-label.allowed {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
}

.modal-content.business .term-label.prohibited {
    background: rgba(245, 101, 101, 0.1);
    color: #e53e3e;
}

.modal-content.business .citation {
    font-family: monospace;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-content.business .modal-confirm {
    margin-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 25px;
    background: #f8fafc;
    margin: 30px -30px -30px;
    padding: 20px 30px 25px;
}

.modal-content.business .modal-confirm p {
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 18px;
    line-height: 1.5;
    text-align: left;
}

.modal-content.business #confirm-entry-btn {
    width: 100%;
    background: #1a365d;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(26, 54, 93, 0.1);
    display: block;
    margin: 0 auto;
}

.modal-content.business #confirm-entry-btn:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(26, 54, 93, 0.15);
}

.modal-content.business #confirm-entry-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.1);
} 