/* 本地字体声明 */
@font-face {
    font-family: 'Source Han Serif SC';
    src: url('fonts/SourceHanSerifSC-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Han Serif SC';
    src: url('fonts/SourceHanSerifSC-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Han Serif SC';
    src: url('fonts/SourceHanSerifSC-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 响应式图片 - 高清质量 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    width: 100%;
    object-fit: cover;
}

/* 响应式文字大小 */
h1, h2, h3, h4, h5, h6 {
    font-size: clamp(1.2rem, 4vw, 3rem);
    line-height: 1.2;
}

p, span, div, a {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

/* 响应式容器 */
.container, .content, .section {
    width: 100%;
    max-width: 100vw;
    padding: clamp(1rem, 5vw, 3rem);
    box-sizing: border-box;
}

/* 响应式背景图片 - 高清质量 */
[style*="background-image"], 
[style*="background: url"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 响应式背景容器 - 高清质量 */
.hero-image,
.contact-image,
.service-image,
.about-image,
.afloat-image,
.energy-hero-image,
.case-study-image,
.energy-devices-image,
.certificate-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 基于视口单位的响应式背景 */
@media (max-width: 1024px) {
    .hero-image,
    .contact-image,
    .about-image,
    .afloat-image {
        background-size: 110% !important;
    }
}

@media (max-width: 768px) {
    .hero-image,
    .contact-image,
    .about-image,
    .afloat-image {
        background-size: 120% !important;
    }
}

@media (max-width: 480px) {
    .hero-image,
    .contact-image,
    .about-image,
    .afloat-image {
        background-size: 130% !important;
    }
}

/* 基于字体大小的响应式背景调整 */
@media (min-resolution: 2dppx) {
    .hero-image,
    .contact-image,
    .about-image,
    .afloat-image {
        background-size: 105% !important;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {
    .hero-image,
    .contact-image,
    .about-image,
    .afloat-image {
        background-size: 95% !important;
    }
}

/* 超宽屏优化 */
@media (min-width: 2560px) {
    body {
        font-size: clamp(16px, 1.5vw, 20px);
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: clamp(1.5rem, 3vw, 4rem);
    }
    
    .hero-image,
    .contact-image,
    .about-image,
    .afloat-image {
        background-size: 90% !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
    body {
        font-size: 12px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 1rem;
    }
    
    .container, .content, .section {
        padding: 0.5rem;
    }
}

body {
    font-family: 'Source Han Serif SC', serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: clamp(14px, 2.5vw, 18px);
}

/* Navigation Styles */
.navbar {
    background-color: #000000;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 112px;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.nav-logo a {
    text-decoration: none;
    display: inline-block;
}

.nav-logo-image {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.nav-logo a:hover .nav-logo-image {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4a9eff;
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 112px;
}

.hero-content {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    position: relative;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.ship-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1) scale(1.5);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 62%;
    transform: translateY(-50%) translateX(-2em);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    max-width: 600px;
}

.hero-title {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* About Content Section */
.about-content {
    padding: 6rem 0;
    background-color: #2a2a2a;
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #4a9eff;
}

.about-content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #4a9eff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    max-width: 100%;
}

.about-text {
    text-align: left;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: 'Source Han Serif SC', serif;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Our Values Section */
.our-values-section {
    padding: 6rem 0;
    background-color: #1a1a1a;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.value-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.value-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.value-card:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}

.value-card:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1;
}

.value-card:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.value-card:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 2;
}

.value-icon {
    display: inline-block;
    font-size: 2rem;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Source Han Serif SC', serif;
}

.value-card p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}
}

/* Our Philosophy Section */
.philosophy-section {
    padding: 0;
    background-color: #000000;
    position: relative;
}

.philosophy-content {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

.philosophy-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ship-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.2);
}

.philosophy-text {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 32%;
    transform: translateY(-50%);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    z-index: 2;
}

.philosophy-text h2 {
    width: 100%;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-family: 'Source Han Serif SC', serif;
    text-align: right;
}

.philosophy-text p {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
    max-width: 100%;
    text-align: right;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: #2a2a2a;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #4a9eff;
}

.contact-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #4a9eff;
}

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

.contact-title {
    font-family: 'Source Han Serif SC', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contact-divider {
    width: 60px;
    height: 2px;
    background: #ffffff;
    margin: 0 auto 3rem auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.contact-left {
    position: relative;
}

.contact-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.contact-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    max-width: 100%;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}


.contact-logo {
    margin-top: 4rem;
}

.logo-image {
    max-width: 280px;
    max-height: 150px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
    margin: 0 auto;
}

.contact-right {
    padding: 2rem 2rem 2rem 6rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-value {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.4;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}


.contact-footer {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%) translateX(-2em);
        padding: 2rem 1rem;
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-section {
        margin-top: 120px;
    }
    
    .hero-text {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-left: 4rem;
    }
    
    .about-image {
        height: 400px;
    }
    
    .values-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .value-card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .value-card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .value-card:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .value-card:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .value-card:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .values-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 1fr);
        gap: 1rem;
    }
    
    .value-card:nth-child(4) {
        grid-column: 1;
        grid-row: 4;
    }
    
    .value-card:nth-child(5) {
        grid-column: 1;
        grid-row: 5;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .value-card h3 {
        font-size: 1.5rem;
    }
    
    .value-card p {
        font-size: 0.9rem;
    }
    
    .philosophy-content {
        height: 60vh;
        min-height: 400px;
    }
    
    .philosophy-text {
        width: 100%;
        padding: 2rem 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        align-items: center;
    }
    
    .philosophy-text h2 {
        font-size: 2rem;
    }
    
    .philosophy-text p {
        font-size: 1.1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-image img {
        height: 350px;
    }
    
    .contact-overlay {
        padding: 1.5rem;
    }
    
    .contact-services p {
        font-size: 1rem;
    }
    
    .logo-image {
        max-width: 210px;
        max-height: 84px;
    }
    
    .contact-right {
        padding: 1rem;
    }
    
    .contact-item {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border: 2px solid #ffffff;
        border-radius: 50%;
    }
    
    .contact-label {
        font-size: 0.9rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .contact-footer {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-image img {
        height: 300px;
    }
    
    .contact-overlay {
        padding: 1rem;
    }
    
    .contact-services p {
        font-size: 0.9rem;
    }
    
    .logo-image {
        max-width: 168px;
        max-height: 72px;
    }
    
    .contact-right {
        padding: 1rem;
    }
    
    .contact-item {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border: 2px solid #ffffff;
        border-radius: 50%;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .contact-footer {
        font-size: 0.6rem;
    }
}
