/* 谷食纪餐饮管理有限公司 - 官网样式 */

/* 全局样式 */
:root {
    --primary-color: #5c7115;
    --primary-light: #8a9a5b;
    --secondary-color: #f5f5f0;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-cream: #faf9f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
}

/* 头部导航 */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo-text {
    margin-left: 15px;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* 主要内容区域 */
main {
    margin-top: 90px;
}

/* 英雄区块 */
.hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--secondary-color) 100%);
    padding: 120px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 2;
}

.cta-button {
    display: inline-block;
    padding: 15px 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: all 0.3s;
    font-weight: 500;
}

.cta-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(92, 113, 21, 0.3);
}

/* 内容区块 */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: var(--bg-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 60px;
}

/* 特色卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(92, 113, 21, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* 服务项目 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: var(--bg-white);
    padding: 50px 40px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(92, 113, 21, 0.15);
    transform: translateX(5px);
}

.service-item h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.service-item p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.service-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 联系表单 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: start;
}

.info-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    font-size: 16px;
}

/* 关于我们内容 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}

.about-image {
    text-align: center;
    padding: 40px;
    background-color: var(--secondary-color);
    border-radius: 15px;
}

.about-image img {
    max-width: 200px;
    height: auto;
}

/* 价值观 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-item {
    background-color: var(--bg-white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-item h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.value-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 2;
    text-decoration: none;
    display: block;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 响应式设计 */

/* 平板和小屏幕 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero {
        padding: 100px 30px;
    }

    .section {
        padding: 60px 30px;
    }
}

/* 平板竖屏 */
@media (max-width: 768px) {
    /* 头部导航优化 */
    header {
        position: relative;
    }

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .logo img {
        height: 60px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 0;
    }

    nav a {
        padding: 8px 16px;
        font-size: 15px;
        background-color: var(--bg-cream);
        border-radius: 8px;
        transition: all 0.3s;
    }

    nav a:hover,
    nav a.active {
        background-color: var(--primary-color);
        color: var(--bg-white);
    }

    main {
        margin-top: 0;
    }

    /* Hero区块优化 */
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* 按钮优化 - 更适合触摸 */
    .cta-button {
        padding: 14px 40px;
        font-size: 16px;
        display: inline-block;
        min-height: 48px;
        line-height: 20px;
    }

    /* 内容区块优化 */
    .section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-top: -30px;
        margin-bottom: 40px;
    }

    /* 网格布局改为单列 */
    .features,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 卡片优化 */
    .feature-card,
    .service-item {
        padding: 30px 25px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .service-item h3 {
        font-size: 22px;
    }

    /* 联系和关于页面 */
    .contact-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 表单优化 */
    input, select, textarea {
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }

    /* 页脚优化 */
    footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        font-size: 13px;
        padding-top: 20px;
    }
}

/* 大手机 */
@media (max-width: 480px) {
    /* 进一步缩小字体和间距 */
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero p {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 15px 30px;
    }

    .feature-card,
    .service-item,
    .value-item {
        padding: 25px 20px;
    }

    .feature-card h3,
    .service-item h3 {
        font-size: 18px;
    }

    .feature-card p,
    .service-item p {
        font-size: 15px;
    }

    /* 导航更紧凑 */
    .logo img {
        height: 50px;
    }

    nav ul {
        gap: 10px;
        margin-top: 12px;
    }

    nav a {
        padding: 8px 15px;
        font-size: 15px;
    }

    /* 表单元素更大，便于触摸 */
    input, select, textarea, button {
        padding: 14px 15px !important;
        font-size: 16px !important;
    }

    .info-item {
        flex-direction: column;
        align-items: start;
    }

    .info-icon {
        margin-bottom: 10px;
    }

    /* 页脚字体调整 */
    .footer-section h4 {
        font-size: 18px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* 小手机 */
@media (max-width: 375px) {
    .hero {
        padding: 60px 15px;
    }

    .section {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .header-container {
        padding: 12px 15px;
    }

    .logo img {
        height: 45px;
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 50px 20px;
    }

    .section {
        padding: 40px 20px;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    nav a {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增加可点击区域 */
    a, button, .cta-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 移除hover效果，改为更明显的active效果 */
    .feature-card:hover,
    .service-item:hover {
        transform: none;
    }

    .feature-card:active,
    .service-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .cta-button:active {
        transform: scale(0.95);
    }
}

