/* ============================================
   信息公示插件 - 前台样式
   复用子比主题 zib-widget 风格
   ============================================ */

.ztt-tab-table-wrap {
    margin: 0;
}

/* 按钮组 */
.ztt-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.ztt-tab-btn {
    display: inline-block;
    padding: 8px 24px;
    background: var(--ztt-btn-color, #2196F3);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 150, 255, 0.3);
    outline: none;
    line-height: 1.5;
}

.ztt-tab-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 150, 255, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.ztt-tab-btn.active {
    opacity: 0.85;
    box-shadow: 0 3px 10px rgba(0, 150, 255, 0.4);
}

/* 内容区 */
.ztt-tab-content {
    display: none;
    animation: zttFadeIn 0.3s ease;
}

.ztt-tab-content.active {
    display: block;
}

@keyframes zttFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 数据表格 */
.ztt-data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ztt-data-table thead th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e8e8e8;
    font-size: 14px;
}

.ztt-data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
}

.ztt-data-table tbody tr:last-child td {
    border-bottom: none;
}

.ztt-data-table tbody tr:hover {
    background: #f9fafc;
}

/* 空状态 */
.ztt-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

/* 申请按钮 */
.ztt-apply-section {
    margin-top: 24px;
}

.ztt-apply-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4facfe 0%, #0091ff 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.35);
}

.ztt-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.45);
    color: #fff;
    opacity: 0.95;
}

/* 弹窗 */
.ztt-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ztt-modal-mask.active {
    display: flex;
}

.ztt-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    animation: zttModalIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

@keyframes zttModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ztt-modal-header {
    padding: 20px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ztt-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.ztt-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.ztt-modal-close:hover {
    color: #333;
}

.ztt-modal-body {
    padding: 0 24px 24px;
}

.ztt-form-group {
    margin-bottom: 14px;
}

.ztt-form-group input,
.ztt-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: #f5f6f8;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
    color: #333;
}

.ztt-form-group input::placeholder,
.ztt-form-group textarea::placeholder {
    color: #999;
}

.ztt-form-group input:focus,
.ztt-form-group textarea:focus {
    background: #eef0f3;
    outline: none;
}

.ztt-form-group textarea {
    resize: vertical;
}

/* 单选按钮组 */
.ztt-radio-group {
    display: flex;
    gap: 10px;
}

.ztt-radio-item {
    flex: 1;
    background: #f5f6f8;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ztt-radio-item input {
    display: none;
}

.ztt-radio-item span {
    font-size: 14px;
    color: #666;
}

.ztt-radio-item:has(input:checked) {
    background: #e3f2fd;
}

.ztt-radio-item:has(input:checked) span {
    color: #0091ff;
    font-weight: 500;
}

.ztt-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ztt-checkbox-group .ztt-radio-item {
    flex: 0 0 auto;
    padding: 8px 16px;
}

.ztt-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.ztt-required {
    color: #f44336;
}

.ztt-form-actions {
    margin-top: 20px;
}

.ztt-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4facfe 0%, #0091ff 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.ztt-submit-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.ztt-cancel-btn {
    width: 100%;
    padding: 10px;
    background: #f5f6f8;
    color: #666;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.ztt-cancel-btn:hover {
    background: #e9ebee;
}

.ztt-success-tip {
    text-align: center;
    padding: 40px 20px;
    color: #4caf50;
    font-size: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .ztt-tab-buttons {
        gap: 8px;
    }
    .ztt-tab-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    .ztt-data-table thead th,
    .ztt-data-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 必填校验错误态 */
.ztt-field-error input,
.ztt-field-error textarea {
    border: 1px solid #f44336 !important;
    background: #fff5f5 !important;
}

.ztt-field-error .ztt-radio-item {
    border: 1px solid #f44336;
}

/* 名字彩色标签 */
.ztt-name-tag {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
    line-height: 1.8;
}

.ztt-name-gradient {
    background: linear-gradient(135deg, #9c27b0, #ff4081);
    color: #fff;
}

/* 审核结果站内通知弹窗 */
.ztt-notice-mask .ztt-modal-box {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.ztt-notice-list {
    padding: 4px 24px 8px;
    overflow-y: auto;
    max-height: 55vh;
}

.ztt-notice-item {
    background: #f5f6f8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.ztt-notice-item:last-child {
    margin-bottom: 0;
}

.ztt-notice-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.ztt-notice-content {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    word-break: break-all;
}

.ztt-notice-time {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.ztt-notice-mask .ztt-modal-body {
    display: none;
}


/* 表格横向滚动容器 */
.ztt-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.ztt-table-scroll table {
    min-width: 100%;
}

/* ============================================
   手机端自适应
   ============================================ */
@media (max-width: 600px) {
    .ztt-tab-buttons {
        gap: 8px;
    }
    .ztt-tab-btn {
        flex: 1 1 calc(50% - 4px);
        padding: 9px 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    .ztt-data-table thead th,
    .ztt-data-table tbody td {
        padding: 9px 10px;
        font-size: 12px;
    }
    .ztt-name-tag {
        padding: 1px 8px;
        font-size: 12px;
        border-radius: 10px;
    }
    .ztt-apply-section {
        margin-top: 18px;
    }
    .ztt-apply-btn {
        padding: 12px;
        font-size: 15px;
    }
    /* 弹窗不随屏幕自适应，保持正常居中弹窗（90%宽/最大440px） */
}