/* Genturn Life BP Portal - Global Styles */
:root {
  --primary: #0a2540;
  --primary-light: #1a4a7a;
  --accent: #00d4aa;
  --accent-light: #00f5c4;
  --bg-dark: #0a1628;
  --bg-light: #f8fafc;
  --text-primary: #1a202c;
  --text-secondary: #64748b;
  --text-light: #ffffff;
  --border: #e2e8f0;
  --gradient-start: #0a2540;
  --gradient-end: #1a4a7a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.login-container {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.login-header h1 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.login-header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.login-header .tagline {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

.login-form {
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.login-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3);
}

.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.login-footer p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

/* Protected Pages Layout */
.portal-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.portal-nav {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
}

.nav-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-brand span {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.nav-links a.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-btn {
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  transition: all 0.2s;
  background: rgba(37, 99, 235, 0.14);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.home-btn:hover {
  color: white;
  border-color: rgba(147, 197, 253, 0.44);
  background: rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.nav-user .username {
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(96, 165, 250, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.logout-btn {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.05);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-1px);
}

/* Main Content */
.portal-main {
  flex: 1;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 16px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Section Styles */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.section-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pipeline Cards */
.pipeline-card {
  border-left: 4px solid var(--accent);
}

.pipeline-card .code {
  font-family: 'SF Mono', Monaco, monospace;
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.team-member h3 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.team-member .title {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-member .bio {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Highlights */
.highlight-box {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 245, 196, 0.05) 100%);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
}

.highlight-box li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.highlight-box li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Footer */
.portal-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Watermark - Modern, Visible */
.watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.watermark-text {
  position: absolute;
  font-size: 18px;
  color: rgba(50, 60, 80, 0.18);
  white-space: nowrap;
  transform: rotate(-30deg);
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .portal-main {
    padding: 1.5rem 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-content {
    padding: 1.5rem;
  }
}

/* Card Link */
.card-link {
  text-decoration: none;
  display: block;
}

.card-link:hover {
  transform: translateY(-4px);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary-light));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-item.highlight::before {
  width: 16px;
  height: 16px;
  left: calc(-2rem - 2px);
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Organization Chart */
.org-chart {
  text-align: center;
  padding: 2rem 0;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.org-level.org-top {
  margin-bottom: 3rem;
}

.org-box {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  border-top: 3px solid var(--accent);
}

.org-box.ceo {
  border-top: 4px solid var(--primary);
  padding: 1.5rem 2rem;
}

.org-title {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.org-name {
  display: block;
  font-weight: 600;
  color: var(--primary);
}

/* Team Bio */
.team-bio {
  text-align: left;
  margin-top: 1rem;
}

.team-bio p {
  margin-bottom: 0.5rem;
}

.team-bio ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.team-bio li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.data-table tr:hover {
  background: rgba(0, 212, 170, 0.05);
}

/* Pipeline Table */
.pipeline-table {
  width: 100%;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.pipeline-table td {
  padding: 0.4rem 0;
  vertical-align: top;
}

.pipeline-table td:first-child {
  color: var(--text-secondary);
  width: 80px;
}

/* Pipeline Progress */
.stage-complete {
  color: var(--accent);
  font-weight: bold;
}

.stage-active {
  color: var(--primary);
  font-weight: bold;
}

.stage-future {
  color: var(--text-secondary);
}

/* Stat Cards Large */
.stat-card-large {
  text-align: center;
  padding: 2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-value-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* FAQ Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 1.25rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.faq-answer ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.faq-answer li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Data Room Homepage */
.dataroom-header {
  text-align: center;
  padding: 2rem;
  margin-bottom: 1rem;
}

.dataroom-header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.dataroom-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.dataroom-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dataroom-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.dataroom-card:hover {
  transform: translateX(8px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.15);
}

.dataroom-icon {
  font-size: 2.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.dataroom-info {
  flex: 1;
}

.dataroom-info h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.dataroom-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.dataroom-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  margin-left: 1rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.dataroom-card:hover .dataroom-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Confidential Notice */
.confidential-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notice-content h4 {
  color: #92400e;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.notice-content p {
  color: #a16207;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* Document List */
.document-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.document-item:hover {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateX(4px);
}

.doc-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  display: block;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.doc-name:hover {
  color: var(--accent);
}

.doc-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.doc-download {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.doc-download:hover {
  background: var(--accent-light);
  transform: scale(1.05);
}

/* Print Protection */
@media print {
  body * {
    display: none !important;
  }
  body::after {
    content: '打印功能已禁用 - Genturn Life';
    display: block;
    font-size: 24px;
    text-align: center;
    padding: 50px;
  }
}
