:root {
    --cosmic-primary: #0d1b2a;
    --cosmic-secondary: #1b263b;
    --cosmic-accent: #415a77;
    --neon-cyan: #00f5ff;
    --neon-purple: #8a2be2;
    --neon-gold: #ffd700;
    --warning-yellow: #ffff00;
    --matrix-green: #00ff41;
    --quantum-blue: #4169e1;
    --success-emerald: #50c878;
    --text-primary: #e0e1dd;
    --text-secondary: #778da9;
    --overlay-dark: rgba(13, 27, 42, 0.9);
    --grid-opacity: 0.15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 主容器样式 */
.tw-main-container {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--cosmic-accent);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
    margin-top: 40px;
    margin-bottom: 80px;
    position: relative;
    z-index: 5;
}

/* 主背景容器 */
.tw-ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(
            ellipse at 20% 30%,
            rgba(13, 27, 42, 0.9) 0%,
            #0a0f1a 70%
        ),
        linear-gradient(145deg, #050a15 0%, #0d1b2a 100%);
    overflow: hidden;
}

/* 科技感网格线 */
.tw-grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
            rgba(65, 90, 119, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(65, 90, 119, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

/* 电路板纹理 */
.tw-circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
            circle,
            rgba(0, 245, 255, 0.05) 1px,
            transparent 1px
        ),
        radial-gradient(circle, rgba(138, 43, 226, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

/* 动态粒子 */
.tw-particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tw-particle {
    position: absolute;
    background: rgba(0, 245, 255, 0.4);
    border-radius: 50%;
    filter: blur(1px);
    animation: tw-float 15s infinite linear;
}

.tw-particle:nth-child(2n) {
    background: rgba(65, 105, 225, 0.3);
    animation-delay: -5s;
}

.tw-particle:nth-child(3n) {
    background: rgba(138, 43, 226, 0.2);
    animation-delay: -10s;
}

/* 动画效果 */
@keyframes tw-float {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translate(100vw, -100vh) scale(1.2);
        opacity: 0;
    }
}

/* 风险警告栏 */
.tw-risk-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--warning-yellow), #ffa500);
    color: #000;
    text-align: center;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: tw-warning-pulse 2s ease-in-out infinite;
}

@keyframes tw-warning-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 量子网格背景 */
.tw-quantum-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
            90deg,
            rgba(65, 169, 255, var(--grid-opacity)) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(65, 169, 255, var(--grid-opacity)) 1px,
            transparent 1px
        );
    background-size: 50px 50px;
    animation: tw-grid-pulse 3s ease-in-out infinite;
    z-index: 1;
}

.tw-stock-chart-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(13, 27, 42, 0.9) 0%,
        rgba(27, 38, 59, 0.7) 100%
    );
    z-index: 2;
}

.tw-stock-chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: linear-gradient(
            to right,
            rgba(65, 105, 225, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(to bottom, rgba(65, 105, 225, 0.1) 1px, transparent 1px);
    z-index: 3;
}

.tw-live-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 4;
    overflow: hidden;
}

.tw-chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: #ff4d4d;
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.5));
}

.tw-chart-candles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 5%;
}

.tw-candle {
    width: 6px;
    background: linear-gradient(to top, #ff4d4d, #ff6b6b);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.3);
}

.tw-candle::before,
.tw-candle::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--neon-gold);
}

.tw-candle::before {
    top: -8px;
    height: 8px;
}

.tw-candle::after {
    bottom: -8px;
    height: 12px;
}

/* 主要内容区域 */
.tw-content-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem;
}

.tw-ai-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    padding: 3px;
    margin-bottom: 1.2rem;
    animation: tw-avatar-glow 2s ease-in-out infinite alternate;
}

.tw-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url("../image/tw-avatar-inner.gif");
    background-size: cover;
    background-position: center;
    border: 2px solid var(--cosmic-primary);
}

.tw-title-section {
    text-align: center;
    max-width: 800px;
    padding: 0 15px;
}

.tw-main-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(
        45deg,
        var(--neon-cyan),
        var(--neon-gold),
        var(--neon-purple)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tw-title-shimmer 3s ease-in-out infinite;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.tw-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--matrix-green);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.tw-description {
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    color: var(--text-primary);
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0.8rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.tw-input-section {
    width: 100%;
    max-width: 480px;
    margin-bottom: 1.5rem;
    padding: 0 15px;
}

.tw-input-field {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    background: rgba(27, 38, 59, 0.8);
    border: 2px solid var(--cosmic-accent);
    border-radius: 10px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.tw-input-field::placeholder {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tw-input-field:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

.tw-action-button {
    width: 100%;
    padding: 1.1rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(45deg, var(--quantum-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
}

.tw-action-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.tw-action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.5);
}

.tw-action-button:hover::before {
    left: 100%;
}

.tw-action-button:active {
    transform: translateY(-1px);
}

/* 模态框样式 */
.tw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.tw-progress-container {
    background: var(--cosmic-secondary);
    padding: 2.5rem 1.8rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--cosmic-accent);
    max-width: 380px;
    width: 90%;
}

.tw-progress-text {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.tw-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--cosmic-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.tw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--matrix-green));
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s ease;
}

.tw-stage-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.tw-completion-modal {
    background: var(--cosmic-secondary);
    padding: 2.5rem 1.8rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--success-emerald);
    max-width: 420px;
    width: 90%;
}

.tw-completion-title {
    color: var(--success-emerald);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.tw-completion-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.tw-line-button {
    background: linear-gradient(45deg, #00c300, #00a000);
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 195, 0, 0.3);
    margin-bottom: 1.8rem;
}

.tw-line-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 195, 0, 0.5);
}

/* K线图表样式 */
.tw-kline-container {
    width: 100%;
    height: 180px;
    background: rgba(27, 38, 59, 0.8);
    border-radius: 10px;
    padding: 0.8rem;
    margin-top: 0.8rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cosmic-accent);
}

.tw-kline-title {
    color: var(--neon-cyan);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tw-kline-chart {
    width: 100%;
    height: 130px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 8px;
}

.tw-candle-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tw-candle-stick {
    width: 10px;
    position: relative;
    background: linear-gradient(
        to bottom,
        #ff4d4d,
        #ff4d4d 50%,
        #00ff41 50%,
        #00ff41
    );
    border-radius: 2px;
    z-index: 2;
}

.tw-candle-stick::before,
.tw-candle-stick::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--neon-gold);
    z-index: 1;
}

.tw-candle-stick::before {
    top: -12px;
}

.tw-candle-stick::after {
    bottom: -12px;
}

.tw-candle-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 风险披露区域 */
.tw-risk-section {
    margin-top: 0.5rem;
    max-width: 800px;
    text-align: left;
    background: rgba(27, 38, 59, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--cosmic-accent);
}

.tw-legal-links {
    margin-top: 1.2rem;
    text-align: center;
}

.tw-legal-link {
    color: var(--neon-cyan);
    text-decoration: none;
    margin: 0 0.8rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.tw-legal-link:hover {
    color: var(--neon-gold);
    text-decoration: underline;
}

/* 特色图片区域 */
.tw-featured-image {
    width: 100%;
    max-width: 800px;
}

.tw-image-container {
    background: rgba(27, 38, 59, 0.7);
    border-radius: 14px;
    border: 1px solid var(--cosmic-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 380px;
    height: 212px;
    margin: 0 auto;
    padding: 0;
}

.tw-video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.tw-video-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1b263b;
    color: #e0e1dd;
    z-index: 1;
}

.tw-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-cyan);
    animation: tw-spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes tw-spin {
    to {
        transform: rotate(360deg);
    }
}

/* AI 性能指标 */
.tw-metrics-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.tw-metrics-title {
    color: var(--neon-cyan);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
    letter-spacing: 0.8px;
}

.tw-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.tw-stat-card {
    background: var(--cosmic-secondary);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--cosmic-accent);
    transition: all 0.3s ease;
    position: relative;
}

.tw-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(138, 43, 226, 0.1),
        transparent
    );
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tw-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.3);
}

.tw-stat-card:hover::before {
    opacity: 1;
}

.tw-stat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.tw-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-gold);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.tw-stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 股票图标网格 */
.tw-stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.tw-stock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: rgba(27, 38, 59, 0.5);
    border-radius: 10px;
    border: 1px solid var(--cosmic-accent);
    transition: all 0.3s ease;
}

.tw-stock-card:hover {
    transform: translateY(-4px);
    background: rgba(65, 90, 119, 0.3);
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
}

.tw-stock-symbol {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: var(--neon-cyan);
}

.tw-stock-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
}

.tw-stock-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-gold);
    margin-top: 0.4rem;
}

.tw-price-change {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.tw-price-change.positive {
    color: #ff4d4d;
}

.tw-price-change.negative {
    color: var(--matrix-green);
}

/* 动画关键帧 */
@keyframes tw-grid-pulse {
    0%,
    100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

@keyframes tw-avatar-glow {
    0% {
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 35px rgba(138, 43, 226, 0.8);
    }
}

@keyframes tw-title-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes tw-candle-rise {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: var(--candle-height);
        opacity: 1;
    }
}

.tw-candle-stick {
    animation: tw-candle-rise 1.5s ease-out forwards;
    animation-delay: calc(var(--candle-delay) * 0.2s);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tw-main-container {
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        background: transparent;
    }

    .tw-content-container {
        padding: 0.8rem 0.5rem;
    }

    .tw-ai-avatar {
        width: 110px;
        height: 110px;
        margin-bottom: 1rem;
    }

    .tw-image-container {
        width: 100%;
        height: auto;
        max-width: 380px;
        aspect-ratio: 380/212;
    }

    .tw-risk-section {
        padding: 1.2rem;
    }

    .tw-metrics-section {
        margin: 1rem 0;
    }

    .tw-metrics-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .tw-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .tw-stat-card {
        padding: 0.7rem 0.4rem;
    }

    .tw-stat-icon {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .tw-stat-value {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }

    .tw-stat-label {
        font-size: 0.65rem;
    }

    .tw-stocks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
    }

    .tw-kline-container {
        height: 160px;
    }

    .tw-kline-chart {
        height: 120px;
    }
}

/* 政策页面样式 */
.tw-policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--cosmic-secondary);
    border-radius: 15px;
    border: 2px solid var(--cosmic-accent);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
    margin-top: 60px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.tw-policy-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cosmic-accent);
    color: var(--text-primary);
}

.tw-policy-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(
        45deg,
        var(--neon-cyan),
        var(--neon-gold),
        var(--neon-purple)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tw-title-shimmer 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

.tw-policy-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.tw-policy-content h2 {
    color: var(--neon-cyan);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.tw-policy-content h3 {
    color: var(--neon-gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem 0;
}

.tw-policy-content p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.tw-policy-content ul,
.tw-policy-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-primary);
}

.tw-policy-content li {
    margin-bottom: 0.8rem;
}

.tw-policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(27, 38, 59, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cosmic-accent);
}

.tw-policy-content th,
.tw-policy-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cosmic-accent);
}

.tw-policy-content th {
    background: var(--cosmic-accent);
    color: var(--neon-cyan);
    font-weight: 600;
}

.tw-policy-content td {
    color: var(--text-primary);
}

.tw-policy-content .tw-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(27, 38, 59, 0.3);
    border: 1px solid var(--cosmic-accent);
    border-radius: 10px;
}

.tw-policy-content .tw-contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    text-align: center;
}

.tw-policy-content .tw-contact-info h2 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.tw-policy-content .tw-contact-info p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tw-policy-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cosmic-accent);
    text-align: center;
}

.tw-policy-footer .tw-legal-link {
    margin: 0;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(65, 90, 119, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tw-policy-footer .tw-legal-link:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .tw-policy-container {
        margin: 40px 1rem 2rem 1rem;
        padding: 1.5rem;
    }

    .tw-policy-title {
        font-size: 2rem;
    }

    .tw-policy-content h2 {
        font-size: 1.5rem;
    }

    .tw-policy-content h3 {
        font-size: 1.2rem;
    }

    .tw-policy-content {
        font-size: 1rem;
    }

    .tw-policy-content table {
        font-size: 0.9rem;
    }

    .tw-policy-content th,
    .tw-policy-content td {
        padding: 0.8rem 0.5rem;
    }
}
