/* ========================================
   Trantor Chartering - 科技感样式
   ======================================== */

:root {
    --primary-color: #0a1628;
    --secondary-color: #1a365d;
    --accent-color: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow-x: hidden;
    text-align: justify;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.navbar-nav {
    text-align: center;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-light) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

#langToggle {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transition: all 0.3s ease;
}

#langToggle:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    /* 使用科技感渐变背景代替图片 */
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d2847 100%);
    overflow: hidden;
}

/* 科技感网格背景 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* 光晕效果 */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(26, 54, 93, 0.75) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle-en {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-stats {
    animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* ========================================
   Section Styles
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ========================================
   Tracking Section
   ======================================== */
.tracking-section {
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.tracking-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.tracking-card {
    position: relative;
    z-index: 2;
}

.tracking-card .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.tracking-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    color: var(--text-light);
}

.tracking-card .form-control::placeholder {
    color: var(--text-muted);
}

.tracking-card .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

.tracking-card .btn-primary {
    background: var(--accent-gradient);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tracking-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.tracking-info {
    position: relative;
    z-index: 2;
    padding-left: 2rem;
}

.digital-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.panel-header i {
    font-size: 1.25rem;
    animation: spin 3s linear infinite;
}

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

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
}

.data-row:last-child {
    border-bottom: none;
}

.data-value {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.125rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-muted);
}

.feature-item i {
    color: var(--accent-color);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.about-image {
    text-align: center;
}

.about-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.about-content {
    padding-left: 2rem;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.feature-row i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--primary-color);
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.contact-info-item {
    text-align: center;
    padding: 1.5rem;
}

.contact-info-item.contact-address {
    text-align: left;
}

.contact-info-item.contact-address p {
    text-align: left;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-info-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--text-light);
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: rgba(10, 22, 40, 0.95);
    border-top: 1px solid var(--card-border);
}

.footer a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

/* ========================================
   Modal Styles
   ======================================== */
.modal-content {
    background: var(--secondary-color);
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
}

.modal-title {
    color: var(--text-light);
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    color: var(--text-muted);
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--card-border);
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-content {
    flex: 1;
}

.timeline-content h6 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-gradient);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========================================
   Text Alignment Utilities
   ======================================== */
.text-justify {
    text-align: justify !important;
}

.text-center {
    text-align: center !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tracking-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats .row {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .navbar-collapse {
        background: rgba(10, 22, 40, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    #langToggle {
        margin-top: 1rem;
    }
}

/* ========================================
   Loading Animation
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}