/* template/default/css/apply.css */
/* 收录申请页专用样式 */

/* 表单标签 */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-label.optional::after {
    content: ' (选填)';
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: normal;
}

/* 表单输入框 */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
    background: #0f172a;
}

.form-input::placeholder {
    color: #64748b;
}

/* 字符计数 */
.char-count {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
}

.char-progress {
    width: 100%;
    height: 2px;
    background: #334155;
    margin-top: 0.25rem;
    border-radius: 1px;
    overflow: hidden;
}

.char-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    transition: width 0.3s ease;
}

/* URL输入行 */
.domain-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.protocol-select {
    padding: 0.75rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #e2e8f0;
    min-width: 8rem;
    cursor: pointer;
}

.protocol-select:focus {
    outline: none;
    border-color: #06b6d4;
}

/* TDK获取按钮 */
.tdk-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tdk-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

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

/* 分类选择框 */
.category-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #e2e8f0;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2306b6d4' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.category-select:focus {
    outline: none;
    border-color: #06b6d4;
}

/* 验证码 */
.captcha-img {
    min-width: 8rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #06b6d4;
    padding: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5rem;
}

.captcha-img:hover {
    border-color: #06b6d4;
}

/* 提交按钮 */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

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

/* 右侧信息面板 */
.info-panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    font-family: 'Orbitron', monospace;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-panel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #1e293b;
    border-radius: 0.5rem;
    border-left: 3px solid #06b6d4;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #334155;
}

.info-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06b6d4;
    flex-shrink: 0;
}

.info-content h4 {
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 0.125rem;
    font-size: 0.8125rem;
}

.info-content p {
    color: #94a3b8;
    font-size: 0.6875rem;
}

/* 统计区域 */
.category-stats {
    margin-top: 1.75rem;
}

.stats-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.875rem;
    font-family: 'Orbitron', monospace;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.stat-item {
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #334155;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 0.125rem;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 待审核列表 */
.pending-application {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 3px solid #06b6d4;
}

.pending-application:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* 主内容布局 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.form-section {
    background: rgba(18, 25, 35, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-section {
    background: rgba(18, 25, 35, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .info-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-section,
    .info-section {
        padding: 1.5rem;
    }
    .domain-input-row {
        flex-wrap: wrap;
    }
    .tdk-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}