/**
 * Standards Module Styles
 * 可执行标准模块样式
 * 
 * @package Corporate_Theme
 * @since 2.0.0
 */

/* ==========================================================================
   可执行标准模块
   ========================================================================== */

.about-standards {
    padding: 100px 0;
    background: #fafbfc;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.standard-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #eceff1;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.standard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    border-color: #42a5f5;
}

.standard-card__icon {
    color: #1976d2;
    margin-bottom: 20px;
}

.standard-card__title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #263238;
    margin-bottom: 15px;
    line-height: 1.4;
}

.standard-card__description {
    font-size: 1rem;
    color: #546e7a;
    line-height: 1.6;
    margin-bottom: 25px;
}

.standard-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #1976d2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.standard-card__button:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.standard-card__button svg {
    flex-shrink: 0;
}

/* ==========================================================================
   下载表单模态框 - 与产品详情页一致
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 防止背景滚动 */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal-content {
    background: #ffffff;
    padding: 48px;
    border-radius: 8px;
    max-width: 540px;
    width: 90%;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid #eceff1;
    margin: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 28px;
    font-weight: bold;
    color: #78909c;
    cursor: pointer;
    background: #f5f7f9;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #263238;
    background: #eceff1;
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 28px;
    color: #263238;
    margin: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.modal-content p {
    color: #546e7a;
    margin: 0 0 32px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================================================
   下载表单 - 与产品详情页一致
   ========================================================================== */

.download-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #263238;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #eceff1;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #263238;
    font-weight: 500;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
    background: #ffffff;
}

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

.btn-submit {
    padding: 16px 24px;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25,118,210,0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

/* 平板 */
@media (min-width: 768px) and (max-width: 1024px) {
    .about-standards {
        padding: 80px 0;
    }
    
    .standards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 移动设备 */
@media (max-width: 767px) {
    .about-standards {
        padding: 60px 0;
    }
    
    .standards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .standard-card {
        padding: 30px 20px;
    }
    
    .standard-card__title {
        font-size: 1.25rem;
    }
    
    .standard-card__description {
        font-size: 0.9375rem;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}
