/* 
==============================================
    Lifelong learning, ageless growth - 室内设计作品集
    样式表
==============================================
*/

/* 基础重置与字体设置 */
:root {
    --primary-color: #353535;
    --secondary-color: #C3A871;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #222;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

/* 头部 */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 页眉区 */
.page-header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 英雄区 */
.hero {
    height: 90vh;
    position: relative;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--light-text);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 精选作品 - 不对称网格布局 */
.featured-works {
    padding: 100px 0;
}

.featured-works h2 {
    text-align: center;
    margin-bottom: 60px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 20px;
    margin-bottom: 50px;
}

.featured-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* 第一行布局 */
.featured-item:nth-child(1) {
    grid-column: span 8;
    grid-row: span 1;
}

.featured-item:nth-child(2) {
    grid-column: span 4;
    grid-row: span 1;
}

/* 第二行布局 */
.featured-item:nth-child(3) {
    grid-column: span 4;
    grid-row: span 1;
}

.featured-item:nth-child(4) {
    grid-column: span 4;
    grid-row: span 1;
}

.featured-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 1;
}

/* 第三行布局 */
.featured-item:nth-child(6) {
    grid-column: span 8;
    grid-row: span 1;
}

.featured-item:nth-child(7) {
    grid-column: span 4;
    grid-row: span 1;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-item:hover img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.5s ease;
}

.featured-item:hover .featured-overlay {
    transform: translateY(0);
    opacity: 1;
}

.featured-overlay h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 原来的作品网格样式保留，用于portfolio页面 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.work-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}

.work-overlay h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 设计理念 */
.philosophy {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.philosophy .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-content h2 {
    margin-bottom: 30px;
}

.philosophy-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.philosophy-image {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-image:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    z-index: -1;
}

/* 响应式设计 - 精选作品部分 */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .featured-item:nth-child(1),
    .featured-item:nth-child(6) {
        grid-column: span 4;
    }
    
    .featured-item:nth-child(2),
    .featured-item:nth-child(3),
    .featured-item:nth-child(4),
    .featured-item:nth-child(5),
    .featured-item:nth-child(7) {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-item:nth-child(1),
    .featured-item:nth-child(2),
    .featured-item:nth-child(3),
    .featured-item:nth-child(4),
    .featured-item:nth-child(5),
    .featured-item:nth-child(6),
    .featured-item:nth-child(7) {
        grid-column: span 1;
    }
}

/* 作品集 */
.portfolio-filter {
    padding: 30px 0;
    text-align: center;
}

.filter-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
}

.portfolio-gallery {
    padding: 50px 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.gallery-item {
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    height: 500px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 30px;
    background-color: #fff;
}

.gallery-info h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.gallery-info p {
    margin-bottom: 20px;
    color: #666;
}

/* 项目详情页 */
.project-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.project-meta span {
    display: flex;
    align-items: center;
}

.project-meta i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.project-showcase {
    padding: 100px 0;
}

.showcase-main {
    margin-bottom: 30px;
}

.showcase-hero {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.showcase-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.showcase-grid img:hover {
    transform: scale(1.05);
}

.project-details {
    padding: 0 0 100px;
}

.project-details .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.project-description h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.project-description h3 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    color: var(--secondary-color);
}

.project-description p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-sidebar {
    align-self: start;
}

.sidebar-box {
    background-color: var(--light-bg);
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-box h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-box h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.project-info-list li,
.project-material-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.project-navigation {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.project-navigation .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
}

.nav-previous a {
    justify-content: flex-start;
}

.nav-next a {
    justify-content: flex-end;
}

.nav-previous i,
.nav-next i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.nav-previous span,
.nav-next span {
    font-size: 0.9rem;
    color: #666;
}

.nav-previous h4,
.nav-next h4 {
    font-size: 1.2rem;
}

.nav-previous i {
    margin-right: 15px;
}

.nav-next i {
    margin-left: 15px;
}

.nav-overview a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
}

.nav-overview i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* 关于页面 */
.about-intro {
    padding: 100px 0;
}

.about-intro .container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    opacity: 0.1;
    z-index: -1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-content .subtitle {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.signature {
    margin-top: 40px;
    max-width: 200px;
}

.design-philosophy {
    background-color: var(--light-bg);
    padding: 100px 0;
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.philosophy-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-10px);
}

.philosophy-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.philosophy-item h3 {
    margin-bottom: 15px;
}

.experience {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    text-align: center;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    font-weight: 500;
    border-radius: 3px;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h3 {
    margin-bottom: 10px;
}

.achievements {
    background-color: var(--light-bg);
    padding: 100px 0;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.achievement-item {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.achievement-year {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
}

.achievement-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.testimonials {
    padding: 100px 0;
}

.testimonial-slider {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.testimonial-item {
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    position: relative;
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    color: var(--secondary-color);
    opacity: 0.2;
}

.testimonial-content p:before {
    top: -20px;
    left: -10px;
}

.testimonial-content p:after {
    bottom: -60px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
}

/* 联系页面 */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-info > p {
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    margin-bottom: 5px;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--light-bg);
    padding: 50px;
    border-radius: 5px;
}

.contact-form h2 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.map-section {
    padding: 0 0 100px;
}

.map-container {
    height: 450px;
    overflow: hidden;
}

.cta-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 1.5rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .works-grid,
    .philosophy-grid,
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .philosophy .container,
    .about-intro .container,
    .project-details .container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .works-grid,
    .philosophy-grid,
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .gallery-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .project-navigation .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-previous a,
    .nav-next a {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .philosophy-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-date {
        width: 120px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-date {
        left: 20px;
        transform: none;
    }
    
    .testimonial-slider {
        flex-direction: column;
    }
}

/* 图片保护样式 */
.protected-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* 添加水印效果 */
.gallery-image img,
.featured-item img,
.work-item img {
    position: relative;
}

.gallery-image img::after,
.featured-item img::after,
.work-item img::after {
    content: "Lifelong learning, ageless growth";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
} 