/* E & E Global Co., Ltd. - 橙色主题样式 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "Noto Sans TC", "PingFang TC", sans-serif;
    background: linear-gradient(135deg, #fff3e0 0%, #fff8f0 50%, #fff5e6 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 50%, #ff9800 100%);
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: stretch;
    gap: 15px;
}

.logo-icon {
    width: 100px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.logo-text {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 语言切换 */
.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: #fff;
    color: #e65100;
    border-color: #fff;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 500px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #fff 0%, #ffe0b2 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(230, 81, 0, 0.1);
}

.page-title h2 {
    font-size: 28px;
    color: #e65100;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-title p {
    font-size: 14px;
    color: #666;
}

/* 首页英雄区 */
.hero-section {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 50%, #ffb74d 100%);
    border-radius: 20px;
    padding: 80px 60px;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #e65100;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 服务卡片 */
.services-section {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 28px;
    color: #e65100;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #ffe0b2;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(230, 81, 0, 0.15);
    border-color: #ffcc80;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
}

.service-card h4 {
    font-size: 20px;
    color: #e65100;
    margin-bottom: 12px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* 关于我们页面 */
.about-content {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.08);
}

.about-intro {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #ffe0b2;
}

.about-intro h3 {
    font-size: 28px;
    color: #e65100;
    margin-bottom: 20px;
}

.about-intro p {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h4 {
    font-size: 22px;
    color: #e65100;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #ff9800;
}

.about-section ul {
    list-style: none;
    padding-left: 20px;
}

.about-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    font-size: 15px;
}

.about-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
}

/* 产品中心页面 */
.products-content {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.08);
}

.product-category {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ffe0b2;
}

.product-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e65100 0%, #ff9800 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.category-header h4 {
    font-size: 22px;
    color: #e65100;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-left: 65px;
}

.product-item {
    background: #fff8f0;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: #ffe0b2;
    transform: translateX(5px);
}

.product-item h5 {
    font-size: 16px;
    color: #e65100;
    margin-bottom: 8px;
}

.product-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 联系我们页面 - 新布局 */
.contact-info-full {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #ffe0b2;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(230, 81, 0, 0.15);
    border-color: #ffcc80;
}

.info-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.info-card h4 {
    font-size: 18px;
    color: #e65100;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 旧样式保留兼容 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.08);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ffe0b2;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 16px;
    color: #e65100;
    margin-bottom: 5px;
}

.info-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.contact-form h3 {
    font-size: 24px;
    color: #e65100;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ffe0b2;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff9800;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e65100 0%, #ff9800 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 表单消息提示 */
.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    display: block;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #bf360c 0%, #e65100 100%);
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 30px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .about-content,
    .products-content,
    .contact-info,
    .contact-form {
        padding: 25px;
    }
    
    .product-list {
        padding-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.product-item,
.info-item {
    animation: fadeIn 0.6s ease forwards;
}
