/* 渠道管理系统主样式 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--card-background);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.navbar-brand img {
    height: 36px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.navbar-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.navbar-user:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--background-color);
}

/* 主内容区 */
.main-content {
    padding-top: 84px;
    min-height: calc(100vh - 64px);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label.required::after {
    content: '*';
    color: var(--danger-color);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--card-background);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-hint {
    margin-top: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-error {
    color: var(--danger-color);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input, .radio-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* 卡片样式 */
.card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

/* 渠道卡片 */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.channel-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.channel-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.channel-card-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.channel-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.channel-logo img[src=""],
.channel-logo img:not([src]) {
    display: none;
}

.channel-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.channel-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-desc {
    height: 2.8em;
    line-height: 1.4;
}

.channel-card-body {
    padding: 0 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* AI推荐理由样式 */
.ai-reason {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.625em;
    cursor: help;
}

.ai-reason:hover {
    color: var(--text-secondary);
}

.ai-reason-placeholder {
    height: 2.625em;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--background-color);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.75rem;
}

.tag-primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.tag-success {
    background: #d1fae5;
    color: var(--success-color);
}

.channel-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.channel-heat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 渠道列表布局 */
.channel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.channel-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    background: var(--primary-light);
}

.channel-list-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-list-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.channel-list-content {
    flex: 1;
    min-width: 0;
}

.channel-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.channel-list-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.channel-list-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.channel-list-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-list-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.channel-list-meta .channel-heat {
    color: var(--warning-color);
}

.channel-list-meta .channel-category {
    padding: 2px 8px;
    background: var(--background-color);
    border-radius: 4px;
}

.channel-list-action {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.channel-list-item:hover .channel-list-action {
    color: var(--primary-color);
    transform: translateX(4px);
}

.tag-warning {
    background: #fef3c7;
    color: var(--warning-color);
}

/* SSE流式进度条 */
.stream-progress {
    padding: 40px 20px;
    text-align: center;
}

.stream-progress .progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    margin: 0 auto 16px;
    max-width: 400px;
}

.stream-progress .progress-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.stream-progress .stop-btn {
    color: #dc2626;
    border-color: #dc2626;
}

.stream-progress .stop-btn:hover {
    background: #dc2626;
    color: white;
}

/* 分类侧边栏 */
.category-sidebar {
    width: 240px;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 16px 0;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
}

.category-item {
    padding: 12px 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.category-item:hover,
.category-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.category-item .count {
    background: var(--background-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.category-children {
    display: none;
    background: var(--background-color);
}

.category-item.expanded + .category-children {
    display: block;
}

.category-children .category-item {
    padding-left: 36px;
    font-size: 0.9375rem;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-background);
    font-size: 0.875rem;
}

.search-box {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9375rem;
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 详情页 */
.detail-header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 40px 0;
    margin-top: 64px;  /* 导航栏高度 */
}

.detail-header .container {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.detail-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-logo .channel-avatar {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    border-radius: var(--radius-lg);
}

.detail-logo img {
    width: 56px;
    height: 56px;
}

.detail-title h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 24px 0;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.detail-section h2 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.detail-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.text-muted {
    color: var(--text-muted);
}

/* 渠道文字头像 */
.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

.channel-avatar.size-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.channel-avatar.size-lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.detail-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-list {
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-card {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* 用户中心 */
.user-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.user-tabs a {
    padding: 12px 24px;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.user-tabs a:hover,
.user-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 历史记录 */
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.history-item:last-child {
    border-bottom: none;
}

.history-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.history-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.history-actions {
    display: flex;
    gap: 8px;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 120px;
    height: 120px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--card-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

/* 页脚 */
.footer {
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 响应式 */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .detail-aside {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .category-sidebar {
        display: none;
    }
    
    .channel-grid {
        grid-template-columns: 1fr;
    }
    
    /* 列表布局移动端优化 */
    .channel-list-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .channel-list-logo {
        width: 40px;
        height: 40px;
    }
    
    .channel-list-logo img {
        width: 28px;
        height: 28px;
    }
    
    .channel-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .channel-list-name {
        font-size: 0.9375rem;
    }
    
    .channel-list-tags .tag {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    
    .channel-list-desc {
        font-size: 0.8125rem;
    }
    
    .channel-list-meta {
        gap: 10px;
        font-size: 0.75rem;
    }
    
    .channel-list-action {
        display: none;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .detail-header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
    }
    
    .modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}
