/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 导航栏 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin-bottom: 0;
    padding-bottom: 0;
}

.navbar {
    padding: 0.5rem 0;
}

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

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav-logo i {
    font-size: 2rem;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 999;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: #333;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 1rem;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: #f0f4fa;
    color: #007bff;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容 */
.main-content {
    margin-top: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 0 2.5rem 0;
    display: flex;
    align-items: center;
    min-height: 60vh;
    width: 100%;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.hero-image i {
    font-size: 8rem;
    opacity: 0.8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 功能区域 */
.features-section {
    padding: 4rem 0;
    background-color: white;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 联系区域 */
.contact-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    width: 100%;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.contact-item span {
    font-weight: 500;
}

/* 留言板样式 */
.guestbook-container {
    padding: 2rem 0;
    width: 100%;
    flex: 1;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 700;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.guestbook-messages-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.guestbook-form-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.guestbook-form-section h2,
.guestbook-messages-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.messages-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    transition: background-color 0.3s;
}

.message-item:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
    margin: 0 -1rem;
}

.message-item:last-child {
    border-bottom: none;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-header h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.message-date {
    font-size: 0.9rem;
    color: #666;
}

.message-content {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
    word-wrap: break-word;
}

.message-email {
    font-size: 0.9rem;
    color: #667eea;
    display: flex;
    align-items: center;
}

.message-email i {
    margin-right: 0.5rem;
}

.no-messages {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-content p {
    margin: 0;
}

.beian a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.beian a:hover {
    color: white;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: 0;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 280px;
        height: calc(100vh - 70px);
        text-align: left;
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: 1rem 0;
        border-radius: 10px 0 0 10px;
        overflow-y: auto;
        transform: translateX(100%);
        z-index: 1001;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    /* 添加遮罩层 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image i {
        font-size: 4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu .nav-link {
        padding: 1rem 1.5rem;
        color: white;
        font-size: 1rem;
        border-radius: 0;
        transition: background-color 0.3s;
    }
    
    .nav-menu .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        min-width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .dropdown-menu a {
        color: white;
        padding: 0.75rem 2rem;
        background: transparent;
        border-radius: 0;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    

    
    /* 移动端菜单图标样式 */
    .nav-menu .dropdown .nav-link i {
        float: right;
        margin-top: 4px;
        transition: transform 0.3s;
    }
    
    .nav-menu .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
    
    /* 移动端菜单滚动条样式 */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .guestbook-form-section,
    .guestbook-messages-section {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 0.8rem 0 1.5rem 0;
        min-height: 40vh;
    }
    .main-content {
        margin-top: 40px;
    }
    
    /* 小屏幕设备菜单优化 */
    .nav-menu {
        width: 260px;
    }
    
    .nav-menu .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a {
        padding: 0.6rem 1.8rem;
        font-size: 0.9rem;
    }
} 

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.user-avatar-link {
    display: flex;
    align-items: center;
    gap: 4px;
}
.user-avatar-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 140px;
}
.user-avatar-dropdown .dropdown-menu a {
    text-align: left;
    font-size: 1rem;
}

/* 产品介绍页面美化加强 - 文档风格 */
.product-page {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    padding: 3rem 2.5rem;
    margin: 3rem auto 2rem auto;
    max-width: 900px;
    min-height: 60vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
}
.product-page h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: left;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.8rem;
}
.product-page .lead {
    font-size: 1.1rem;
    color: #4a5568;
    text-align: left;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 90%;
}
.product-section {
    margin-bottom: 2.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
}
.product-section h2 {
    font-size: 1.6rem;
    color: #2d3748;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-left: 3px solid #4299e1;
    padding-left: 1rem;
    background: #f7fafc;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 4px 4px 0;
}
.product-section ul {
    list-style: none;
    padding: 0 0 0 1rem;
    margin: 0 0 1.5rem 0;
    display: block;
}
.product-section li {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.6rem 0.5rem 0.6rem 2rem;
    font-size: 1.05rem;
    color: #4a5568;
    flex: none;
    min-width: 0;
    margin-bottom: 0.7rem;
    position: relative;
    transition: background 0.2s;
    line-height: 1.7;
    border-bottom: 1px dashed #e2e8f0;
}
.product-section li:before {
    content: '\2022';
    color: #4299e1;
    font-size: 1.4rem;
    position: absolute;
    left: 0.7rem;
    top: 0.5rem;
    font-weight: bold;
}
.product-section li:hover {
    box-shadow: none;
    background: #f7fafc;
}
.product-slogan {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.2rem;
    color: #2d3748;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #ebf8ff;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid #4299e1;
}
@media (max-width: 700px) {
    .product-page {
        padding: 2rem 1.5rem;
    }
    .product-section ul {
        padding-left: 0.5rem;
    }
    .product-section li {
        font-size: 1rem;
        padding-left: 1.8rem;
    }
    .product-section h2 {
        font-size: 1.3rem;
        padding-left: 0.8rem;
    }
} 