/* 问丫企业查询系统 - 现代化样式 */

/* ===========================
   CSS变量定义
   =========================== */
:root {
    /* 主色调 - 鲜艳渐变 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
    --warning-gradient: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* 功能色 - 更鲜艳 */
    --success-color: #0ba360;
    --danger-color: #f5576c;
    --warning-color: #ffa726;
    --info-color: #29b6f6;
    
    /* 中性色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f8f9ff;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ===========================
   全局样式重置
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

/* ===========================
   导航栏样式
   =========================== */
.modern-navbar {
    background: var(--primary-gradient) !important;
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
    text-decoration: none;
    opacity: 0.9;
}

.brand-icon {
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand-text {
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-left: 0.25rem;
    font-weight: 400;
}

.user-info-badge, .points-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.9rem;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
}

.points-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.5);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.points-badge i {
    color: #ffd54f;
    animation: coinFlip 3s ease-in-out infinite;
}

@keyframes coinFlip {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

.login-btn {
    background: white !important;
    color: var(--primary-color) !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ===========================
   主容器
   =========================== */
.main-wrapper {
    min-height: calc(100vh - 70px);
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* ===========================
   Hero区域
   =========================== */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight-text {
    display: block;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.feature-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.2), rgba(251, 192, 45, 0.2));
}

.feature-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.2), rgba(103, 58, 183, 0.2));
}

.feature-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(11, 163, 96, 0.2), rgba(60, 186, 146, 0.2));
}

.feature-item:nth-child(1) i {
    color: #ffa726;
    font-size: 1.3rem;
    animation: bounce 2s ease-in-out infinite;
}

.feature-item:nth-child(2) i {
    color: #29b6f6;
    font-size: 1.3rem;
    animation: bounce 2s ease-in-out 0.2s infinite;
}

.feature-item:nth-child(3) i {
    color: #66bb6a;
    font-size: 1.3rem;
    animation: bounce 2s ease-in-out 0.4s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero-illustration {
    position: relative;
    z-index: 1;
    text-align: center;
}

.illustration-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 动画效果 */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   内容容器
   =========================== */
.content-container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

/* ===========================
   搜索区域
   =========================== */
.search-section {
    margin-bottom: 2rem;
    margin-top: 0;
}

.search-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.3);
}

.search-card:hover::before {
    opacity: 1;
}

.search-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
    animation: iconPulse 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes iconPulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.search-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modern-search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modern-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.modern-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-search-input::placeholder {
    color: var(--text-muted);
}

.modern-search-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.modern-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.modern-search-btn:active {
    transform: translateY(0);
}

.search-tips {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tip-item:nth-child(1) i {
    color: #ffa726;
}

.tip-item:nth-child(2) i {
    color: #29b6f6;
}

.tip-item:nth-child(3) i {
    color: #0ba360;
}

/* ===========================
   搜索结果样式
   =========================== */
.results-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    animation: slideUp 0.4s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.results-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-title i {
    color: var(--primary-color);
}

.results-count {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.results-list {
    display: grid;
    gap: 1rem;
}

.search-result-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-item:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.search-result-item h6 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.search-result-item .badge {
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
}

.search-result-item .badge-success {
    background-color: var(--success-color);
}

/* ===========================
   企业详情样式
   =========================== */
.enterprise-header {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
    position: relative;
    z-index: 1;
}

.btn-back {
    background: var(--bg-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-4px);
}

.enterprise-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.enterprise-icon {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.enterprise-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

.detail-nav-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.detail-nav-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.detail-nav-title i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.detail-nav-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-nav-btn {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.detail-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.detail-nav-btn:hover::before {
    left: 100%;
}

.detail-nav-btn[data-action="basic"] i {
    color: #29b6f6;
}

.detail-nav-btn[data-action="shareholders"] i {
    color: #667eea;
}

.detail-nav-btn[data-action="financing"] i {
    color: #ffa726;
}

.detail-nav-btn[data-action="staff"] i {
    color: #0ba360;
}

.detail-nav-btn[data-action="lawsuits"] i {
    color: #f5576c;
}

.detail-nav-btn:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.detail-nav-btn[data-action="basic"]:hover {
    border-color: #29b6f6;
}

.detail-nav-btn[data-action="shareholders"]:hover {
    border-color: #667eea;
}

.detail-nav-btn[data-action="financing"]:hover {
    border-color: #ffa726;
}

.detail-nav-btn[data-action="staff"]:hover {
    border-color: #0ba360;
}

.detail-nav-btn[data-action="lawsuits"]:hover {
    border-color: #f5576c;
}

.detail-nav-btn.active {
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.detail-nav-btn[data-action="basic"].active {
    background: var(--info-gradient);
    border-color: #29b6f6;
}

.detail-nav-btn[data-action="shareholders"].active {
    background: var(--primary-gradient);
    border-color: #667eea;
}

.detail-nav-btn[data-action="financing"].active {
    background: var(--warning-gradient);
    border-color: #ffa726;
}

.detail-nav-btn[data-action="staff"].active {
    background: var(--success-gradient);
    border-color: #0ba360;
}

.detail-nav-btn[data-action="lawsuits"].active {
    background: var(--accent-gradient);
    border-color: #f5576c;
}

.detail-nav-btn.active i {
    color: white;
}

/* ===========================
   详情卡片样式
   =========================== */
#detailContent .card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

#detailContent .card-header {
    padding: 1.5rem 2rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    position: relative;
    overflow: hidden;
}

#detailContent .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

#detailContent .card-header.bg-info {
    background: var(--info-gradient) !important;
}

#detailContent .card-header.bg-success {
    background: var(--success-gradient) !important;
}

#detailContent .card-header.bg-primary {
    background: var(--primary-gradient) !important;
}

#detailContent .card-header.bg-warning {
    background: var(--warning-gradient) !important;
    color: white !important;
}

#detailContent .card-header.bg-danger {
    background: var(--accent-gradient) !important;
}

#detailContent .card-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

#detailContent .card-header i {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#detailContent .card-body {
    padding: 2rem;
}

/* 表格样式 */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table {
    margin: 0;
}

.table thead th {
    background: var(--bg-light);
    border: none;
    font-weight: 700;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
}

.table tbody td {
    padding: 1rem 1.5rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* ===========================
   旧的登录模态框样式 - 已废弃
   =========================== */
/* 这些样式已被新的登录框样式取代，保留以防万一 */

/* ===========================
   加载指示器
   =========================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9000 !important;
    backdrop-filter: blur(5px);
}

.loading-overlay .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 4px;
}

/* ===========================
   页脚样式
   =========================== */
.modern-footer {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 2rem;
}

.footer-info p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

/* ===========================
   工具类样式
   =========================== */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* 诉讼项目样式 */
.lawsuit-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
    border-image: var(--accent-gradient) 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lawsuit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    pointer-events: none;
}

.lawsuit-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.2);
    transform: translateX(8px);
}

.lawsuit-item h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* 主要人员卡片 */
.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
}

.position-badges {
    line-height: 2;
}

.position-badges .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    margin: 0.25rem;
    font-weight: 600;
}

/* 嵌套卡片悬停效果 */
#detailContent .card .card {
    transition: all 0.3s ease;
}

#detailContent .card .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   响应式设计 - 平板
   =========================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .search-card {
        padding: 2rem;
    }
    
    .detail-nav-btn {
        min-width: 120px;
    }
}

/* ===========================
   响应式设计 - 手机
   =========================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .modern-navbar {
        padding: 0.75rem 0;
    }
    
    .brand-logo {
        font-size: 1.2rem;
    }
    
    .brand-icon {
        font-size: 1.4rem;
    }
    
    /* 导航栏右侧元素 - 避免重叠 */
    .navbar-nav {
        margin-top: 0.5rem;
    }
    
    .user-info-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin-right: 0.4rem;
        margin-bottom: 0.4rem;
        display: inline-block;
    }
    
    .points-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin-right: 0.4rem;
        margin-bottom: 0.4rem;
        display: inline-block;
    }
    
    .login-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    #logoutBtn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
        margin-top: 0.4rem;
    }
    
    /* 导航栏展开时垂直排列 */
    .navbar-collapse.show .navbar-nav,
    .navbar-collapse.collapsing .navbar-nav {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .navbar-collapse.show .nav-item,
    .navbar-collapse.collapsing .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Hero区域 */
    .hero-section {
        padding: 2.5rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .highlight-text {
        display: inline;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    /* 搜索区域 */
    .search-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .search-icon {
        font-size: 2rem;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .modern-search-box {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modern-search-input {
        padding: 0.875rem 1.25rem;
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    .modern-search-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .search-tips {
        gap: 1rem;
    }
    
    .tip-item {
        font-size: 0.8rem;
    }
    
    /* 搜索结果 */
    .results-container {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .results-title {
        font-size: 1.1rem;
    }
    
    .results-count {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .search-result-item {
        padding: 1.25rem;
    }
    
    .search-result-item:hover {
        transform: translateX(4px);
    }
    
    .search-result-item h6 {
        font-size: 1rem;
    }
    
    /* 企业详情 */
    .enterprise-header {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }
    
    .btn-back {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .enterprise-icon {
        font-size: 2rem;
    }
    
    .enterprise-name {
        font-size: 1.3rem;
    }
    
    .detail-nav-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }
    
    .detail-nav-title {
        font-size: 1rem;
    }
    
    .detail-nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .detail-nav-btn {
        min-width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.875rem 1.25rem;
    }
    
    .detail-nav-btn i {
        font-size: 1.3rem;
    }
    
    /* 详情卡片 */
    #detailContent .card {
        border-radius: var(--radius-lg);
    }
    
    #detailContent .card-header {
        padding: 1.25rem;
    }
    
    #detailContent .card-header h5 {
        font-size: 1.1rem;
    }
    
    #detailContent .card-body {
        padding: 1.25rem;
    }
    
    /* 表格 */
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 1rem;
    }
    
    /* 模态框 */
    .modern-modal-header {
        padding: 1.5rem;
    }
    
    .modern-modal-header .modal-title {
        font-size: 1.1rem;
    }
    
    .modern-input {
        padding: 0.75rem 1rem;
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    .send-code-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .modern-btn-primary {
        padding: 0.875rem !important;
        font-size: 1rem !important;
    }
    
    .welcome-tip {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
    
    /* 诉讼项目 */
    .lawsuit-item {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    /* 页脚 */
    .modern-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .footer-brand i {
        font-size: 1.5rem;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
}

/* ===========================
   响应式设计 - 小屏手机
   =========================== */
@media (max-width: 576px) {
    .content-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .search-card {
        padding: 1.25rem;
    }
    
    .modern-search-input,
    .modern-input {
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }
}

/* ===========================
   打印样式
   =========================== */
@media print {
    .modern-navbar,
    .btn,
    .loading-overlay,
    .modal,
    .modern-footer,
    .search-section,
    .detail-nav-card {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* ===========================
   滚动条样式
   =========================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* ===========================
   辅助动画
   =========================== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge颜色覆盖 - 使用渐变 */
.badge {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.badge-success {
    background: var(--success-gradient) !important;
    color: white !important;
}

.badge-danger {
    background: var(--accent-gradient) !important;
    color: white !important;
}

.badge-warning {
    background: var(--warning-gradient) !important;
    color: white !important;
}

.badge-info {
    background: var(--info-gradient) !important;
    color: white !important;
}

.badge-light {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(0,0,0,0.1);
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: white !important;
}

/* ===========================
   全新登录模态框样式 - 使用超高z-index
   =========================== */

/* 强制修复DOM层级关系 - 最高优先级 */
.modal-backdrop {
    z-index: 2 !important;
    position: fixed !important;
}

.modal-backdrop.show {
    z-index: 2 !important;
    position: fixed !important;
}

.modal-backdrop.fade {
    z-index: 2 !important;
    position: fixed !important;
}

/* 确保模态框在backdrop之上 - 使用fixed定位独立出来 */
#loginModal {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
}

#loginModal.show {
    z-index: 99999 !important;
    position: fixed !important;
}

#loginModal.fade {
    z-index: 99999 !important;
    position: fixed !important;
}

#loginModal .modal-dialog {
    max-width: 420px;
    margin: 1.75rem auto;
    z-index: 99999 !important;
    position: relative;
}

/* 登录框主体 - 紧凑设计 */
.login-modal-new {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: visible;
    background: white;
    position: relative;
    z-index: 99999 !important;
}

/* 无伪元素，无遮挡 */
.login-modal-new * {
    pointer-events: auto;
}

.login-modal-new *::before,
.login-modal-new *::after {
    pointer-events: none !important;
    content: none !important;
}

/* 紧凑头部设计 */
.login-header-compact {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-icon-compact {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title-compact {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

/* 关闭按钮 - 紧凑样式 */
.login-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-close-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* 表单主体 - 紧凑设计 */
.login-modal-body {
    padding: 0 1.5rem 1.5rem;
    background: white;
    position: relative;
    z-index: 99999 !important;
}

.login-form {
    margin-bottom: 1rem;
    position: relative;
    z-index: 99999 !important;
}

/* 表单组 */
.login-form-group {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 99999 !important;
}

.login-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.login-label i {
    margin-right: 0.4rem;
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* 输入框 - 紧凑尺寸 */
.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
    position: relative;
    z-index: 99999 !important;
}

.login-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    z-index: 99999 !important;
}

.login-input::placeholder {
    color: #999;
}

/* 验证码区域 - 始终横向排列 */
.login-code-box {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 99999 !important;
    align-items: stretch;
}

.login-code-input {
    flex: 1;
    min-width: 0;
}

.login-send-code-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
    position: relative;
    z-index: 99999 !important;
    flex-shrink: 0;
}

.login-send-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-send-code-btn:active {
    transform: translateY(0);
}

.login-send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 提交按钮 - 紧凑设计 */
.login-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
    position: relative;
    z-index: 99999 !important;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn i {
    margin-right: 0.4rem;
}

/* 提示信息 - 紧凑设计 */
.login-tip {
    text-align: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-radius: 8px;
    color: #f57c00;
    font-weight: 600;
    font-size: 0.85rem;
}

.login-tip i {
    margin-right: 0.4rem;
    color: #ff9800;
    font-size: 0.9rem;
}

/* 响应式 - 手机端 */
@media (max-width: 576px) {
    #loginModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .login-header-compact {
        padding: 1.25rem 1rem 0.875rem;
    }
    
    .login-icon-compact {
        font-size: 2rem;
    }
    
    .login-title-compact {
        font-size: 1.15rem;
    }
    
    .login-modal-body {
        padding: 0 1.25rem 1.25rem;
    }
    
    .login-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 验证码区域 - 保持横向，缩小按钮 */
    .login-code-box {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .login-send-code-btn {
        font-size: 14px;
        padding: 0.75rem 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 70px;
    }
}

/* 确保一切都可点击 - 最高优先级 */
.login-input,
.login-send-code-btn,
.login-submit-btn,
.login-close-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.login-input {
    cursor: text !important;
}

/* 最终修复 - 确保所有登录框元素都在最顶层 */
#loginModal * {
    position: relative !important;
}

#loginModal input,
#loginModal button,
#loginModal label,
#loginModal .form-control,
#loginModal .btn {
    z-index: 99999 !important;
}

/* 额外保障 - 防止任何元素遮挡 */
.modal {
    z-index: 99999 !important;
}

.modal.show {
    z-index: 99999 !important;
}

.modal * {
    position: relative !important;
}

/* 确保页面内容在modal-backdrop之下 */
body > *:not(.modal):not(.modal-backdrop) {
    position: relative;
    z-index: auto;
}

.main-wrapper > *:not(#loginModal) {
    position: relative;
    z-index: 1;
}

/* 确保所有卡片都在遮罩之下 */
.card,
.search-card,
.results-container,
.enterprise-header,
.detail-nav-card {
    z-index: 1 !important;
}
