:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-orange: #ff9f1c;
    --accent-blue: #2cb67d;
    /* Optional secondary accent */
    --metallic-gradient: linear-gradient(145deg, #2b2b2b, #1a1a1a);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

nav {
    max-width: 1000px;
    /* Reduced further to compact the layout */
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: var(--accent-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-orange), #e68a00);
    color: #000 !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 0;
    font-weight: 700 !important;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
}

.cta-button::after {
    display: none;
}

/* Desktop 默认隐藏移动端菜单按钮 */
.nav-toggle {
    display: none;
}

/* --- News Page Styles --- */

.news-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('assets/workshop.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 20px 80px;
    /* Increased top padding for fixed header */
    text-align: center;
    position: relative;
    border-bottom: 1px solid #333;
}

.news-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.news-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.news-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.news-list {
    display: grid;
    gap: 40px;
}

.news-item {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: var(--accent-orange);
}

.news-summary {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more-btn {
    align-self: flex-start;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--accent-orange);
    gap: 12px;
}

@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
        height: 300px;
    }

    .news-image-container {
        width: 400px;
        height: 100%;
        flex-shrink: 0;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-orange);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Equipment Section */
.equipment {
    background-color: #141414;
}

.equipment-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #333;
}

.equipment-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.equipment-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
}

.equipment-list {
    list-style: none;
    margin-top: 1.5rem;
}

.equipment-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-list li::before {
    content: '•';
    color: var(--accent-orange);
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.9)), url('assets/welding.png');
    background-size: cover;
    background-position: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.95);
    padding: 3rem;
    border: 1px solid #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: #0f0f0f;
    border: 1px solid #333;
    color: var(--text-primary);
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-orange);
    color: #000;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #ffb042;
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-status {
    min-height: 1.25rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-status.success {
    color: #39d98a;
}

.form-status.error {
    color: #ff6b6b;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 3rem 2rem;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

.icp-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #999;
    text-decoration: none;
}

.icp-link:hover,
.icp-link:focus-visible {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Stats Section */
.stats-section {
    background-color: var(--accent-orange);
    padding: 3rem 2rem;
    margin-top: 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.stat-label {
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* Process Section */
.process-steps {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    background: var(--accent-orange);
    color: #000;
    transform: scale(1.1);
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0 1rem;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #333;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid #333;
    position: relative;
}

.quote {
    font-family: var(--font-display);
    font-size: 4rem;
    color: #333;
    position: absolute;
    top: 0;
    right: 1rem;
    line-height: 1;
}

.testimonial-card p {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

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

.author-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
}

.author-info p {
    color: var(--accent-orange);
    font-size: 0.85rem;
    margin-bottom: 0;
    font-style: normal;
}

/* Footer Enhancements */
.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-orange);
    color: #000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    nav {
        padding: 0.75rem 1.25rem;
    }

    .nav-toggle {
        position: absolute;
        right: 1.25rem;
        top: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        cursor: pointer;
        z-index: 1002;
        transition: all 0.3s ease;
        -webkit-appearance: none;
        appearance: none;
    }

    .nav-toggle:hover {
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
        box-shadow: none;
        transform-origin: center;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 80px;
        /* Aligned with nav height */
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid #333;
        padding: 0;
        width: 100%;
        max-width: none;
        display: none;
        z-index: 1001;
    }

    .nav-links.open {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a {
        display: block;
        padding: 1.5rem;
        width: 100%;
        font-size: 1.2rem;
        /* Larger text for easier tapping */
    }

    .nav-links a::after {
        display: none;
        /* Remove underline on mobile */
    }

    .cta-button {
        width: 100%;
        text-align: center;
        border-radius: 0;
    }

    /* News Page Mobile */
    .news-header {
        padding: 100px 20px 40px;
    }

    .news-header h1 {
        font-size: 2rem;
    }

    .news-image-container {
        height: 200px;
    }

    /* Article Page Mobile */
    .article-container {
        margin: 100px auto 40px;
        padding: 0 1.25rem;
    }

    .article-title {
        font-size: 1.6rem;
    }

    /* General Sections */
    .hero {
        padding: 7rem 1.25rem 4rem;
        min-height: unset;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        gap: 1.25rem;
    }

    .equipment-showcase {
        grid-template-columns: 1fr;
    }

    .equipment-image {
        height: 240px;
    }

    .equipment-info {
        padding: 2rem 1.5rem;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .step-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    footer {
        padding: 2.5rem 1.25rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-container {
        padding: 2.25rem 1.5rem;
    }
}

/* Inter Regular 400 */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Regular.woff2') format('woff2'),
        url('assets/fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Inter SemiBold 600 */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2'),
        url('assets/fonts/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Oswald Medium 500 */
@font-face {
    font-family: 'Oswald';
    src: url('assets/fonts/Oswald-Medium.woff2') format('woff2'),
        url('assets/fonts/Oswald-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Oswald Bold 700 */
@font-face {
    font-family: 'Oswald';
    src: url('assets/fonts/Oswald-Bold.woff2') format('woff2'),
        url('assets/fonts/Oswald-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}