/*
Theme Name: 固德混凝土切割
Theme URI: https://example.com
Author: 您的公司名
Author URI: https://example.com
Description: 混凝土切割企业自适应主题，支持多语言、独立页面模板，优化移动端体验。
Version: 3.0
License: GPL v2 or later
Text Domain: goodcut
*/

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #1e1e2f;
    background-color: #fff;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255,255,255,0.98);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: #e6531e;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1e1e2f;
}

.logo-text span {
    color: #e6531e;
}

/* 导航菜单（桌面） */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    color: #2d2d3a;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #e6531e;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e6531e;
    transition: width 0.2s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 汉堡菜单按钮（移动端） */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #1e1e2f;
    cursor: pointer;
    background: none;
    border: none;
}

/* 语言切换器（默认下拉） */
.language-switcher {
    margin-left: 20px;
}
.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    background-color: white;
    min-width: 90px;
}
.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}
.language-switcher li a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.language-switcher li a:hover {
    color: #e6531e;
}
.language-switcher img {
    width: 20px;
    height: auto;
}

/* 移动端导航及汉堡菜单 */
@media (max-width: 768px) {
    .header-content {
        height: auto;
        padding: 16px 0;
    }
    .menu-toggle {
        display: block;
        order: 3;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: #fff;
        padding: 20px 0;
        margin-top: 15px;
        border-top: 1px solid #eee;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
    }
    .nav-menu a:last-child {
        border-bottom: none;
    }
    .language-switcher {
        margin-left: auto;
        margin-right: 0;
    }
}

/* 按钮 */
.btn {
    display: inline-block;
    background-color: #e6531e;
    color: white;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(230,83,30,0.2);
}
.btn:hover {
    background-color: #c43c0c;
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid #e6531e;
    color: #e6531e;
    box-shadow: none;
}
.btn-outline:hover {
    background-color: #e6531e;
    color: white;
}

/* HERO 区域 */
.hero {
    background: linear-gradient(115deg, #0b0b16 0%, #1a1a2e 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero h1 span {
    color: #e6531e;
    border-bottom: 4px solid rgba(230,83,30,0.5);
    display: inline-block;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 540px;
    color: #e0e0f0;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-image i {
    font-size: 14rem;
    color: #e6531e;
    opacity: 0.8;
}
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        display: none;
    }
}
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        justify-content: center;
    }
}

/* 通用section */
.section {
    padding: 90px 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e1e2f;
}
.section-sub {
    text-align: center;
    font-size: 1.2rem;
    color: #5a5a70;
    max-width: 700px;
    margin: 0 auto 60px;
}
.bg-light {
    background-color: #f9f9fc;
}
@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-sub {
        font-size: 1rem;
    }
}

/* 卡片网格（服务/案例共用） */
.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card,
.project-item {
    background: white;
    padding: 36px 20px 30px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f5;
}
.service-card:hover,
.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(230,83,30,0.08);
    border-color: #ffe2d4;
}
.service-icon,
.project-img {
    font-size: 3.2rem;
    color: #e6531e;
    margin-bottom: 25px;
    background: #fff0e9;
    padding: 18px;
    border-radius: 60px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
.service-icon img,
.project-img img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 50%;
}
.service-card h3,
.project-item h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.service-card p,
.project-item p {
    color: #5e5e79;
    font-size: 0.98rem;
}
.project-img {
    background-color: #2d2d3a;
    background-image: linear-gradient(145deg, #3a3a4f, #262635);
    color: white;
}
@media (max-width: 1024px) {
    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card,
    .project-item {
        padding: 24px 15px;
    }
    .service-card h3,
    .project-item h4 {
        font-size: 1.3rem;
    }
}

/* 联系我们页面专用 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f5;
}
.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-icon {
    width: 56px;
    height: 56px;
    background: #fff0e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #e6531e;
    flex-shrink: 0;
}
.contact-text strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e1e2f;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid #ddddee;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #fbfbff;
    transition: 0.2s;
}
.form-group textarea {
    border-radius: 30px;
    resize: vertical;
    min-height: 140px;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e6531e;
    box-shadow: 0 0 0 3px rgba(230,83,30,0.1);
}
.contact-form button {
    align-self: flex-start;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .contact-form button {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .contact-item {
        flex-wrap: wrap;
    }
}

/* 页脚 */
.footer {
    background: #13131f;
    color: #a6a6c0;
    padding: 40px 0;
    text-align: center;
}
.footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}
.footer-logo span {
    color: #e6531e;
}
.footer a {
    color: #e9e9ff;
    text-decoration: none;
}

/* 独立页面通用样式 */
.page-content {
    padding: 60px 0;
    min-height: 400px;
}
.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e1e2f;
}
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
@media (max-width: 600px) {
    .entry-title {
        font-size: 2rem;
    }
    .page-content {
        padding: 40px 0;
    }
}

/* 单篇文章详情页 */
.post-thumbnail {
    margin: 30px 0;
    text-align: center;
}
.post-thumbnail img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}
@media (min-width: 769px) {
    .nav-menu .lang-item-mobile {
        display: none;
    }
}
@media (max-width: 768px) {
    .language-switcher.desktop-only {
        display: none;
    }
    .nav-menu .lang-item-mobile {
        display: list-item;
    }
    .nav-menu .lang-item-mobile ul {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 10px;
    }
}