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

body {
    font-family: Mulish, Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #1D1D1F;
    background: #fff;
    min-width: 375px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container - 匹配原始网页宽度 */
.w {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100rem;
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
}

@media (max-width: 1439.98px) {
    .w { max-width: 76.875rem; }
}

@media (max-width: 1279.98px) {
    .w { max-width: 64rem; }
}

@media (max-width: 1023.98px) {
    .w { max-width: 48rem; }
}

@media (max-width: 767.98px) {
    .w { max-width: 40rem; }
}


/* Header */
.c-header {
    background: #fff;
    box-shadow: 0 2px 10px 1px rgba(29, 29, 31, 0.15);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 20px 0;
}

.logo img {
    height: 100%;
    width: auto;
}

/* Main Content */
.content-wrapper {
    margin: 0 0;
}

@media (max-width: 1279.98px) {
    .content-wrapper { margin: 60px 0; }
}

@media (max-width: 767.98px) {
    .content-wrapper { margin: 40px 0; }
}

/* Prose */
.prose {
    max-width: none;
    color: #6b6c6d;
    font-size: 1rem;
    line-height: 1.75;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose h2 {
    color: #111827;
    font-weight: 700;
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.333;
}

/* Images */
.wp-block-image {
    margin: 0;
}

.wp-block-image img {
    display: block;
    width: 100%;
}

figure {
    margin: 0;
}

.aligncenter {
    text-align: center;
}

.aligncenter img {
    margin: 0 auto;
}

.alignright {
    text-align: right;
}

.alignright img {
    margin-left: auto;
}


/* Page One - Energy Density */
.page-one {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(236, 238, 240, 1) 0%, rgba(210, 216, 220, 1) 100%);
    justify-content: flex-end;
    min-height: 320px;
    padding: 40px 0;
}

.page-one-text {
    width: 20%;
    padding: 20px 40px;
}

.page-one-text p {
    margin: 1.2em 0;
    line-height: 1.6;
}

.page-one-text p:first-child span {
    font-weight: bold;
    font-size: 32px;
}

.page-one-text p:last-child span {
    font-weight: bold;
}

.page-one-img {
    width: 55%;
}

.page-one-img img {
    margin: 0;
}

@media screen and (max-width: 950px) {
    .page-one {
        flex-wrap: wrap;
    }
    .page-one-text,
    .page-one-img {
        width: 100%;
        text-align: center;
    }
    .page-one-img img {
        margin: 0 auto;
    }
}

/* Spacers */
.spacer-30 { height: 30px; background: #fff; }
.spacer-5 { height: 5px; background: #fff; }

/* WordPress Columns Layout */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.wp-block-columns.is-layout-flex {
    gap: 2em;
}

.wp-block-column {
    flex-grow: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Two Column Layout - 左右独立背景框 */
.wp-block-columns.two-col {
    display: flex;
    gap: 20px;
    padding: 0;
    background: transparent;
}

.wp-block-columns.two-col > .wp-block-column {
    flex: 1;
    padding: 40px;
    background: #E6ECEF;
}

.wp-block-columns.two-col > .wp-block-column:first-child {
    border-right: 0;
}

.wp-block-columns.two-col > .wp-block-column:last-child {
    border-left: 0;
}

/* Four Column Layout - All-Rounder icons */
.wp-block-columns.four-col {
    display: flex;
    justify-content: space-around;
    gap: 0.5em;
}

.wp-block-columns.four-col > .wp-block-column {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.wp-block-columns.four-col .wp-block-image figure {
    margin-bottom: 0;
}

.wp-block-columns.four-col .wp-block-image {
    display: flex;
    justify-content: center;
}

.wp-block-columns.four-col img {
    width: 100px;
    height: 100px;
    max-width: 100px;
    min-width: 60px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 auto;
}

.wp-block-columns.four-col p {
    margin: 10px 0 0;
    text-align: center;
}

/* 响应式 - 小屏幕图标调整 */
@media screen and (max-width: 600px) {
    .wp-block-columns.four-col {
        flex-wrap: wrap;
    }
    .wp-block-columns.four-col > .wp-block-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .wp-block-columns.four-col img {
        width: 80px;
        height: 80px;
        max-width: 80px;
    }
}

/* Text Alignment */
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }


/* Page Three - Aerospace Aluminum */
.page-three {
    /* 白色分隔线已在 two-col 中处理 */
}

.page-three h2 {
    margin-top: 2em;
}

.page-three-text {
    text-align: center;
}

.page-three-text p {
    margin: 0.5em 0;
}

.page-three-text p:first-child span {
    font-weight: bold;
    font-size: 28px;
}

@media screen and (max-width: 950px) {
    .wp-block-columns.two-col {
        flex-direction: column;
        gap: 20px;
    }
    .wp-block-columns.two-col > .wp-block-column:first-child {
        border-bottom: 0;
    }
    .wp-block-columns.two-col > .wp-block-column:last-child {
        border-top: 0;
    }
}

/* Isolation Protection Section */
.isolation-section {
    background: transparent;
    padding: 0;
}

.isolation-section > .wp-block-columns.two-col {
    gap: 20px;
    padding: 0;
    background: transparent;
}

.isolation-section > .wp-block-columns.two-col > .wp-block-column {
    background: #EDEEEF;
    padding: 40px;
}

.isolation-section > .wp-block-columns.two-col > .wp-block-column:first-child {
    border-right: 0;
}

.isolation-section > .wp-block-columns.two-col > .wp-block-column:last-child {
    border-left: 0;
}

/* Page Four - IP66 */
.page-four {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    margin-top: 20px;
}

.page-four h2.ip66 {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-align: left;
    flex: 0 0 auto;
}

.page-four .ip66-right {
    flex: 0 0 auto;
}

/* Icon rows for IP66 section */
.icon-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

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

.icon-row .icon-col {
    flex: 0 0 auto;
}

.icon-row .icon-col img {
    width: 45px;
    height: 45px;
}

.icon-row .text-col {
    flex: 1;
}

.icon-row p {
    margin: 0;
    line-height: 1.5;
}

/* Page Five - Smarter AI RESS */
.page-five {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-five h2 {
    margin-top: 0;
    margin-bottom: 1em;
    width: 100%;
}

.page-five .icon-rows-wrapper {
    display: inline-block;
}

.page-five .icon-row {
    margin-bottom: 20px;
}

.page-five .icon-row:last-child {
    margin-bottom: 0;
}

.page-five .icon-col {
    flex: 0 0 auto;
}

.page-five .icon-col img {
    width: 45px;
    height: 45px;
}

.page-five .icon-col figure {
    text-align: center;
}

@media screen and (max-width: 950px) {
    .page-four {
        flex-direction: column;
        text-align: center;
    }
    .page-four h2.ip66 {
        text-align: center;
        margin-bottom: 20px;
    }
    .page-four p,
    .page-five p {
        text-align: center;
    }
    .page-five {
        padding-left: 0;
    }
    .page-five figure {
        margin: 0 auto !important;
    }
    .isolation-section > .wp-block-columns.two-col {
        flex-direction: column;
        gap: 20px;
    }
    .icon-row {
        flex-direction: column;
        text-align: center;
    }
    .icon-row .icon-col {
        margin-bottom: 10px;
    }
}


/* Page Six - Operating Power */
.page-six {
    background-color: #E0E4E6;
    padding: 20px;
}

.page-six-title {
    margin-top: 24px;
    text-align: center;
}

.page-six-text {
    text-align: center;
}

.page-six-text p {
    margin: 0.5em 0;
}

.page-six-text p:first-child span {
    font-weight: bold;
    font-size: 28px;
    color: #111827;
}

/* Table */
table.has-fixed-layout {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.875em;
    line-height: 1.714;
}

table.has-fixed-layout td {
    padding: 0.571em;
    border: 1px solid #d1d5db;
    vertical-align: baseline;
}

table.has-fixed-layout tr:first-child td {
    font-weight: 600;
    color: #111827;
    vertical-align: bottom;
}

table.has-fixed-layout tr:nth-child(odd) td {
    background-color: #FBFBFB;
}

table.has-fixed-layout tr:nth-child(even) td {
    background-color: #fff;
}

@media (max-width: 767.98px) {
    table.has-fixed-layout {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
}

/* Divider */
.divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Contact Section */
.contact-section {
    margin-top: 50px;
}

.title-lg h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1D1D1F;
    margin-bottom: 20px;
}

@media (max-width: 1279.98px) {
    .title-lg h2 { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    .title-lg h2 { font-size: 1.25rem; }
}

.contact-form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0005ff;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin-top: 32px;
}

@media (max-width: 1279.98px) {
    .form-submit { margin-top: 24px; }
}

.c-btn {
    display: inline-block;
    min-width: 12.5rem;
    cursor: pointer;
    border: 1px solid #0005ff;
    background-color: #0005ff;
    padding: 0.875rem 2rem;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.c-btn:hover {
    border-color: #292931;
    background-color: #292931;
}

.c-btn:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

@media (max-width: 1279.98px) {
    .c-btn {
        min-width: 0;
        padding: 0.625rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
}


/* Footer */
.site-footer {
    margin-top: 60px;
}

.footer-content {
    background: #f3f7fb;
    padding: 60px 0;
}

@media (max-width: 1279.98px) {
    .footer-content { padding: 40px 0; }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: #292931;
    margin-bottom: 16px;
}

@media (max-width: 1279.98px) {
    .footer-col h3 { font-size: 1.125rem; }
}

@media (max-width: 767.98px) {
    .footer-col h3 { font-size: 1rem; }
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a:hover {
    color: #0005ff;
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    background: #e5e5e5;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
}

@media (max-width: 1279.98px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Responsive adjustments */
@media screen and (max-width: 950px) {
    .wp-block-columns.two-col > .wp-block-column {
        flex: 0 0 100%;
    }
}
