body {
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f7fa
}

.header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg,#007bff,#3f51b5);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / .1)
}

.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center
}

.top-nav button {
    padding: 8px 16px;
    background: #fff;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px
}

.top-nav button:hover {
    background: #007bff;
    color: #fff
}

.user-info {
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s
}

.user-info:hover {
    background: rgb(255 255 255 / .2)
}

.user-info-popup {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / .15);
    z-index: 1000;
    width: 300px;
    padding: 15px;
    color: #333
}

.popup-content h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #2c3e50
}

.popup-content p {
    margin: 5px 0;
    font-size: 14px
}

.popup-content p strong {
    color: #2c3e50
}

.close-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s
}

.close-btn:hover {
    background: #c82333
}

.sidebar {
    float: left;
    width: 220px;
    margin-right: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / .1)
}

.main-content {
    margin-left: 270px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / .1);
    min-height: 500px
}

.nav-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin: 8px 0;
    background: #f8f9fa;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 15px;
    color: #333
}

.nav-button:hover {
    background: #e9ecef;
    transform: translateX(5px)
}

.nav-button.active {
    background: #007bff;
    color: #fff;
    font-weight: 500
}

.content-section {
    display: none
}

.content-section.active {
    display: block
}

.filter-section {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 6px
}

.dynamic-form {
    margin-top: 15px
}

.dynamic-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center
}

.dynamic-row input,.dynamic-row select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px
}

.multi-select {
    width: 250px;
    height: 160px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px
}

.year-selector {
    display: flex;
    gap: 20px;
    align-items: flex-start
}

.selected-years {
    flex: 1;
    border: 1px solid #ced4da;
    padding: 8px;
    min-height: 160px;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start
}

.selected-year-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #e3f2fd;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s
}

.selected-year-item button {
    margin-left: 8px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    padding: 2px;
    line-height: 1
}

.selected-year-item button:hover {
    color: #f44
}

.value-inputs {
    display: flex;
    gap: 8px;
    align-items: center
}

button[type="button"] {
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s
}

button[type="button"]:hover {
    background: #218838
}

.remove-btn {
    background: #dc3545!important;
    padding: 4px 8px
}

.remove-btn:hover {
    background: #c82333!important
}

h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600
}

h4 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 600
}

h5 {
    margin: 10px 0;
    font-size: 16px;
    color: #2c3e50
}

.action-btn {
    margin-top: 25px;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s
}

.action-btn:hover {
    background: #0056b3
}

.secondary-btn {
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px
}

.secondary-btn:hover {
    background: #0056b3
}

.select-btn {
    padding: 6px 12px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px
}

.select-btn:hover {
    background: #5a6268
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px
}

th,td {
    border: 1px solid #e9ecef;
    padding: 8px;
    text-align: left
}

th {
    background-color: #f8f9fa
}

th.sortable {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 16px;
    position: relative;
    transition: background-color 0.2s ease
}

th.sortable:hover {
    background-color: #d1e8ff
}

th.sortable::after {
    content: ' ⇅';
    font-size: 12px;
    color: #666;
    margin-left: 4px
}

th.sortable:hover::after {
    color: #1a73e8
}

th.sortable.asc::after {
    content: ' ↑';
    color: #28a745
}

th.sortable.desc::after {
    content: ' ↓';
    color: #dc3545
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center
}

.collapsible {
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 5px 0
}

.collapsible:hover {
    background: #e9ecef
}

.content {
    display: none;
    padding: 10px 0
}

.content.active {
    display: block
}

.membership-plans {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 800px
}

.membership-card {
    width: 200px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 12px rgb(0 0 0 / .1);
    transition: transform 0.2s
}

.membership-card:hover {
    transform: translateY(-5px)
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6f61;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px
}

.price {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 15px 0
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px
}

.select-plan-btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px
}

.select-plan-btn:hover {
    background: #0056b3
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: 0 auto;
    text-align: center
}

.auth-form input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px
}

.captcha-img {
    cursor: pointer;
    border: 1px solid #ced4da;
    border-radius: 4px
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px
}

.form-row label {
    min-width: 80px;
    text-align: right;
    color: #2c3e50
}

.form-row input {
    flex: 1
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ccc;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

h1 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 60px;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase
}

.flow-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px
}

.flow-step {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column
}

.step-card {
    background: linear-gradient(135deg,#ffffff,#f0f4f8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgb(0 0 0 / .1);
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease,box-shadow 0.3s ease;
    border: 1px solid #e0e7ff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 220px
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgb(0 0 0 / .15)
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg,#1a73e8,#4285f4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto 15px;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 3px 8px rgb(0 0 0 / .2)
}

.arrow {
    position: absolute;
    font-size: 30px;
    color: #1a73e8;
    top: 50%;
    transform: translateY(-50%);
    opacity: .7;
    right: -15px;
    transition: opacity 0.3s
}

.arrow:hover {
    opacity: 1
}

.flow-step:last-child .arrow {
    display: none
}

@media (max-width: 1000px) {
    .flow-container {
        flex-direction:column;
        gap: 30px
    }

    .arrow {
        display: none
    }

    .flow-step::after {
        content: '↓';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 30px;
        color: #1a73e8;
        opacity: .7
    }

    .flow-step:last-child::after {
        display: none
    }
}

.sub-steps {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap
}

.sub-step {
    background: linear-gradient(135deg,#e3f2fd,#d1e8ff);
    padding: 10px;
    border-radius: 6px;
    width: 100px;
    text-align: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgb(0 0 0 / .05)
}

.sub-step strong {
    color: #1a73e8
}

h2 {
    color: #2c3e50;
    margin: 10px 0 8px;
    font-size: 18px;
    font-weight: 600
}

p,ul {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4
}

ul {
    padding: 0;
    list-style: none;
    text-align: center
}

ul li {
    margin: 5px 0
}

.best-practices ul {
    text-align: left;
    padding-left: 20px;
    list-style: none
}

.best-practices ul li {
    margin: 8px 0
}

.tip {
    color: #6c757d;
    font-size: 12px;
    margin-top: 8px;
    font-style: italic
}

.highlight {
    color: #1a73e8;
    font-weight: 700
}

.example-section {
    margin-top: 50px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgb(0 0 0 / .1);
    border: 1px solid #e0e7ff
}

.example-code {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    font-family: 'Courier New',monospace;
    font-size: 12px;
    color: #333;
    border-left: 3px solid #1a73e8
}

.progress-container {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#007bff,#00c4ff);
    width: 0%;
    transition: width 0.5s ease
}

.progress-text {
    font-size: 14px;
    color: #2c3e50
}

/* 标签变量查询结果样式 */
.variable-group {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 15px;
}

.variable-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.variable-header h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.variable-description {
    color: #666;
    font-size: 14px;
}

.variable-description p {
    margin: 5px 0;
}

.variable-description strong {
    color: #333;
}

.categories-table {
    margin-top: 15px;
    overflow-x: auto;
}

.categories-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.categories-table th,
.categories-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.categories-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.categories-table tr:hover {
    background-color: #f8f9fa;
}

.no-categories {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .variable-group {
        padding: 10px;
    }
    
    .categories-table {
        margin: 10px -10px;
        width: calc(100% + 20px);
    }
    
    .categories-table th,
    .categories-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* 预设变量样式 */
.preset-category {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.preset-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s;
}

.preset-category-header:hover {
    background: #e9ecef;
}

.preset-category-title {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.preset-category-actions {
    display: flex;
    gap: 8px;
}

.preset-category-actions button {
    padding: 4px 8px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-category-actions button:hover {
    background: #e9ecef;
}

.preset-category-content {
    display: none;
    padding: 10px;
}

.preset-category.active .preset-category-content {
    display: block;
}

.preset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.preset-table th,
.preset-table td {
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.preset-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
}

.preset-table tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.preset-table tr:hover {
    background-color: #f8f9fa;
}

.preset-table tr.selected {
    background-color: #e3f2fd;
}

.checkbox-cell {
    width: 40px;
    text-align: center;
}

.variable-code {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
}

.variable-description {
    color: #666;
}

.variable-chinese {
    color: #2c3e50;
}

.variable-meta {
    color: #666;
    font-size: 12px;
}

.selected-tag {
    color: #666;
    font-size: 11px;
    margin-left: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preset-category-header {
        padding: 8px 12px;
    }
    
    .preset-table th,
    .preset-table td {
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .variable-code {
        font-size: 11px;
    }
    
    .variable-meta {
        font-size: 11px;
    }
}

/* 搜索区域样式 */
.search-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 15px;
    flex: 1;
}

.search-input-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input-group input:first-child {
    flex: 1;
}

.search-input-group input:nth-child(2),
.search-input-group input:nth-child(3) {
    flex: 2;
}

.search-buttons {
    display: flex;
    gap: 10px;
}

.search-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #45a049;
}

.search-button.secondary {
    background-color: #2196F3;
}

.search-button.secondary:hover {
    background-color: #1976D2;
}

@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group input {
        width: 100%;
    }

    .search-buttons {
        justify-content: flex-end;
    }
}

/* Toast 消息提示样式 */
#toastContainer {
    position: fixed;
    top: 100px;
    right: 50px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(100%);
    animation: toast-in-right 0.3s ease forwards;
    min-width: 250px;
    max-width: 500px;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.toast.success {
    background-color: rgba(76, 175, 80, 0.8);
    border-left: 4px solid #388e3c;
}

.toast.error {
    background-color: rgba(244, 67, 54, 0.8);
    border-left: 4px solid #d32f2f;
}

@keyframes toast-in-right {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 0.95;
    }
}

@keyframes toast-out-right {
    from {
        transform: translateY(0);
        opacity: 0.95;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* 视频教程样式 */
.video-tutorial {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.video-tutorial h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.video-tutorial p {
    color: #666;
    margin-bottom: 20px;
}

.video-link {
    text-align: center;
}

.video-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.video-button:hover {
    background-color: #45a049;
}

.video-button i {
    font-size: 1.2em;
}

/* Schema列样式 */
.schema-list {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    max-width: 200px;
    word-wrap: break-word;
}

.schema-list:hover {
    background: #e9ecef;
    color: #495057;
}

/* 变量分组显示样式 */
.variable-group-info {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

/* 改善表格中长文本的显示 */
.variable-meta {
    max-width: 150px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 预选变量池标题样式 */
#preselectedTitle {
    color: #495057;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}
