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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 主要内容 */
.main {
    padding: 2rem 0;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb span {
    display: flex;
    align-items: center;
}

.breadcrumb span:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 查询区域 */
.query-section {
    margin-bottom: 3rem;
}

.query-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.query-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.query-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.query-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 查询结果 */
.result-section {
    margin-bottom: 3rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.result-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contract-group {
    margin-bottom: 2rem;
}

.group-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

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

.contract-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contract-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contract-item.signed {
    border-left-color: #28a745;
}

.contract-item.unsigned {
    border-left-color: #ffc107;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.contract-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.contract-status {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-signed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-unsigned {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.contract-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.info-value {
    font-weight: 500;
    color: #333;
}

.contract-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 功能特色 */
.features-section {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 合作伙伴 */
.partners-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    margin-top: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .query-card {
        padding: 2rem 1.5rem;
    }
    
    .query-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .contract-info {
        grid-template-columns: 1fr;
    }
    
    .contract-actions {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .query-card {
        padding: 1.5rem 1rem;
    }
    
    .result-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.query-card,
.result-card,
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 无结果状态 */
.no-result {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.no-result i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
} 

/* 合同行样式 */
.contract-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.contract-row.signed {
    border-left: 4px solid #28a745;
}

.contract-row.unsigned {
    border-left: 4px solid #ffc107;
}

.contract-id {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.contract-time {
    color: #666;
    font-size: 0.9rem;
}

.contract-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contract-row.signed .contract-status {
    background: #d4edda;
    color: #155724;
}

.contract-row.unsigned .contract-status {
    background: #fff3cd;
    color: #856404;
}

/* 无合同提示 */
.no-contracts {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-contracts i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-contracts p {
    font-size: 1.1rem;
    margin: 0;
} 

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 2% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.contract-info {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-value {
    color: #666;
}

.contract-template-container {
    margin-bottom: 2rem;
}

.contract-content-wrapper {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    font-family: 'SimSun', serif;
    color: #333;
}

.contract-header-section {
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
}

.company-logo {
}

.company-logo img {
    width: 519px;
    height: 100px;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.contract-name {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.contract-body-section {
    margin-bottom: 2rem;
}

.contract-content {
  text-align: justify;
  text-indent: 2em;
  margin-bottom: 1rem;

  /* 以下是关键换行控制属性 👇 */
  word-break: break-word;      /* 支持中英文长单词换行 */
  overflow-wrap: break-word;   /* 防止溢出容器宽度 */
  white-space: normal;         /* 正常换行模式（默认） */
}

.contract-footer-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
    font-family: 'SimSun', serif;
    font-size: 1rem;
    line-height: 1.6;
}

.contract-footer-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.contract-footer-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.signature-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    flex-direction: column;
}

.signature-img {
    max-width: 80px;
    height: auto;
    vertical-align: middle;
}

.company-stamp {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.stamp-img {
    position: absolute;
    top: -60px;
    left: 80%;
    transform: translateX(-50%);
    max-width: 100px;
    height: auto;
    opacity: 0.8;
}

.party-signature {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    
    gap: 0.5rem;
    font-size: 1rem;
}

.party-signature-img {
    max-width: 100px;
    height: auto;
    vertical-align: middle;
}

.sign-time {
    color: #666;
    font-size: 1rem;
    margin-top: 1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .contract-content-wrapper {
        padding: 1rem;
    }
    
    .contract-footer-section {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .contract-footer-right {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-end;
        justify-content: space-evenly;
    }
    
    .party-signature {
        justify-content: flex-start;
        
        flex-direction: column;
    }
    
    .signature-img,
    .party-signature-img {
        max-width: 100px;
    }
    
    .stamp-img {
        max-width: 100px;
    }
    
    .modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-actions .btn {
        width: 100%;
        max-width: 300px;
    }
} 

/* 成功页面样式 */
.success-section {
    margin-bottom: 3rem;
}

.success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-header {
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #52c41a;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
}

.success-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.success-header p {
    color: #666;
    font-size: 1.1rem;
}

.success-info {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.success-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.success-info .info-item:last-child {
    border-bottom: none;
}

.success-info .info-label {
    font-weight: 600;
    color: #333;
}

.success-info .info-value {
    color: #667eea;
    font-weight: 500;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 150px;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .success-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .success-header h1 {
        font-size: 2rem;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .success-info .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
} 