.itp-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.itp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.itp-section {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.itp-section h3 {
    font-size: 0.9em;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itp-section h3 i {
    color: #e74c3c;
}

.itp-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.itp-upload:hover,
.itp-upload.dragover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.itp-upload i {
    font-size: 1.6em;
    color: #e74c3c;
    margin-bottom: 6px;
}

.itp-upload p {
    color: #666;
    font-size: 0.8em;
    margin: 0 0 4px;
}

.itp-hint {
    color: #999;
    font-size: 0.72em;
}

.itp-form-row {
    margin-bottom: 12px;
}

.itp-form-row label {
    display: block;
    font-size: 0.82em;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.itp-select {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85em;
    background: #fff;
}

.itp-radio-group {
    display: flex;
    gap: 10px;
}

.itp-radio {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82em;
    color: #555;
    cursor: pointer;
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.2s;
}

.itp-radio:hover {
    border-color: #e74c3c;
}

.itp-radio input {
    accent-color: #e74c3c;
}

.itp-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.itp-range-value {
    font-weight: 600;
    color: #e74c3c;
    font-size: 0.85em;
}

.itp-range {
    width: 100%;
    accent-color: #e74c3c;
}

.itp-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.itp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.itp-btn {
    flex: 1;
    min-width: 70px;
    padding: 9px;
    border: none;
    border-radius: 8px;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.itp-btn-primary {
    background: #e74c3c;
    color: #fff;
}

.itp-btn-primary:hover:not(:disabled) {
    background: #c0392b;
}

.itp-btn-success {
    background: #27ae60;
    color: #fff;
}

.itp-btn-success:hover:not(:disabled) {
    background: #219a52;
}

.itp-btn-outline {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.itp-btn-outline:hover:not(:disabled) {
    background: #fff5f5;
}

.itp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.itp-stats {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-around;
}

.itp-stat-item {
    text-align: center;
}

.itp-stat-label {
    display: block;
    font-size: 0.75em;
    color: #718096;
    margin-bottom: 2px;
}

.itp-stat-value {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: #e74c3c;
}

.itp-usage-info {
    background: #fdecea;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.8em;
    color: #2c3e50;
    text-align: center;
}

.itp-usage-info i {
    color: #e74c3c;
    margin-right: 4px;
}

.itp-vip-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0,0,0,0.75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    backdrop-filter: blur(2px);
}

.itp-vip-mask-inner {
    text-align: center;
    color: #fff;
    padding: 30px;
}

.itp-vip-mask-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.itp-vip-mask-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
}

.itp-vip-mask-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.itp-vip-btn {
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.itp-vip-btn:hover {
    background: #c0392b;
}

.itp-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    min-width: 0;
}

.itp-main.has-vip-mask {
    min-height: 500px;
}

.itp-file-panel {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.itp-file-panel h4 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itp-file-panel h4 i {
    color: #e74c3c;
}

.itp-file-count {
    color: #718096;
    font-weight: 400;
    font-size: 0.85em;
}

.itp-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.itp-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    color: #999;
}

.itp-placeholder i {
    font-size: 3em;
    margin-bottom: 12px;
    color: #bdc3c7;
}

.itp-file-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    transition: all 0.2s;
}

.itp-file-item:hover {
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231,76,60,0.08);
}

.itp-file-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
}

.itp-file-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.itp-file-name {
    font-size: 0.85em;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-all;
}

.itp-file-meta {
    font-size: 0.75em;
    color: #718096;
}

.itp-file-actions {
    display: flex;
    gap: 4px;
}

.itp-file-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.75em;
}

.itp-file-btn:hover:not(:disabled) {
    background: #e74c3c;
    color: #fff;
}

.itp-file-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.itp-file-btn.delete:hover {
    background: #e74c3c;
}

.itp-tips {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.itp-tips h4 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itp-tips h4 i {
    color: #f39c12;
}

.itp-tip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.itp-tip-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid #e74c3c;
}

.itp-tip-item strong {
    display: block;
    font-size: 0.85em;
    color: #2c3e50;
    margin-bottom: 3px;
}

.itp-tip-item p {
    font-size: 0.75em;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .itp-container {
        grid-template-columns: 1fr;
    }
    .itp-tip-grid {
        grid-template-columns: 1fr;
    }
    .itp-file-item {
        grid-template-columns: 50px 1fr;
    }
    .itp-file-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
