:root {
    --primary-color: #66bb6a;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    --card-border: #404040;
    --input-bg: #333333;
    --input-text: #ffffff;
    --input-border: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    overflow-x: hidden;
}

#content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 35px 0;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(to bottom, rgba(102, 187, 106, 0.1), transparent);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        var(--primary-color), 
        transparent
    );
}

h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    color: var(--text-color);
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.brand-info {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 16px;
    opacity: 0.95;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    background: rgba(102, 187, 106, 0.1);
    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-info:hover {
    background: rgba(102, 187, 106, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.2);
}

.section {
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--card-border);
}

ol {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.special-note {
    background-color: rgba(102, 187, 106, 0.05);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-top: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.special-note:hover {
    background-color: rgba(102, 187, 106, 0.1);
    transform: translateX(5px);
}

.special-note::before {
    content: '!';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
}

/* 项目案例链接样式 */
.case-section {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(to right, rgba(102, 187, 106, 0.1), transparent);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.case-section:hover {
    background: linear-gradient(to right, rgba(102, 187, 106, 0.2), transparent);
    transform: translateX(5px);
}

.case-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-link i {
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.case-link:hover i {
    transform: translateX(5px);
}

/* 更新悬浮按钮位置 */
.floating-buttons {
    position: fixed;
    bottom: 10vh; /* 距离底部10% */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

/* 二维码样式更新 */
.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    max-width: 250px;
}

#qrcode {
    width: 180px;
    height: 180px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode img {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.qr-code p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 8px;
}

.qr-code p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 悬浮按钮样式 */
.floating-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    background-color: #7bc67f;
}

.floating-button i {
    font-size: 24px;
}

/* 分享菜单样式 */
.share-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 8px 0;
    display: none;
}

.share-menu.active {
    display: block;
}

.share-menu-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.share-menu-item:hover {
    background-color: var(--input-bg);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }

    .floating-button {
        width: 48px;
        height: 48px;
    }

    .floating-button i {
        font-size: 20px;
    }

    .case-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .case-link {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }

    ol {
        padding-left: 15px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        padding: 20px;
    }
    
    .floating-buttons {
        display: none;
    }
}

/* 图片预览窗口样式 */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.preview-modal.active {
    display: flex;
    opacity: 1;
}

.preview-content {
    width: 100%;
    max-width: 90%;
    margin: 20px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

.preview-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2001;
}

.preview-header span {
    font-size: 16px;
    opacity: 0.9;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

.preview-image-container {
    margin-top: 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

#preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preview-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    color: white;
    font-size: 14px;
    z-index: 2001;
}

.preview-footer .tip-text {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-weight: 500;
}

.preview-footer .tip-icon {
    margin-right: 6px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media screen and (max-width: 768px) {
    .preview-content {
        max-width: 100%;
        margin: 0;
    }

    .preview-header {
        padding: 12px;
    }

    .preview-image-container {
        padding: 10px;
    }

    .preview-footer {
        padding: 12px;
    }

    .preview-footer .tip-text {
        font-size: 13px;
        padding: 6px 12px;
    }
} 