.page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    align-items: flex-start;
    margin: 0 auto;
}

.side-content {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    margin-top: 40px;
}

.main-content {
    width: 100%;
}

.index-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    flex: 1;
    min-width: 0;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.platform-tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}

.btn-action {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-weight: 500;
    min-height: 40px;
}

.btn-action:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.button-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.button-loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-action:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
}

.btn-cover {
    background: #ed8936;
    color: white;
}

.btn-cover:hover {
    background: #dd6b20;
}

.result {
    margin-top: 30px;
    display: none;
}

.result.show {
    display: block;
    animation: fadeIn 0.5s;
}

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

.result-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.platform-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.result-title {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-meta {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.author-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

.video-player-section {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-player-section video {
    width: 100%;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

.image-grid-section {
    margin-bottom: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.image-grid-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.image-grid-thumb {
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-item:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.image-download-btn {
    border: none;
    border-top: 1px solid #eee;
    background: #f8f8f8;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.image-download-btn:hover {
    background: #667eea;
    color: #fff;
}

.image-grid-info {
    text-align: center;
    color: #888;
    font-size: 14px;
}

.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

.image-preview-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.image-preview-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-preview-prev {
    left: -60px;
}

.image-preview-next {
    right: -60px;
}

.image-preview-indicator {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 10px;
}

.cover-section {
    margin-bottom: 20px;
    display: none;
}

.cover-section.show {
    display: block;
    animation: fadeIn 0.3s;
}

.cover-image {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.cover-image:hover {
    transform: scale(1.02);
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.action-buttons-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons-section .btn-action {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 140px;
}

.link-group {
    margin-bottom: 20px;
}

.link-label {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    position: relative;
    padding-right: 75px;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    min-height: 36px;
    font-weight: 500;
}

.copy-btn:hover {
    background: #5a67d8;
}

.copy-btn:active {
    background: #4c51bf;
    opacity: 0.9;
}

.error {
    background: #fff5f5;
    color: #c53030;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.error.show {
    display: block;
}

.loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.loading.show {
    display: block;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tips {
    margin-top: 20px;
    padding: 15px;
    background: #e6fffa;
    border-radius: 10px;
    color: #234e52;
    font-size: 13px;
}

.tips strong {
    color: #2c7a7b;
}

.supported-platforms {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
}

.mini-program-section {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-program-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mini-program-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mini-program-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #07c160 0%, #10b981 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.mini-program-title {
    font-size: 18px;
    font-weight: 600;
    color: #166534;
}

.mini-program-subtitle {
    font-size: 14px;
    color: #15803d;
    margin-bottom: 20px;
    opacity: 0.9;
}

.mini-program-qrcode-wrapper {
    display: inline-block;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(7, 193, 96, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-program-qrcode-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(7, 193, 96, 0.25);
}

.mini-program-qrcode {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    display: block;
}

.mini-program-desc {
    margin-top: 15px;
    font-size: 13px;
    color: #166534;
    line-height: 1.6;
}

.mini-program-tips {
    margin-top: 10px;
    font-size: 12px;
    color: #4ade80;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #667eea;
}

.toast.toast-success {
    border-left-color: #48bb78;
}

.toast.toast-error {
    border-left-color: #e53e3e;
}

.toast.toast-warning {
    border-left-color: #ed8936;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 2px;
}

.toast-message {
    color: #666;
    font-size: 13px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    padding: 6px;
    flex-shrink: 0;
    transition: color 0.2s;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #666;
}

.toast-close:active {
    color: #333;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.feedback-section {
    margin-top: 20px;
    text-align: center;
}

.btn-feedback {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(240, 147, 251, 0.4);
    animation: pulse 2s infinite;
    min-height: 44px;
}

.btn-feedback:active {
    transform: translateY(0);
    opacity: 0.9;
}

@keyframes pulse {
    0% {
        box-shadow: 0 3px 12px rgba(240, 147, 251, 0.4);
    }
    50% {
        box-shadow: 0 3px 20px rgba(240, 147, 251, 0.7);
    }
    100% {
        box-shadow: 0 3px 12px rgba(240, 147, 251, 0.4);
    }
}

.btn-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #666;
    background: #f0f0f0;
}

.modal-close:active {
    color: #333;
    background: #e0e0e0;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group .required {
    color: #e53e3e;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

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

.contact-row {
    display: flex;
    gap: 10px;
}

.contact-row select {
    width: auto;
    min-width: 100px;
}

.contact-row input {
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.btn-modal {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    min-height: 44px;
}

.btn-modal.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-modal.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-modal.btn-cancel:active {
    background: #d0d0d0;
}

.btn-modal.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-modal.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-modal.btn-submit:active {
    transform: translateY(0);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .side-content {
        width: 100%;
        position: static;
    }
    
    .index-container {
        padding: 20px 15px;
        border-radius: 15px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .subtitle {
        font-size: 12px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .platform-tags {
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .platform-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    textarea {
        padding: 12px;
        font-size: 16px;
        min-height: 80px;
    }
    
    .btn {
        padding: 14px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .action-buttons-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons-section .btn-action {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .result {
        margin-top: 20px;
    }
    
    .result-header {
        padding: 15px;
    }
    
    .result-title {
        font-size: 16px;
    }
    
    .result-meta {
        font-size: 13px;
    }
    
    .video-player-section video {
        max-height: 250px;
    }
    
    .link-label {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .link-box {
        padding: 12px;
        padding-right: 65px;
        font-size: 12px;
    }
    
    .copy-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .tips {
        font-size: 12px;
        padding: 12px;
    }
    
    .footer {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 14px 16px;
    }
    
    .modal {
        margin: 10px;
        max-width: 100%;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px 20px;
    }
    
    .btn-modal {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
        flex: 1;
    }
    
    .contact-row {
        flex-direction: column;
    }
    
    .contact-row select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 15px;
    }
    
    .index-container {
        padding: 15px 12px;
    }
    
    .btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .result-title {
        font-size: 15px;
    }
    
    .platform-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .mini-program-section {
        padding: 15px;
    }
    
    .mini-program-qrcode {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 13px;
    }
}
