/* ===== 基础重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 全局样式 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* ===== 顶部导航样式 ===== */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== 移动端菜单 ===== */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== 主内容区域 ===== */
main {
    margin-top: 80px;
}

/* ===== 页面切换功能 ===== */
.page-content {
    display: none;
    min-height: calc(100vh - 80px);
}

.page-content.active {
    display: block;
}

.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ===== 英雄区域样式 ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* ===== 通用区块样式 ===== */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 600;
}

/* ===== 特色功能卡片 ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

/* ===== 关于我们页面样式 ===== */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-image {
    text-align: center;
}

.placeholder-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    border: 2px dashed #bbb;
}

/* ===== 产品展示样式 ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, #83B8FF 0%, #C8C4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

/* 添加这个样式来控制产品图片大小 */
.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* 保持图片比例，适应容器 */
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.product-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== 使用手册样式 ===== */
.manual-section {
    margin-bottom: 3rem;
}

.manual-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    font-size: 1.5rem;
}

.manual-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.step:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.step h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.manual-section ul {
    margin-left: 1.5rem;
}

.manual-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===== 联系表单样式 ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.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 ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.contact-info {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ===== 页脚样式 ===== */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

footer > .container > p {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Logo区域样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.company-photo {
    max-width: 400px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  
    .logo {
        gap: 8px;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .company-name {
        font-size: 1.2rem;
    }

     .company-photo {
        max-width: 100%;     /* 移动端全宽 */
        margin: 0 auto;      /* 居中显示 */
    }

  /* 移动端导航 */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }

    /* 英雄区域 */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* 关于我们页面 */
    .about-content {
        grid-template-columns: 1fr;
    }

    /* 区块间距调整 */
    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    /* 特色卡片 */
    .features {
        grid-template-columns: 1fr;
    }

    /* 产品卡片 */
    .products {
        grid-template-columns: 1fr;
    }

    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .product-card {
        margin: 0 10px;
    }
}

/* ===== 加载动画和过渡效果 ===== */
.page-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* OBox MyCloud Manual Page Styles */
/* 添加到 css/style.css 文件中 */

/* 手册导航 */
.manual-nav {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.manual-nav h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.manual-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.manual-nav li a {
    display: block;
    padding: 12px 16px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.manual-nav li a:hover {
    background: #007bff;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* 手册章节 */
.manual-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.manual-section:last-child {
    border-bottom: none;
}

.manual-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    font-size: 1.8em;
}

.manual-section h3 {
    color: #34495e;
    margin: 25px 0 15px 0;
    font-size: 1.4em;
}

.manual-section h4 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}

/* 步骤样式 */
.step {
    margin-bottom: 25px;
    padding: 15px;
    background: #fafbfc;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.step h4 {
    color: #155724;
    margin-top: 0;
}

.step ol, .step ul {
    margin-bottom: 0;
}

/* 手机截图样式 */
.step-image {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19.5;  /* 现代手机比例 */
    margin: 20px auto;
    border-radius: 20px;     /* iPhone风格圆角 */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* 图片适应容器 */
    display: block;
}

.step-image-slideshow {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19.5;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    position: relative;
}

.step-image-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: slideshow 9s infinite;
}

.step-image-slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.step-image-slideshow img:nth-child(2) {
    animation-delay: 3s;
}

.step-image-slideshow img:nth-child(3) {
    animation-delay: 6s;
}

@keyframes slideshow {
    0%, 33.33% {
        opacity: 1;
    }
    33.34%, 100% {
        opacity: 0;
    }
}

/* 功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

/* 功能卡片 */
.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #28a745;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-card h4 {
    color: #28a745;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.feature-card ul {
    margin-bottom: 0;
}

.feature-card li {
    margin-bottom: 8px;
}

/* 云服务商部分 */
.provider-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.provider-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.provider-tab {
    padding: 12px 24px;
    background: #e9ecef;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
}

.provider-tab:hover {
    background: #6c757d;
    color: white;
}

.provider-tab.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.provider-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* 共享方法 */
.sharing-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.sharing-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.sharing-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.1);
}

.sharing-card h4 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* 信息框样式 */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f0ad4e;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(240,173,78,0.1);
}

.warning-box strong {
    color: #856404;
}

.info-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(23,162,184,0.1);
}

.info-box strong {
    color: #0c5460;
}

.info-box h4 {
    color: #0c5460;
    margin-top: 0;
    margin-bottom: 12px;
}

/* 系统要求列表 */
.requirements-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #6c757d;
}

.requirements-list h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 15px;
}

.requirements-list ul li {
    margin-bottom: 8px;
    color: #495057;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .manual-nav ul {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .sharing-methods {
        grid-template-columns: 1fr;
    }
    
    .provider-tabs {
        flex-direction: column;
    }
    
    .provider-tab {
        width: 100%;
        text-align: center;
    }
    
    .step-image,
    .step-image-slideshow {
        max-width: 200px;    /* 只调整最大宽度 */
        margin: 15px auto;   /* 保持aspect-ratio生效 */
    }
}

@media (max-width: 480px) {
    .provider-section {
        padding: 15px;
    }
    
    .provider-content {
        padding: 15px;
    }
    
    .manual-nav {
        padding: 15px;
    }
    
    .step-image,
    .step-image-slideshow {
        max-width: 160px;    /* 删除height设置 */
        margin: 10px auto;
    }
    
    .step {
        padding: 12px;
        margin-bottom: 20px;
    }
}

/* 滚动平滑 */
html {
    scroll-behavior: smooth;
}

/* 章节标题锚点偏移（避免被固定头部遮挡） */
.manual-section[id] {
    scroll-margin-top: 80px;
}

/* 打印样式 */
@media print {
    .manual-nav {
        display: none;
    }
    
    .step-image {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
    
    .provider-tabs {
        display: none;
    }
    
    .provider-content {
        display: block !important;
        page-break-inside: avoid;
    }
}
