/* graphite_style_codecss_theme_with_bg.css */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(10, 25, 47, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
}

header .logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
}

header .logo img {
    height: 36px;
    width: 36px;
    margin-right: 10px;
    object-fit: contain;
    background: transparent;
    border-radius: 6px;
    filter: none;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 28px;
}

header nav ul li:first-child {
    margin-left: 0;
}

header nav ul li a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.2s;
    padding: 6px 10px;
    border-radius: 4px;
}

header nav ul li a.active,
header nav ul li a:hover {
    color: #64ffda;
    background: rgba(100,255,218,0.08);
}

.btn-primary {
    background-color: #64ffda;
    color: #0a192f;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #52e0c4;
}

/* 主要内容区域 */
.main-content-background {
    position: relative;
    background: url('../images/background.jpg') no-repeat center center/cover;
    min-height: 100vh;
    padding-top: 80px;
}

.main-content-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 页面介绍部分 */
.page-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.page-intro h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-intro .intro-text {
    font-size: 1.1em;
    color: #ccd6f6;
}

/* 联系方式部分 */
.contact-sections {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item .icon {
    font-size: 1.5em;
    margin-right: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 联系方式样式 */
.contact-item p {
    margin: 10px 0;
    color: #ccd6f6;
}

.contact-item a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #52e0c4;
}

.qr-code-image {
    max-width: 200px;
    margin: 20px 0;
    border-radius: 8px;
}

@media (max-width: 768px) {
    header {
        position: static; /* On smaller screens, header might be better as static */
         background-color: #1a1a1a; /* Solid background if static */
    }
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav {
        margin-top: 15px;
        width: 100%;
    }
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    header nav ul li {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    header nav ul li a {
        display: block;
        padding: 8px 0;
    }
    header .btn-primary {
        margin-top: 15px;
        align-self: flex-start;
    }

    .main-content-background {
        padding-top: 0; /* No padding needed if header is static */
        min-height: auto; /* Let content define height */
    }
     .content-wrapper {
        padding: 20px;
    }

    .page-intro h1 {
        font-size: 2em;
    }

    .contact-item {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0; 
    }
    .form-row .form-group {
         margin-bottom: 20px;
    }
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
     form > .form-group:not(.form-row) {
        margin-bottom: 20px;
    }
    form > .form-group:last-of-type {
        margin-bottom: 0; 
    }
    .btn-submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 30px 15px;
    }
    .contact-form-section h1 {
        font-size: 1.8em;
    }
    header .logo {
        font-size: 1.5em;
    }
}

@media (max-width: 1024px) {
    .contact-sections {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-item {
        width: 100%;
    }
}

footer {
    text-align: center; /* 文本居中 */
    padding: 2px 0; /* 上下内边距 */
    margin-top: 40px; /* 与上方内容的间距 */
    border-top: 1px solid #eee; /* 顶部边框线，可选 */
    font-size: 1.1em; /* 字体大小 */
    color: #ffffff; /* 字体颜色 */
}