/* ============================================
   简洁大方 - 微信服务号管理后台样式
   设计理念：简约、专业、现代
   ============================================ */

/* 通用样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #F5F7FA;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: #1890ff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #40a9ff; }

/* 布局 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-wrapper { display: flex; min-height: 100vh; }

/* 侧边栏 - 浅色主题 */
.sidebar { 
    width: 240px; 
    background: #fff; 
    color: #333; 
    position: fixed; 
    height: 100vh; 
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.06);
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}
.sidebar .logo { 
    padding: 24px 20px; 
    font-size: 18px; 
    font-weight: 600; 
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #1890ff;
}
.sidebar .nav { padding: 12px 0; }
.sidebar .nav a { 
    display: flex; 
    align-items: center;
    gap: 12px;
    padding: 14px 20px; 
    color: #666; 
    transition: all 0.2s;
    font-size: 14px;
}
.sidebar .nav a:hover { 
    color: #1890ff; 
    background: #f0f7ff;
}
.sidebar .nav a.active { 
    color: #1890ff; 
    background: #e6f7ff;
    font-weight: 500;
}
.sidebar .nav a i { width: 20px; text-align: center; }
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    margin-top: auto;
    background: #fff;
}
.sidebar-footer .logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #999;
    transition: all 0.2s;
    font-size: 14px;
    border-radius: 6px;
}
.sidebar-footer .logout-btn:hover {
    color: #ff4d4f;
    background: #fff1f0;
}

.main-content { 
    flex: 1; 
    margin-left: 240px; 
    padding: 24px;
    min-height: 100vh;
}

/* 卡片 - 简洁白底 */
.card { 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px; 
    overflow: hidden; 
}
.card-header { 
    padding: 16px 24px; 
    border-bottom: 1px solid #eee; 
    font-weight: 600; 
    font-size: 16px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #fff;
    color: #333;
}
.card-body { padding: 24px; }

/* 表格 - 带边框 */
.table { 
    width: 100%; 
    border-collapse: collapse; 
    border: 1px solid #e8e8e8;
}
.table th, .table td { 
    padding: 14px 16px; 
    text-align: left; 
    border: 1px solid #e8e8e8;
}
.table th { 
    background: #FAFBFC; 
    font-weight: 600; 
    color: #666; 
    font-size: 13px;
}
.table tr:hover { background: #FAFBFC; }
.table tr:last-child td { border-bottom: 1px solid #e8e8e8; }

/* 表单 - 扁平化设计 */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: #555; 
    font-size: 14px; 
}
.form-control { 
    width: 100%; 
    padding: 10px 14px; 
    border: 1px solid #d9d9d9; 
    border-radius: 6px; 
    font-size: 14px; 
    transition: all 0.2s;
    background: #fff;
}
.form-control:focus { 
    outline: none; 
    border-color: #1890ff; 
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1); 
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: #999; margin-top: 6px; }

/* 按钮 - 简洁扁平 */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500; 
    transition: all 0.2s;
}
.btn-primary { background: #1890ff; color: #fff; }
.btn-primary:hover { background: #40a9ff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #73d13d; }
.btn-warning { background: #faad14; color: #fff; }
.btn-warning:hover { background: #ffc53d; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #ff7875; }
.btn-default { background: #fff; border: 1px solid #d9d9d9; color: #666; }
.btn-default:hover { border-color: #1890ff; color: #1890ff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* 标签与徽章 - 简洁圆润 */
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin: 2px; }
.badge { 
    display: inline-block; 
    padding: 2px 8px; 
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: 500;
}
.badge-success { background: #52c41a; color: #fff; border: 1px solid #389e0d; }
.badge-warning { background: #fffbe6; color: #faad14; border: 1px solid #ffe58f; }
.badge-danger { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.badge-primary { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }

/* 分页 */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 4px; font-size: 14px; }
.pagination a { background: #fff; border: 1px solid #d9d9d9; color: #666; }
.pagination a:hover { border-color: #1890ff; color: #1890ff; }
.pagination .active { background: #1890ff; color: #fff; border: none; }

/* 搜索框 */
.search-box { display: flex; gap: 10px; margin-bottom: 16px; }
.search-box input { flex: 1; }

/* 模态框 - 简洁现代 */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.45); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center;
}
.modal.show { display: flex; }
.modal-content { 
    background: #fff; 
    border-radius: 8px; 
    width: 800px; 
    max-width: 95%; 
    max-height: 90vh; 
    overflow-y: auto; 
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.modal-header { 
    padding: 16px 24px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; line-height: 1; }
.modal-close:hover { color: #333; }
.modal-body { padding: 24px; }
.modal-footer { 
    padding: 16px 24px; 
    border-top: 1px solid #eee; 
    text-align: right; 
    gap: 10px; 
    display: flex; 
    justify-content: flex-end; 
}

/* 登录页 */
.login-page { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.login-box { 
    background: #fff; 
    padding: 40px; 
    border-radius: 8px; 
    width: 400px; 
    max-width: 90%; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.login-box h2 { text-align: center; margin-bottom: 32px; color: #333; font-size: 20px; }

/* 用户端页面 */
.user-page { max-width: 480px; margin: 60px auto; padding: 20px; }

.user-profile-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.user-profile-header {
    background: linear-gradient(135deg, #1890ff 0%, #52c3ff 100%);
    padding: 32px 24px;
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.user-profile-header h2 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.user-profile-header p { color: rgba(255,255,255,0.8); font-size: 14px; }
.user-profile-body { padding: 24px; }

/* API Key 区块 */
.api-key-section {
    background: #fafafa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.api-key-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.api-key-label span { font-size: 13px; color: #666; }
.api-key-value { 
    font-family: 'SF Mono', Monaco, monospace; 
    font-size: 16px; 
    color: #1890ff; 
    font-weight: 500;
    word-break: break-all; 
    padding: 12px; 
    background: #fff; 
    border-radius: 4px; 
    text-align: center; 
    border: 1px solid #e8e8e8;
}
.api-key-hint { font-size: 12px; color: #999; margin-top: 8px; }

/* 信息区块 */
.info-section { margin-bottom: 20px; }
.info-section-title { 
    font-size: 12px; 
    color: #999; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 12px; 
    font-weight: 600;
}
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-item { 
    background: #fafafa; 
    padding: 12px 14px; 
    border-radius: 6px;
    border: 1px solid #eee;
}
.info-item-label { font-size: 12px; color: #999; margin-bottom: 4px; }
.info-item-value { font-size: 14px; color: #333; font-weight: 500; }

/* 绑定表单 */
.bind-form-section { padding: 24px; }
.form-title { text-align: center; margin-bottom: 24px; }
.form-title h2 { font-size: 20px; color: #333; margin-bottom: 8px; }
.form-title p { color: #999; font-size: 14px; }

/* 输入框组 */
.input-group { position: relative; margin-bottom: 16px; }
.input-group label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 14px; 
    color: #555; 
    margin-bottom: 8px; 
    font-weight: 500; 
}
.input-icon { 
    width: 28px; 
    height: 28px; 
    background: #1890ff; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 14px; 
}

/* 标签 */
.tags-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-item { 
    background: #e6f7ff; 
    color: #1890ff; 
    padding: 4px 12px; 
    border-radius: 4px; 
    font-size: 13px;
}

/* 统计卡片 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat-card { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.stat-card .number { 
    font-size: 28px; 
    font-weight: bold; 
    color: #1890ff; 
}
.stat-card .label { color: #666; margin-top: 8px; font-size: 14px; }

/* 工具栏 */
.toolbar { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    flex-wrap: wrap; 
    margin-bottom: 16px; 
    padding: 12px 16px; 
    background: #fff; 
    border-radius: 6px;
    border: 1px solid #eee;
}
.toolbar select { padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }

/* 消息提示 */
.alert { 
    padding: 12px 16px; 
    border-radius: 6px; 
    margin-bottom: 16px; 
    font-size: 14px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.alert-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.alert-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.alert-warning { background: #fffbe6; color: #faad14; border: 1px solid #ffe58f; }

/* 空状态 */
.empty-state { text-align: center; padding: 48px 20px; color: #999; }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* 复选框组 */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; }

/* 颜色选择 */
.color-options { display: flex; gap: 12px; flex-wrap: wrap; }
.color-option { 
    width: 32px; 
    height: 32px; 
    border-radius: 4px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: all 0.2s; 
}
.color-option:hover { transform: scale(1.1); }
.color-option.selected { border-color: #333; }

/* 推送配置 */
.push-config { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* 状态指示 */
.status-dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    display: inline-block; 
}
.status-dot.success { background: #52c41a; }
.status-dot.warning { background: #faad14; }
.status-dot.danger { background: #ff4d4f; }

/* 模板预览 */
.template-preview { 
    background: #fff; 
    border-radius: 8px; 
    border: 1px solid #eee;
    overflow: hidden;
}
.template-preview .preview-header {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.template-preview .preview-content {
    padding: 0;
}
.template-preview .preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
}
.template-preview .preview-item:last-child {
    border-bottom: none;
}
.template-preview .preview-label { 
    color: #666; 
    font-size: 13px; 
}
.template-preview .preview-value { 
    color: #333; 
    font-size: 13px; 
    font-weight: 500; 
}
.template-preview .preview-remark {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
    background: #fafafa;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 44px;
    height: 44px;
    background: #1890ff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(24,144,255,0.3);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.mobile-overlay.show {
    display: block;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: -240px;
    width: 240px;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    box-shadow: 4px 0 16px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-overlay.active {
    left: 0;
}

.sidebar-overlay .logo { 
    padding: 24px 20px; 
    font-size: 18px; 
    font-weight: 600; 
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #1890ff;
}

.sidebar-overlay .nav { padding: 12px 0; }
.sidebar-overlay .nav a { 
    display: flex; 
    align-items: center;
    gap: 12px;
    padding: 14px 20px; 
    color: #666; 
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-overlay .nav a:hover { 
    color: #1890ff; 
    background: #f0f7ff;
}

.sidebar-overlay .nav a.active { 
    color: #1890ff; 
    background: #e6f7ff;
    font-weight: 500;
}

.sidebar-overlay .nav a i { width: 20px; text-align: center; }

.sidebar-overlay .sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    margin-top: auto;
    background: #fff;
}

.sidebar-overlay .logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #999;
    transition: all 0.2s;
    font-size: 14px;
    border-radius: 6px;
}

.sidebar-overlay .logout-btn:hover {
    color: #ff4d4f;
    background: #fff1f0;
}

/* 响应式 */
@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 70px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .card-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .number {
        font-size: 22px;
    }
    
    .stat-card .label {
        font-size: 12px;
    }
    
    .table-wrapper {
        overflow-x: auto;
        border-radius: 6px;
        border: 1px solid #e8e8e8;
    }
    
    .table {
        font-size: 12px;
        min-width: 600px;
    }
    
    .table th, .table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .toolbar select,
    .toolbar input[type="text"],
    .toolbar button {
        width: 100%;
        max-width: none;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-item {
        flex-direction: row;
        align-items: center;
    }
    
    .push-config {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .user-page {
        margin: 15px auto;
        padding: 10px;
    }
    
    .login-box {
        padding: 25px;
        width: 90%;
    }
    
    .pagination a, .pagination span {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .tag {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    .badge {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .api-key-value {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 10px;
        padding-top: 60px;
    }
    
    .card-header {
        padding: 10px 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .stat-card .number {
        font-size: 20px;
    }

    .stat-card .label {
        font-size: 11px;
    }
}

/* 用户端页面响应式 */
@media (max-width: 768px) {
    .dashboard-page,
    .bind-page {
        margin: 20px auto;
        padding: 10px;
    }

    .profile-header,
    .bind-header {
        padding: 30px 20px;
    }

    .avatar {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .profile-header h1,
    .bind-header h1 {
        font-size: 20px;
    }

    .profile-body,
    .bind-body {
        padding: 20px;
    }

    .api-section {
        padding: 15px;
    }

    .api-key {
        font-size: 14px;
        padding: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-item.full {
        grid-column: span 1;
    }

    .api-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
    }

    .form-item input {
        padding: 12px 14px;
    }

    .submit-btn,
    .save-btn {
        padding: 14px;
    }

    .edit-form .form-group input {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .dashboard-page,
    .bind-page {
        margin: 10px auto;
        padding: 5px;
    }

    .profile-card,
    .bind-card {
        border-radius: 16px;
    }

    .profile-header,
    .bind-header {
        padding: 24px 15px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .profile-header h1,
    .bind-header h1 {
        font-size: 18px;
    }

    .profile-body,
    .bind-body {
        padding: 15px;
    }

    .info-item {
        padding: 12px;
    }

    .api-key {
        font-size: 12px;
    }

    .form-item {
        margin-bottom: 16px;
    }

    .tag-list {
        gap: 6px;
    }

    .tag-badge {
        padding: 4px 10px;
        font-size: 12px;
    }

    .success-msg,
    .error-msg {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ========== 模板列表可展开样式 ========== */
.template-table .expand-col {
    width: 40px;
    text-align: center;
    cursor: pointer;
}

.template-table .template-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.template-table .template-row:hover {
    background-color: #f5f7fa;
}

.template-table .template-row.expanded {
    background-color: #f0f7ff;
}

.expand-icon {
    display: inline-block;
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}

.template-row:hover .expand-icon {
    color: #1890ff;
}

.template-detail-row {
    background-color: #fafbfc;
}

.template-detail-row:hover {
    background-color: #fafbfc;
}

.detail-cell {
    padding: 0 !important;
}

.template-detail-content {
    padding: 16px 20px;
}

.detail-section {
    margin-bottom: 12px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section > strong {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.field-name {
    font-weight: 500;
    font-size: 13px;
}

.field-key {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.remark-content {
    font-size: 14px;
    padding: 8px 12px;
    background: #fffbe6;
    border-radius: 6px;
    display: inline-block;
}

@media (max-width: 768px) {
    .template-table {
        font-size: 12px;
    }
    
    .template-table th,
    .template-table td {
        padding: 10px 8px;
    }
    
    .field-list {
        flex-direction: column;
        gap: 6px;
    }
    
    .detail-field {
        width: 100%;
    }
    
    .template-detail-content {
        padding: 12px;
    }
}
