/* 选项卡样式 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: -1px;
    color: #666;
    text-decoration: none;
}
.tab.active {
    color: #2196F3;
    border-color: #ddd #ddd #fff #ddd;
    background: #fff;
}

/* 访问限制相关样式 */
.access-limit-alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #ffeeba;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.access-limit-alert h3 {
    margin-top: 0;
    color: #856404;
    font-size: 18px;
}

.access-limit-alert p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.access-limit-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
            
.access-limit-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.access-limit-btn.primary {
    background: #FF9800;
    color: white;
    border: 1px solid #FF9800;
}

.access-limit-btn.primary:hover {
    background: #F57C00;
    border-color: #F57C00;
}

.access-limit-btn.secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.access-limit-btn.secondary:hover {
    background: #f5f5f5;
    color: #333;
}

/* 搜索样式 */
.search-container {
    margin-bottom: 20px;
}
.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.search-select {
    width: auto;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.search-button {
    padding: 8px 16px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.search-button:hover {
    background: #357ABD;
}

/* 方剂列表样式 */
.formula-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}
.result-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}
.result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.item-header {
    margin-bottom: 10px;
}
.item-type {
    color: #666;
    font-size: 0.9em;
}
.item-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}
.item-brief {
    margin: 5px 0;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-actions {
    margin-top: 15px;
    text-align: right;
}
.view-detail-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #4A90E2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}
.view-detail-btn:hover {
    background: #357ABD;
}
.item-label {
    color: #888;
    margin-right: 5px;
}

/* 详情页样式 */
.formula-detail {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.detail-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}
.detail-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.detail-content {
    line-height: 1.6;
    color: #555;
}
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #4A90E2;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* 无结果提示 */
.no-results {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    margin: 20px 0;
} 