/* ==========================================
   滴灌通投资决策平台 - Blue Owl 专业风格
   深蓝色 + 白色背景
   ========================================== */

:root {
    /* Blue Owl 配色方案 */
    --color-primary: #003B5C;        /* 深蓝色 - 主色 */
    --color-primary-light: #005A8C;  /* 浅蓝色 - 悬停 */
    --color-accent: #00A3E0;         /* 亮蓝色 - 强调 */
    --color-bg: #FFFFFF;             /* 白色背景 */
    --color-bg-light: #F8F9FA;       /* 浅灰背景 */
    --color-text-primary: #1A1A1A;   /* 深灰文字 */
    --color-text-secondary: #6B7280; /* 中灰文字 */
    --color-border: #E5E7EB;         /* 边框颜色 */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Shadows */
    --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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Header & Navigation
   ========================================== */

header {
    background: var(--color-primary);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-bg);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-bg);
    border-bottom-color: var(--color-bg);
}

/* ==========================================
   Main Content Layout
   ========================================== */

main {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    background: var(--color-bg-light);
}

.section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-description {
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 800px;
}

/* ==========================================
   Card System
   ========================================== */

.card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s, transform 0.3s;
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

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

/* ==========================================
   Statistics Display (Big Numbers)
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border-top: 4px solid var(--color-primary);
}

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

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ==========================================
   Form Elements
   ========================================== */

.form-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="month"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 59, 92, 0.1);
}

input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select {
    cursor: pointer;
}

/* ==========================================
   Buttons
   ========================================== */

button,
.btn {
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    display: inline-block;
    text-decoration: none;
}

button:hover,
.btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active,
.btn:active {
    transform: translateY(0);
}

button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==========================================
   Results Display
   ========================================== */

.result-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-accent);
}

.result-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

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

.result-item {
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.result-item-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.result-item-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.result-item-value.highlight {
    color: var(--color-accent);
}

/* ==========================================
   Score Display
   ========================================== */

.score-display {
    text-align: center;
    padding: 3rem;
    background: var(--color-bg-light);
    border-radius: 12px;
    margin: 2rem 0;
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 12px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
    position: relative;
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
}

.score-circle::after {
    content: '/200';
    position: absolute;
    bottom: 30%;
    right: 15%;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.score-rating {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.score-rating.excellent { color: var(--color-success); }
.score-rating.good { color: var(--color-accent); }
.score-rating.fair { color: var(--color-warning); }
.score-rating.poor { color: var(--color-danger); }

/* ==========================================
   Contract Preview
   ========================================== */

.contract-preview {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.contract-preview h3 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.contract-preview strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==========================================
   Report Generator
   ========================================== */

.report-section {
    margin-top: 3rem;
}

.report-output {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.report-header {
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 3px solid var(--color-primary);
    margin-bottom: 3rem;
}

.report-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.report-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
}

.report-body {
    line-height: 1.8;
}

.report-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.report-content {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.report-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.report-table th,
.report-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.report-table th {
    background: var(--color-primary);
    color: var(--color-bg);
    font-weight: 600;
    font-size: 0.95rem;
}

.report-table td {
    color: var(--color-text-secondary);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.report-table tr:last-child td {
    border-bottom: none;
}

.text-gold {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0;
    margin-top: 5rem;
    text-align: center;
}

footer p {
    margin: 0;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    .card-grid,
    .stats-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button,
    .btn {
        width: 100%;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .score-circle {
        width: 160px;
        height: 160px;
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-text-secondary); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================
   Animations
   ========================================== */

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

.card,
.stat-card,
.result-card {
    animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   Growth Drivers
   ========================================== */

.growth-drivers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.driver-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.driver-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.driver-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.driver-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stat-change {
    margin-top: 0.5rem;
    color: var(--color-success);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   Upload Section
   ========================================== */

.upload-section {
    margin: 2rem 0;
}

.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--color-bg-light);
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.upload-area.dragover {
    border-color: var(--color-accent);
    background: rgba(0, 163, 224, 0.05);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-text p {
    margin: 0.5rem 0;
}

.upload-area-small {
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area-small:hover {
    border-color: var(--color-primary);
}

.upload-icon-small {
    font-size: 2rem;
}

.upload-text-small {
    flex: 1;
    text-align: left;
}

.upload-text-small p {
    margin: 0.25rem 0;
}

.file-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--color-bg-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
}

.file-name {
    font-weight: 500;
    color: var(--color-text-primary);
}

.file-size {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.file-remove {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.file-remove:hover {
    transform: scale(1.2);
}

/* ==========================================
   Form Rows
   ========================================== */

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

/* ==========================================
   Score Display Fix
   ========================================== */

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 12px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.score-max {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Remove the old ::after pseudo-element */
.score-circle::after {
    content: none;
}

/* ==========================================
   Contract Terms
   ========================================== */

.contract-terms {
    margin-top: 2rem;
    padding: 3rem;
    background: var(--color-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.terms-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.term-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    transition: all 0.3s;
}

.term-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.term-content {
    flex: 1;
}

.term-number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.term-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.term-content {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.term-content strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================
   Back to Top Button
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-4px);
}

.back-to-top span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* ==========================================
   Responsive Design Updates
   ========================================== */

@media (max-width: 768px) {
    .growth-drivers {
        grid-template-columns: 1fr;
    }
    
    .driver-item {
        flex-direction: column;
        text-align: center;
    }
    
    .driver-number {
        margin: 0 auto 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .score-max {
        font-size: 1.25rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================
   Calculation Logic Display
   ========================================== */

.calculation-logic {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-bg-light);
    border-radius: 10px;
    border: 2px solid var(--color-border);
}

.logic-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.logic-content p {
    margin: 0.75rem 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.logic-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* 计算逻辑区域动画 */
.calculation-logic {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 4px solid #00A3E0;
    transition: all 0.3s ease;
}

.calculation-logic.hidden {
    display: none;
}

.logic-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003B5C;
    margin-bottom: 1rem;
}

.logic-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.logic-content .mt-2 {
    margin-top: 1rem;
}

/* Info icon hover effect */
.fa-info-circle:hover {
    color: #003B5C;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* 协议设计 - 嵌入式输入框样式 */
.term-input {
    background: #F8F9FA;
    border-left: 4px solid #00A3E0 !important;
}

.term-input .term-number {
    background: #00A3E0 !important;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.term-input .term-content {
    width: 100%;
}

.term-input .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.term-input label {
    font-size: 0.9rem;
}

.term-input input {
    font-size: 0.95rem;
    padding: 0.75rem;
}

.term-input small {
    font-size: 0.75rem !important;
    line-height: 1.4;
}

/* Finalize按钮悬停效果 */
button:has(.fa-copy):hover {
    background: #00A3E0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 59, 92, 0.3);
}

/* 内联输入框样式 */
.inline-input {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #E5E7EB !important;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.inline-input:focus {
    outline: none;
    border-color: #00A3E0 !important;
    box-shadow: 0 0 0 2px rgba(0, 163, 224, 0.1);
}

.inline-input::placeholder {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* 确保term-item中的段落有足够的行高 */
.term-item p {
    line-height: 2.2;
}

/* ==========================================
   协议预览区域样式
   ========================================== */

.contract-preview {
    margin-top: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 3px;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.contract-preview.hidden {
    display: none;
}

.preview-header {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #003B5C;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #E5E7EB;
}

.preview-header i {
    font-size: 1.1rem;
    color: #667eea;
}

.preview-content {
    background: white;
    padding: 2rem;
    border-radius: 0 0 10px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    line-height: 2;
    color: #1F2937;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 美化列表项 */
.preview-content {
    scrollbar-width: thin;
    scrollbar-color: #667eea #F3F4F6;
}

.preview-content::-webkit-scrollbar {
    width: 10px;
}

.preview-content::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 5px;
}

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

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

/* 按钮悬停效果 */
button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 224, 0.3);
}

button:disabled {
    cursor: not-allowed;
}

button:active:not(:disabled) {
    transform: translateY(0);
}

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