/* ==========================================================================
   新芮表单 关于我们页面样式 v1.0
   与首页 index.css 风格保持一致
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --accent: #f59e0b;
    --success: #10b981;
    --dark: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

/* ==========================================================================
   关于 Hero
   ========================================================================== */
.about-hero {
    background: var(--gradient);
    padding: 72px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.about-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section {
    padding: 72px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--gradient);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================================================
   公司介绍
   ========================================================================== */
.intro-section {
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.intro-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
}

.intro-text h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
}

.intro-text h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--gradient);
    margin-top: 12px;
    border-radius: 2px;
}

.intro-text p {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 16px;
}

/* ==========================================================================
   核心特色
   ========================================================================== */
.features-section {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact-section {
    background: var(--white);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-100);
}

.contact-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   CTA 号召区
   ========================================================================== */
.cta-section {
    padding: 64px 0;
    background: var(--gradient);
    color: var(--white);
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
}

.social-link img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-beian a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-beian a:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   登录弹窗
   ========================================================================== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 440px;
    max-width: 92%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
}

.login-modal-header {
    background: var(--gradient);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.login-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.login-modal-body {
    padding: 1.5rem;
}

.quick-login-section {
    text-align: center;
}

.quick-login-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.social-login-big {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-login-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    background: #fafafa;
}

.social-login-item img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.social-login-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.social-login-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.social-login-item.wechat:hover {
    background: #e8f8ef;
    border-color: #07C160;
    color: #07C160;
}

.social-login-item.qq:hover {
    background: #e8f0fe;
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.social-login-item.dingtalk:hover {
    background: #e8f4fd;
    border-color: #1E88E5;
    color: #1E88E5;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

.account-login-section .form-group {
    margin-bottom: 1rem;
}

.account-login-section label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.35rem;
    display: block;
}

.account-login-section .form-control {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.account-login-section .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.account-login-section .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.account-login-section .form-check-input {
    margin-right: 0.5rem;
}

.account-login-section .btn-primary {
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.account-login-section .btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.account-login-toggle-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.account-login-toggle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.account-login-toggle:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.9rem;
}

#rhszzhmm {
    padding: 0.75rem;
    border-radius: 8px;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    line-height: 25px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   加载弹窗
   ========================================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-modal {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: var(--dark);
    margin: 0;
}

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid,
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        margin: 0;
        padding: 16px 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
        z-index: 999;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border);
    }

    .nav-list a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .about-hero {
        padding: 56px 0;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .cta-inner h2 {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .login-modal-overlay {
        padding-top: 0;
        align-items: center;
    }

    .login-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 576px) {
    .header-actions .btn-login {
        display: none;
    }

    .features-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .social-login-big {
        gap: 0.5rem;
    }

    .social-login-item img {
        width: 38px;
        height: 38px;
    }

    .social-login-item span {
        font-size: 0.8rem;
    }
}
