/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* 视频无法播放时的备用背景 */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-background.video-fallback::before {
    opacity: 1;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.logo span {
    font-size: 0.8rem;
    color: #cccccc;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #ffffff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 语言切换按钮 */
.language-switch {
    display: flex;
    gap: 0.3rem;
    margin-left: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 0.3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
    display: inline-block;
    text-align: center;
    min-width: 50px;
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.lang-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.lang-btn:hover::before {
    opacity: 1;
}

.lang-btn.active {
    color: #000000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-btn.active::before {
    opacity: 0;
}

/* 主页区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.2rem;
    color: #999999;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
    font-weight: 400;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

/* 关于区域 */
.about {
    padding: 100px 0;
    background: #111111;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.about-text p {
    font-size: 1.1rem;
    color: #999999;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 作品展示区域 */
.portfolio {
    padding: 100px 0;
    background: #000000;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.2rem;
    color: #999999;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: #cccccc;
}

/* 联系区域 */
.contact {
    padding: 100px 0;
    background: #111111;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-item h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-item p, .contact-item li {
    color: #999999;
    margin-bottom: 0.5rem;
}

.contact-item ul {
    list-style: none;
}

.contact-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333333;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333333;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

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

/* 页脚 */
.footer {
    background: #000000;
    padding: 50px 0;
    border-top: 1px solid #333333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #999999;
    font-size: 0.9rem;
}

.footer-text p {
    color: #999999;
    text-align: right;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .portfolio-item:hover {
        transform: none;
    }
    
    .portfolio-item:active {
        transform: scale(1.02);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
    
    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

/* 字体优化 */
@supports (font-variation-settings: normal) {
    body {
        font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
}

/* 滚动条优化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* 移动端视频优化 */
    .video-background video {
        object-position: center;
        -webkit-object-position: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .language-switch {
        margin-left: 1rem;
        order: 2;
        padding: 0.25rem;
        gap: 0.2rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 45px;
        text-align: center;
        border-radius: 18px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(20px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text h2 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .about-text p {
        font-size: 1.15rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }
    
    .about-stats {
        justify-content: space-around;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .about-image img {
        height: 400px;
        border-radius: 15px;
    }
    
    .portfolio {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header p {
        font-size: 1.15rem;
        padding: 0 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item img {
        height: 350px;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .portfolio-overlay p {
        font-size: 1rem;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-item h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item p, .contact-item li {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-form {
        padding: 2.5rem;
        border-radius: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 18px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    
    .footer {
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo p {
        font-size: 1rem;
    }
    
    .footer-text p {
        text-align: center;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .language-switch {
        margin-left: 0.5rem;
        order: 2;
        padding: 0.2rem;
        gap: 0.15rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 40px;
        text-align: center;
        border-radius: 16px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo span {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 16px 25px;
        font-size: 1rem;
        max-width: 250px;
    }
    
    .about-text h2 {
        font-size: 2.4rem;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
    }
    
    .about-text p {
        font-size: 1.05rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #333;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .section-header p {
        font-size: 1.05rem;
    }
    
    .portfolio-item img {
        height: 280px;
    }
    
    .portfolio-overlay {
        padding: 1.2rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.3rem;
    }
    
    .contact-item h3 {
        font-size: 1.4rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
        gap: 0.5rem;
    }
    
    .language-switch {
        margin-left: 0.3rem;
        order: 2;
        padding: 0.15rem;
        gap: 0.1rem;
    }
    
    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: 35px;
        text-align: center;
        border-radius: 14px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 20px;
        font-size: 0.95rem;
        max-width: 220px;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-item img {
        height: 250px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .lang-btn:hover {
        transform: none;
    }
    
    .lang-btn:active {
        transform: scale(0.95);
    }
    
    .lang-btn.active:active {
        transform: scale(0.95);
    }
}
