/* =============================
   Global Base Styles
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #111;
    color: #eee;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* =============================
   Header
============================= */
.header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid #444;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo img {
    height: 50px;
}

.nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav a {
    text-decoration: none;
    color: #ddd;
    font-size: 16px;
    letter-spacing: 1px;
    transition: 0.25s;
}

.nav a:hover {
    color: #fff;
}

/* =============================
   Hero Section
============================= */
.hero {
    width: 100%;
    height: 100vh;
    /* background: url('../images/texture.jpg'); */
    /* 可替换纹理图 */
    background-size: cover;
    background-position: center;
    display: grid;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.hero-image img {
    width: 1000px;
    opacity: 0.9;
    padding-top: 0px;

    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8));
    /* header 高度留白 */
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 10px;
    margin-top: -50px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8));
}

.hero-sub {
    margin-top: -50PX;
    font-size: 19px;
    letter-spacing: 4px;
    color: #ccc;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8));
}

/* =============================
   Works Page Tabs
============================= */
.tabs {
    margin: 50px auto 40px;
    width: 90%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab {
    padding: 10px 20px;
    background: #1d1d1d;
    border: 1px solid #555;
    color: #aaa;
    cursor: pointer;
    transition: 0.25s;
}

.tab.active,
.tab:hover {
    background: hsl(53, 73%, 62%);
    color: #212121;
}

.works-list {
    width: 95%;
    max-width: 900px;
    margin: auto;
    padding-bottom: 30px;
}
.works-item {
    padding: 15px;

}
pw{
    font-size: 17px;
}

pt{
    font-size: 20px;
    font-weight: bold;
}
/* =============================
   Contact Form
============================= */
.contact-container {
    width: 90%;

    margin: 100px auto;
    padding: 30px;
    background: #1a1a1a;
    border: 1px solid #333;
}

.contact-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

input {
    width: 30%;
    padding: 12px;
    margin-right: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    background: #111;
    border: 1px solid #444;
    color: #eee;
}
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #111;
    border: 1px solid #444;
    color: #eee;
}

button {
    width: 100%;
    padding: 12px;
    background: #666;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: #888;
}

/* =============================
   About & Recruit Pages
============================= */
.page-section {
    width: 90%;
    max-width: 900px;
    margin: 100px auto;
    background: #2c2c2c;
    padding: 40px;
    border: 1px solid #333;
}

.page-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.page-section p {
    margin-bottom: 12px;
    font-size: 16px;
    color: #ccc;
}

/* =============================
   Footer
============================= */
footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 14px;
    margin-top: 50px;
}

.hidden {
    display: none;
}

/* 添加到 style.css 文件末尾以确保动态背景正确显示 */

.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    /* 或根据您的设计调整 */
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
}

.hero-image img {
    position: relative;
    z-index: 3;
    /* 确保logo在背景之上 */
    max-width: 100%;
    max-height: 100%;
}

/* 移动设备 (480px - 767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .header {
        padding: 12px 15px;
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .logo img {
        height: 35px;
        margin: 0 auto;
    }
    
    .nav {
        width: 100%;
    }
    
    .nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 15px;
    }
    
    .nav a {
        font-size: 13px;
        padding: 5px 0;
    }
    

    
    .hero-image {
        margin-bottom: 15px; /* 增加图片底部间距 */
    }
    
    .hero-image img {
        width: 100%;
        max-width: 400px; /* 稍微减小图片最大宽度 */
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 22px; /* 稍微减小字体 */
        letter-spacing: 3px;
        margin-top: -80%;  /* 大幅减小顶部边距 */
        

        line-height: 1.4;
        text-align: center;
    }
    
    .hero-sub {
        font-size: 13px;
        letter-spacing: 1px;
        margin-top: -130%;    /* 重置顶部边距 */

        line-height: 1.5;
        text-align: center;
        color: #bbb;
    }
    
    /* 其他样式保持不变 */
    .tabs {

        width: 95%;
        margin: 20px auto; /* 减少顶部边距 */
        gap: 10px;
    }
    
    /* ... 其他样式 ... */
}

/* 小屏幕移动设备 (小于480px) */
@media (max-width: 479px) {

    
    .hero-title {
        font-size: 22px;
        letter-spacing: 2px;
        margin-top: -80%; 

    }
    
    .hero-sub {
        font-size: 12px;
        letter-spacing: 0.5px;
        margin-top: -130%;  

    }
    
    /* 如果内容还是显得太远，可以进一步调整 */
    .hero-image {
        margin-bottom: 10px;
    }
    
    .hero-image img {
        margin-bottom: 5px;
    }
}

/* 横向移动设备 */
@media (max-height: 600px) and (orientation: landscape) {

    

    
    .hero-title {
        margin-top: -100px; 
        margin-bottom: 5px;
        font-size: 18px;
    }
    
    .hero-sub {
        margin-top: -60px; 
        font-size: 12px;
    }
}