/* 营销工具页面统一黑客风格样式 */

/* 工具页面容器 */
.tool-container {
    background: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 0, 0.03) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 0, 0.03) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    min-height: 100vh;
    font-family: 'Orbitron', monospace;
    color: #00ff00;
    position: relative;
    padding: 1rem 0;
}

/* 工具标题区域 */
.tool-header {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 0;
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.4),
        inset 0 0 30px rgba(0, 255, 0, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.tool-header .card-body {
    position: relative;
    z-index: 2;
}

.tool-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    margin-bottom: 0.8rem;
    animation: glow 2s ease-in-out infinite alternate;
    font-family: 'Orbitron', monospace;
    line-height: 1.2;
}

@keyframes glow {
    from { text-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    to { text-shadow: 0 0 25px rgba(0, 255, 0, 1); }
}

.tool-subtitle {
    font-size: 1.1rem;
    color: #00cc00;
    font-weight: 400;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.4;
}

/* 卡片样式 */
.tool-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 0;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.2rem;
    min-height: 200px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.2);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: scan 4s linear infinite;
}

.tool-card-header {
    background: rgba(0, 255, 0, 0.1);
    border-bottom: 2px solid #00ff00;
    padding: 1rem 1.2rem;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.tool-card-header h5 {
    color: #00ff00;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.tool-card-header i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.tool-card-body {
    padding: 1.2rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 表单样式 */
.tool-form-control {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 0;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    padding: 0.6rem 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tool-form-control:focus {
    background: rgba(0, 0, 0, 0.9);
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    color: #00ff00;
    outline: none;
}

.tool-form-control::placeholder {
    color: rgba(0, 255, 0, 0.5);
    font-family: 'Share Tech Mono', monospace;
}

.tool-form-label {
    color: #00ff00;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* 按钮样式 */
.tool-btn {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tool-btn:hover::before {
    left: 100%;
}

.tool-btn-primary {
    background: transparent;
    border-color: #00ff00;
    color: #00ff00;
}

.tool-btn-primary:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.tool-btn-success {
    background: transparent;
    border-color: #00ff00;
    color: #00ff00;
}

.tool-btn-success:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.tool-btn-warning {
    background: transparent;
    border-color: #ffc107;
    color: #ffc107;
}

.tool-btn-warning:hover {
    background: #ffc107;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

.tool-btn-outline-warning {
    background: transparent;
    border-color: #ffc107;
    color: #ffc107;
}

.tool-btn-outline-warning:hover {
    background: #ffc107;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

/* 徽章样式 */
.tool-badge {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-badge-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.tool-badge-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.tool-badge-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
    color: #17a2b8;
    text-shadow: 0 0 5px rgba(23, 162, 184, 0.5);
}

.tool-badge-secondary {
    background: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
    color: #6c757d;
    text-shadow: 0 0 5px rgba(108, 117, 125, 0.5);
}

/* 警告框样式 */
.tool-alert {
    border-radius: 0;
    border: 2px solid;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tool-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: scan 3s linear infinite;
}

.tool-alert-success {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.tool-alert-danger {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.tool-alert-warning {
    border-color: #ffc107;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

/* 功能特性图标 */
.feature-icon {
    font-size: 1.8rem;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin-bottom: 0.8rem;
    animation: pulse 2s infinite;
}

/* 列表组样式 */
.tool-list-group {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 0;
}

.tool-list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    padding: 1rem;
    transition: all 0.3s ease;
}

.tool-list-group-item:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.tool-list-group-item:last-child {
    border-bottom: none;
}

/* 统计数字样式 */
.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    font-family: 'Orbitron', monospace;
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.2;
}

.stat-label {
    color: #00cc00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tool-container {
        padding: 0.8rem 0;
    }
    
    .tool-header {
        padding: 1.5rem 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .tool-title {
        font-size: 2rem;
    }
    
    .tool-card {
        margin-bottom: 1rem;
        min-height: 180px;
    }
    
    .tool-card-header {
        padding: 0.8rem 1rem;
        min-height: 55px;
    }
    
    .tool-card-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .tool-container {
        padding: 0.5rem 0;
    }
    
    .tool-header {
        padding: 1.2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .tool-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .tool-subtitle {
        font-size: 1rem;
    }
    
    .tool-card {
        margin-bottom: 0.8rem;
        min-height: 160px;
    }
    
    .tool-card-header {
        padding: 0.7rem 0.8rem;
        min-height: 50px;
    }
    
    .tool-card-header h5 {
        font-size: 0.9rem;
    }
    
    .tool-card-body {
        padding: 0.8rem;
    }
    
    .tool-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    .tool-form-control {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .tool-form-label {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .tool-container {
        padding: 0.3rem 0;
    }
    
    .tool-header {
        padding: 1rem 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .tool-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-subtitle {
        font-size: 0.9rem;
    }
    
    .tool-card {
        margin-bottom: 0.6rem;
        min-height: 140px;
    }
    
    .tool-card-header {
        padding: 0.6rem 0.7rem;
        min-height: 45px;
    }
    
    .tool-card-header h5 {
        font-size: 0.85rem;
    }
    
    .tool-card-body {
        padding: 0.6rem;
    }
    
    .tool-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-height: 32px;
    }
    
    .tool-form-control {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .tool-form-label {
        font-size: 0.8rem;
    }
    
    .feature-icon {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 400px) {
    .tool-title {
        font-size: 1.3rem;
    }
    
    .tool-subtitle {
        font-size: 0.8rem;
    }
    
    .tool-card {
        min-height: 120px;
    }
    
    .tool-card-header {
        min-height: 40px;
    }
    
    .tool-card-header h5 {
        font-size: 0.8rem;
    }
    
    .tool-btn {
        font-size: 0.7rem;
        min-height: 30px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
}

/* 组件协调性优化 */
.tool-card .row {
    margin: 0;
}

.tool-card .col-md-4,
.tool-card .col-md-6,
.tool-card .col-md-8 {
    padding: 0.5rem;
}

.tool-card .mb-3 {
    margin-bottom: 0.8rem;
}

.tool-card .mt-3 {
    margin-top: 0.8rem;
}

.tool-card .mt-2 {
    margin-top: 0.6rem;
}

/* 确保按钮组协调 */
.d-grid.gap-2 .tool-btn {
    margin-bottom: 0.5rem;
}

.d-grid.gap-2 .tool-btn:last-child {
    margin-bottom: 0;
}

/* 确保列表组协调 */
.tool-list-group-item {
    padding: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 确保徽章组协调 */
.tool-badge {
    margin: 0.2rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* 确保警告框协调 */
.tool-alert {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 确保功能特性区域协调 */
.tool-card .row.text-center .col-md-4 {
    margin-bottom: 1rem;
}

.tool-card .row.text-center .col-md-4:last-child {
    margin-bottom: 0;
}

/* 确保统计区域协调 */
.tool-card .row.text-center .col-md-6 {
    margin-bottom: 0.5rem;
}

/* 确保表单组协调 */
.tool-card .form-check {
    margin-bottom: 0.5rem;
}

.tool-card .form-check:last-child {
    margin-bottom: 0;
}
